Kod:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\ \\
\\ Sum Your Upload by vBHELP.pl \\
\\ \\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Visit: http://VBHELP.pl
Installation
1. Excute SQL Query
Log in to Your phpMyAdmin or use function:
AdminCP -> Maintenance -> Excute SQL QUery
And send query:
INSERT INTO `database_name`.`prefixset` (
`prefixsetid` ,
`displayorder`
)
VALUES (
'_', '1'
);
INSERT INTO `prefix` (`prefixid`, `prefixsetid`, `displayorder`) VALUES
('1', '_', '1'),
('2', '_', '2'),
('3', '_', '3'),
('4', '_', '4'),
('5', '_', '5'),
('6', '_', '6'),
('7', '_', '7'),
('8', '_', '8'),
('9', '_', '9'),
('10', '_', '10'),
('11', '_', '11'),
('12', '_', '12'),
('13', '_', '13'),
('14', '_', '14'),
('15', '_', '15');
INSERT INTO `phrase` (
`phraseid` ,
`languageid` ,
`varname` ,
`fieldname` ,
`text` ,
`product` ,
`username` ,
`dateline` ,
`version`
)
VALUES (
NULL , '0', 'prefix_1_title_plain', 'global', '0.1', 'vbulletin', 'admin', '1209495358', ''
), (
NULL , '0', 'prefix_1_title_rich', 'global', '0.1 GB', 'vbulletin', 'admin', '1209495358', ''
),
(
NULL , '0', 'prefix_2_title_plain', 'global', '0.3', 'vbulletin', 'admin', '1209495359', ''
), (
NULL , '0', 'prefix_2_title_rich', 'global', '0.3 GB', 'vbulletin', 'admin', '1209495359', ''
),
(
NULL , '0', 'prefix_3_title_plain', 'global', '0.7', 'vbulletin', 'admin', '1209495360', ''
), (
NULL , '0', 'prefix_3_title_rich', 'global', '0.7 GB', 'vbulletin', 'admin', '1209495360', ''
),
(
NULL , '0', 'prefix_4_title_plain', 'global', '1', 'vbulletin', 'admin', '1209495361', ''
), (
NULL , '0', 'prefix_4_title_rich', 'global', '1 GB', 'vbulletin', 'admin', '1209495361', ''
),
(
NULL , '0', 'prefix_5_title_plain', 'global', '2', 'vbulletin', 'admin', '1209495362', ''
), (
NULL , '0', 'prefix_5_title_rich', 'global', '2 GB', 'vbulletin', 'admin', '1209495362', ''
),
(
NULL , '0', 'prefix_6_title_plain', 'global', '3', 'vbulletin', 'admin', '1209495363', ''
), (
NULL , '0', 'prefix_6_title_rich', 'global', '3 GB', 'vbulletin', 'admin', '1209495363', ''
),
(
NULL , '0', 'prefix_7_title_plain', 'global', '4', 'vbulletin', 'admin', '1209495364', ''
), (
NULL , '0', 'prefix_7_title_rich', 'global', '4 GB', 'vbulletin', 'admin', '1209495364', ''
),
(
NULL , '0', 'prefix_8_title_plain', 'global', '5', 'vbulletin', 'admin', '1209495365', ''
), (
NULL , '0', 'prefix_8_title_rich', 'global', '5 GB', 'vbulletin', 'admin', '1209495365', ''
),
(
NULL , '0', 'prefix_9_title_plain', 'global', '6', 'vbulletin', 'admin', '1209495366', ''
), (
NULL , '0', 'prefix_9_title_rich', 'global', '6 GB', 'vbulletin', 'admin', '1209495366', ''
),
(
NULL , '0', 'prefix_10_title_plain', 'global', '7', 'vbulletin', 'admin', '1209495367', ''
), (
NULL , '0', 'prefix_10_title_rich', 'global', '7 GB', 'vbulletin', 'admin', '1209495367', ''
),
(
NULL , '0', 'prefix_11_title_plain', 'global', '8', 'vbulletin', 'admin', '1209495368', ''
), (
NULL , '0', 'prefix_11_title_rich', 'global', '8 GB', 'vbulletin', 'admin', '1209495368', ''
),
(
NULL , '0', 'prefix_12_title_plain', 'global', '9', 'vbulletin', 'admin', '1209495369', ''
), (
NULL , '0', 'prefix_12_title_rich', 'global', '9 GB', 'vbulletin', 'admin', '1209495369', ''
),
(
NULL , '0', 'prefix_13_title_plain', 'global', '10', 'vbulletin', 'admin', '1209495370', ''
), (
NULL , '0', 'prefix_13_title_rich', 'global', '10 GB', 'vbulletin', 'admin', '1209495370', ''
),
(
NULL , '0', 'prefix_14_title_plain', 'global', '13', 'vbulletin', 'admin', '1209495371', ''
), (
NULL , '0', 'prefix_14_title_rich', 'global', '13 GB', 'vbulletin', 'admin', '1209495371', ''
),
(
NULL , '0', 'prefix_15_title_plain', 'global', '15', 'vbulletin', 'admin', '1209495372', ''
), (
NULL , '0', 'prefix_15_title_rich', 'global', '15 GB', 'vbulletin', 'admin', '1209495372', ''
)
2. Edit your postbit or postbit_legacy
Find:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
Add below:
<div>Total Upload: $post[fieldX] GB</div>
X - You have to replace to ID of added field.
3. Edit your newthread.php
Log in to Your FTP and edit 'newthread.php'
In 280:
Find:
if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])
{
Add below:
$t[1]=0.1;
$t[2]=0.3;
$t[3]=0.7;
$t[4]=1;
$t[5]=2;
$t[6]=3;
$t[7]=4;
$t[8]=5;
$t[9]=6;
$t[10]=7;
$t[11]=8;
$t[12]=9;
$t[13]=10;
$t[14]=13;
$t[15]=15;
if (is_numeric($t[$newpost['prefixid']])) $vbulletin->db->query_write("update " . TABLE_PREFIX . "userfield set field5=field5+".$t[$newpost['prefixid']]." where userid=".$vbulletin->userinfo['userid']);
4. Remember to enable thread tags!