need help

htm1967

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

--------------------------------------------------------------------------------

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
Attached Thumbnails
Attached Files vBHELP - SumYourUpload.zip‎ (4.9 KB, 6 views)



MobileHacks
View Public Profile
Send a private message to MobileHacks
Find all posts by MobileHacks
Add MobileHacks to Your Buddy List

#2 (permalink) Yesterday, 09:40 PM
htm1967
Junior Member Join Date: Oct 2007
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
is the original post http://www.vbteam.info/vb-3-7-x-addons-template-modifications/9415-vbhelp-sum-your-upload-files-size-what-does.html




--------------------------------------------------------------------------------

And this is my question i cant see nothing only TOTAL UPLOAD GB

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