Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] User Class Colors in Shoutbox
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2007-10-23 14:21:32
One more v1.x TorrentialStorm HACK to v2.

In shoutbox.php find:

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:


$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:



	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!

iMagin3

shout3.jpg
shout3.jpg
Unknown User
2007-10-23 17:07:31
Thanks iMagin3, works very well.
torrents-search.rar
Download
Unknown User
2007-10-25 10:48:21
when i put that is working very fine for all staff but for the simple user in the shout all lign write with his nick in the same color

the user  dont says who s  write in the shoutbox because all nick in the shout is the same nick if it s hard to me explain in english but register a new account in your site to verify and give me a news please

gia
Unknown User
2007-10-26 19:33:59
I have tha same problem , some users see like the all entries is  writed by  they. And i see with my eyes this problem , but when i cleared the coockies is everything ok.

Any idea ?

Here is the code

if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){

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



$a = mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");

$a = @mysql_fetch_row($a);

switch ($a[0]) {

case 7: // Administrator

$user = "<font color=#ff0000>$row[user]</font>";

break;

case 6: // Super Moderator

$user = "<font color=#FF8080>$row[user]</font>";

break;

case 5: // Moderator

$user = "<font color=#0000FF>$row[user]</font>";

break;

case 4: // Uploader

$user = "<font color=#800000>$row[user]</font>";

break;

case 3: // VIP

$user = "<font color=#FF6600>$row[user]</font>";

break;

case 2: // Szuper Felhasznalo

$user = "<font color=#00CC00>$row[user]</font>";

break;

case 1: // Felhasznalo

$user = "<font color=#000000>$row[user]</font>";

break;

default: // User

$user = $row[user];

}

}



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

echo '</td></tr>';

}
Unknown User
2007-11-19 12:53:24
Ya same with me .. if you Administrator u can see the color. but when user/members cant see the name or their id  in shoubox. Perhaps can modified that code for every users/members can see  thier own ID.
Unknown User
2007-11-23 09:26:56
Use thats code

if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){

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





}

  $a = mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");

$a = @mysql_fetch_row($a);

switch ($a[0]) {

case 7: // Administrator

$user = "<font color=#ff0000>$row[user]</font>";

break;

case 6: // Super Moderator

$user = "<font color=#FF8080>$row[user]</font>";

break;

case 5: // Moderator

$user = "<font color=#0000FF>$row[user]</font>";

break;

case 4: // Uploader

$user = "<font color=#800000>$row[user]</font>";

break;

case 3: // VIP

$user = "<font color=#FF6600>$row[user]</font>";

break;

case 2: // Szuper Felhasznalo

$user = "<font color=#00CC00>$row[user]</font>";

break;

case 1: // Felhasznalo

$user = "<font color=#000000>$row[user]</font>";

break;

default: // User

$user = $row[user];

}

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

echo '</td></tr>';

}
Unknown User
2007-12-19 02:37:46
"assus, post: 35524":
Use thats code


if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){

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





}

  $a = mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");

$a = @mysql_fetch_row($a);

switch ($a[0]) {

case 7: // Administrator

$user = "<font color=#ff0000>$row[user]</font>";

break;

case 6: // Super Moderator

$user = "<font color=#FF8080>$row[user]</font>";

break;

case 5: // Moderator

$user = "<font color=#0000FF>$row[user]</font>";

break;

case 4: // Uploader

$user = "<font color=#800000>$row[user]</font>";

break;

case 3: // VIP

$user = "<font color=#FF6600>$row[user]</font>";

break;

case 2: // Szuper Felhasznalo

$user = "<font color=#00CC00>$row[user]</font>";

break;

case 1: // Felhasznalo

$user = "<font color=#000000>$row[user]</font>";

break;

default: // User

$user = $row[user];

}

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

echo '</td></tr>';

}


thanks work very good !:(
Unknown User
2008-01-20 00:16:03
thanks assus your update appears to work great
Unknown User
2008-01-20 02:07:12
Very thanks work fine  :)
Unknown User
2008-01-29 14:12:28
Guys I need translation for these:

Szuper Felhasznalo
and


Felhasznalo



Thanks in advance
Unknown User
2008-02-05 11:37:30
Work More!!

Big Thanks :)
Unknown User
2008-03-18 06:30:18
Great job looks very good  :D
Unknown User
2008-03-18 16:24:30
"DimitrisZ, post: 38144":
Guys I need translation for these:


Szuper Felhasznalo
and


Felhasznalo



Thanks in advance

Super Moderator

Moderator
Unknown User
2008-10-06 17:01:53
can you help me please it dont work in my tk [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2954"]shoutbox.php[/url]

add also an power user rank thks and a star with vip and admin rank thx a lot man i hope semeone will help me :)
shoutbox.php
Download
Unknown User
2008-10-07 12:02:13
king08 you have to add it to your shoutbox.php for it to work. nobody is going to do the work for you. so try adding it yourself it is not that hard to do.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728