Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 14th May 2013, 13:28
rus16 rus16 is offline
Member
 
Join Date: Feb 2012
P2P
Posts: 2
Exclamation Shoutbox usergroup color
Click the image to open in full size.



Bump: solution here

In shoutbox.php find:

PHP Code:
echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>"
Add after:

PHP Code:
$a mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");
$a = @mysql_fetch_row($a);
switch (
$a[0]) {
case 
5// Administrator
$user "<font color=#ff0000>$row[user]</font>";
break;
case 
4// Super Moderator
$user "<font color=#A83838>$row[user]</font>";
break;
case 
3// Moderator
$user "<font color=#000000>$row[user]</font>";
break;
case 
2// VIP
$user "<font color=#FEDE01>$row[user]</font>";
break;
case 
1// Uploader
$user "<font color=#C0C0C0>$row[user]</font>";
break;
default: 
// User
$user $row[user];

and near the line 180 find:

PHP Code:
echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));
and 
replace:
'. $row['user']. '
by:
' .$user. ' 
Have fun!

Last edited by rus16; 14th May 2013 at 13:52.
Reply With Quote
  #2  
Old 17th July 2013, 17:34
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Smile COLOR + IMAGE Class
Click the image to open in full size.

PHP Code:
$a mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");
$a = @mysql_fetch_row($a);
switch (
$a[0]) {
case 
7// Administrator
$user "<img src=pic/King.png><font color=red>$row[user]</font>";
break;
case 
6// S Moderator
$user "<img src=pic/MODR.png><font color=white>$row[user]</font>";
break;
case 
4// Uploader
$user "<img src=pic/uplder.png><font color=green>$row[user]</font>";
break;
case 
5// Moderator
$user "<img src=pic/MODR.png><font color=white>$row[user]</font>";
break;
case 
3// VIP
$user "<img src=pic/vipy.png><font color=yellow>$row[user]</font>";
break;
case 
1// Member
$user "<img src=pic/memberx.png><font color=#C0C0C0>$row[user]</font>";
break;
default: 
// User
$user $row[user];

Upload 'pic' in FTP

Find:
PHP Code:
echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message'])); 
and
replace:

PHP Code:
'. $row['user']. ' 
WITH:
PHP Code:
' .$user. ' 
Attached Files
File Type: rar pic.rar (12.4 KB, 85 views)
Reply With Quote
  #3  
Old 22nd July 2013, 10:27
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
i di like your theme would you upload it ?
Reply With Quote
  #4  
Old 24th December 2015, 11:32
08DR 08DR is offline
Member
 
Join Date: Dec 2015
Posts: 5
Default just tried this
didnt work for my setup, no changes

edit, maybe something ive missed, most probably on a different release or something,

many thanks for the opportunity to try it out op :-)

subbed to thread, something i'd like on my lan setup :-)

Bump: got this working now, silly me!

top work op

Last edited by 08DR; 25th December 2015 at 05:00.
Reply With Quote
Reply

Tags
color , shoutbox , usergroup

Thread Tools

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 19:31. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.