Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   User Class (http://www.bvlist.com/showthread.php?t=7810)

HUnter83 8th April 2012 17:05

User Class
 
i have noticed on a few trackers that u can get users user class next to there user name eg:

http://i41.tinypic.com/116rlt5.png

http://i43.tinypic.com/i52kw8.png

do anyone know how i can do this ?


Using : tbdev 09

Code:

        "
".
        "
{$lang['gl_msg_welcome']}, {$CURUSER['username']}".

daffy 9th April 2012 11:39

Code:

"
{$lang['gl_msg_welcome']}, {$CURUSER['username']}".



change to
Code:

"
{$lang['gl_msg_welcome']}, {$CURUSER['username']} [ {$CURUSER['class']} ]".


rootKID 9th April 2012 12:00

good one...
 
good to now, thanks :)..

HUnter83 9th April 2012 14:36

thanks for that its showing numbers as a class what do i put in user_functions.php to change that

daffy 9th April 2012 15:33

sorry change
Code:

 [ {$CURUSER['class']} ]".

to
Code:

 " . get_user_class_name($CURUSER["class"]) . ".

HUnter83 10th April 2012 16:18

2 Attachment(s)
showing error now :( i have tried it 3 ways i can think of and its still showing a number

daffy 10th April 2012 21:30

1 Attachment(s)
3 ways? only need 1 way lol here try this its got to work

HUnter83 10th April 2012 23:15

same error i was getting

Code:

Parse error:  syntax error, unexpected T_VARIABLE in C:\AppServ\www\upload\include\bittorrent.php on line 887

Subzero 10th April 2012 23:25

1 Attachment(s)
Try the attached file..

HUnter83 10th April 2012 23:34

Code:

Parse error:  syntax error, unexpected '"' in C:\AppServ\www\upload\include\bittorrent.php on line 887


All times are GMT +2. The time now is 04:10.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.