vBHELP - Sum Your Upload / Files Size What it does?

MobileHacks

New Member
What it does?
The modification allows User to specify weight of uploaded files. The user specifies amount of MB/GB by selecting one of the tags while writing a new thread.
The sum is presented in postbit / postbit_legacy.
I hope that you like it, and please Mark Installed if you use this mod.

Installation
SQL Queries: 1
Template Edit: 1
Files Edit: 1

Time to install: 2-5 minutes
 
what does it mean this

<div>Total Upload: $post[fieldX] GB</div>

X - You have to replace to ID of added field.

what must stand on that x place can u explane please
 
what means this whats in red can someone explane it i want it to work on my forum but see nothing i see only total upload GB nothing more


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!
 
Back
Top