Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
Thread Tools
  #1  
Old 8th April 2012, 17:05
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Default User Class
i have noticed on a few trackers that u can get users user class next to there user name eg:

Click the image to open in full size.

Click the image to open in full size.

do anyone know how i can do this ?


Using : tbdev 09

Code:
        "<div id='statusbar'>".
        "<div style='float:left;color:black;'>{$lang['gl_msg_welcome']}, <a href='userdetails.php?id={$CURUSER['id']}'>{$CURUSER['username']}</a>".

Last edited by HUnter83; 8th April 2012 at 23:35.
Reply With Quote
  #2  
Old 9th April 2012, 11:39
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
Code:
"<div style='float:left;color:black;'>{$lang['gl_msg_welcome']}, <a href='userdetails.php?id={$CURUSER['id']}'>{$CURUSER['username']}</a>".


change to
Code:
"<div style='float:left;color:black;'>{$lang['gl_msg_welcome']}, <a href='userdetails.php?id={$CURUSER['id']}'>{$CURUSER['username']}</a>&nbsp;[ {$CURUSER['class']} ]".
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #3  
Old 9th April 2012, 12:00
rootKID rootKID is offline
VIP
 
Join Date: Jan 2012
P2P
Posts: 99
Smile good one...
good to now, thanks :)..
Reply With Quote
  #4  
Old 9th April 2012, 14:36
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Default
thanks for that its showing numbers as a class what do i put in user_functions.php to change that
Reply With Quote
  #5  
Old 9th April 2012, 15:33
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
sorry change
Code:
&nbsp;[ {$CURUSER['class']} ]".
to
Code:
&nbsp;" . get_user_class_name($CURUSER["class"]) . ".
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #6  
Old 10th April 2012, 16:18
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Default
showing error now :( i have tried it 3 ways i can think of and its still showing a number
Attached Files
File Type: php bittorrent.php (26.8 KB, 4 views)
File Type: php user_functions.php (6.5 KB, 2 views)
Reply With Quote
  #7  
Old 10th April 2012, 21:30
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
3 ways? only need 1 way lol here try this its got to work
Attached Files
File Type: php bittorrent.php (26.8 KB, 7 views)
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #8  
Old 10th April 2012, 23:15
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Default
same error i was getting

Code:
Parse error:  syntax error, unexpected T_VARIABLE in C:\AppServ\www\upload\include\bittorrent.php on line 887
Reply With Quote
  #9  
Old 10th April 2012, 23:25
Subzero's Avatar
Subzero Subzero is offline
Coder
 
Join Date: Jul 2008
P2P
Posts: 190
Default
Try the attached file..
Attached Files
File Type: php bittorrent.php (25.9 KB, 2 views)
Reply With Quote
  #10  
Old 10th April 2012, 23:34
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Default
Code:
Parse error:  syntax error, unexpected '"' in C:\AppServ\www\upload\include\bittorrent.php on line 887
Reply With Quote
Reply

Tags
class , user


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 04:51. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.