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
How to add a icon
Controls ·  Search New posts · Mark unread

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

Unknown User
2011-11-28 12:05:56
"XIII, post: 76989":
	print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a></td></tr>");
to...




	print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a></td></tr>");



It may not work for you depending what version you are using but you will get the jist of it...

iam using 2.07 version but its not working i tried to do but still fail
Unknown User
2011-11-28 12:57:30
How hard is it to use search? then say well ok thats the line hes referencing and compare it to what i changed? people assme to copy and paste you need to know PHP and you dont... PHP is like tying your shoe laces
Unknown User
2011-11-28 15:34:51
"XIII, post: 76993":
How hard is it to use search? then say well ok thats the line hes referencing and compare it to what i changed? people assme to copy and paste you need to know PHP and you dont... PHP is like tying your shoe laces

ROFL    :)  i search 40 pages of forum from past 4 days n didnt find anything related to my topic, if thair is already a post and its solution pls give me link, why u angry?? as i mention in my post that we are new!!!!!
Unknown User
2011-11-28 15:37:29
Im not angry i just find it frustrating when members, dont use search or cant perform a simple task... in torrent-details.php search for this

<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a>
replace to




<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a>



put my code above it? or is that too hard lol
Unknown User
2011-11-28 16:02:42
"XIII, post: 76995":
Im not angry i just find it frustrating when members, dont use search or cant perform a simple task... in torrent-details.php search for this


<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a>
replace to




<a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a>



put my code above it? or is that too hard lol

well Thanks you very much for your time as u told i put those lines but VIP image.gif still not show at torrent page but anyways thanks for you time and help, i will ask u help again when i will join premier otherwise Thanks you very much.
Unknown User
2011-11-28 21:09:30
have you added an image to your image folder  ?
Unknown User
2011-11-29 08:02:39
"SJC2TK, post: 76998":
have you added an image to your image folder  ?

yes i add both images in images folder star.gif & Vip.gif
Unknown User
2011-11-29 08:27:11
there was a problem but it does work

find

print("<tr><td align='left'><b>" .T_("INFO_HASH"). ":</b></td><td>" . $row["info_hash"] . "</td></tr>\n");

print("");
add after




$q = SQL_Query_exec("SELECT `class` FROM `users` WHERE `id` = '".$row['owner']."'");

 $r = mysql_fetch_assoc($q);

 

 # VIP Class By Default...

 $vip = null;

 if ( $r['class'] == 3 )

 {

 $vip = '<img src="/images/star.png" title="VIP" />';

 }





this was missing the ; at the end of the image so gave a syntax error



then



find





print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a></td></tr>");





replace with





print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a></td></tr>");



screen

Unknown User
2011-11-29 11:14:45
"thedarklord, post: 77002":
there was a problem but it does work
find

print("<tr><td align='left'><b>" .T_("INFO_HASH"). ":</b></td><td>" . $row["info_hash"] . "</td></tr>\n");

print("");
add after




$q = SQL_Query_exec("SELECT `class` FROM `users` WHERE `id` = '".$row['owner']."'");

 $r = mysql_fetch_assoc($q);

 

 # VIP Class By Default...

 $vip = null;

 if ( $r['class'] == 3 )

 {

 $vip = '<img src="/images/star.png" title="VIP" />';

 }





this was missing the ; at the end of the image so gave a syntax error



then



find





print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a></td></tr>");





replace with





print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . " $vip</a></td></tr>");



screen



Thank you my friend its works perfect Now  :)  i really appreciate ur help, so kind of you.

Regards
Unknown User
2011-11-29 11:21:56
np m8 moved to mods completed
Unknown User
2011-11-29 11:58:50
"thedarklord, post: 77004":
np m8 moved to mods completed

bro if i want to add more class like uploder , Moderator, Super Moderator, Admin so i just need to add More same commands? just name change with Uploder,Moderator,Admin etc?
Unknown User
2011-11-29 12:04:50
tbh if i was you i would use this [url="http://www.torrenttrader.org/index.php?showtopic=12259&hl="]http://www.torrenttrader.org/index.php?sho...c=12259&hl=[/url] also it saves on queries to the database
Unknown User
2011-11-29 13:16:54
"thedarklord, post: 77006":
tbh if i was you i would use this [url="http://www.torrenttrader.org/index.php?showtopic=12259&hl="]http://www.torrenttrader.org/index.php?sho...c=12259&hl=[/url] also it saves on queries to the database


slightly updated...

function class_user($name)

{

global $site_config;

$a ="SELECT class, donated, warned FROM `users` WHERE username ='".$name."'";

$res = SQL_Query_exec($a);

$classy = mysql_fetch_row($res);

switch ($classy[0]) {

case 8: // SYS:

$col = "#15CFCD";

break;

case 7: // ADMINISTRATORSYS:

$col = "#ff0000";

break;

case 6: // Administrator

$col = "teal";

break;

case 5: // Super Moderator

$col = "#3300CC";

break;

case 4: // Moderator

$col = "#006600";

break;

case 3: // VIP

$col = "#FFFF00";

break;

case 2: // Uploader

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config["SITEURL"]."/images/star.gif' alt='donated' border='0' />";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config["SITEURL"]."/images/warn.gif' alt='warned' border='0' />";

}else{

$warn="";

}

return unesc("<span style='color:".$col.";'>".$name."</span>".$star."".$warn."");

}
Unknown User
2011-11-30 06:12:05
"cooly, post: 77008":
slightly updated...


function class_user($name)

{

global $site_config;

$a ="SELECT class, donated, warned FROM `users` WHERE username ='".$name."'";

$res = SQL_Query_exec($a);

$classy = mysql_fetch_row($res);

switch ($classy[0]) {

case 8: // SYS:

$col = "#15CFCD";

break;

case 7: // ADMINISTRATORSYS:

$col = "#ff0000";

break;

case 6: // Administrator

$col = "teal";

break;

case 5: // Super Moderator

$col = "#3300CC";

break;

case 4: // Moderator

$col = "#006600";

break;

case 3: // VIP

$col = "#FFFF00";

break;

case 2: // Uploader

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config["SITEURL"]."/images/star.gif' alt='donated' border='0' />";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config["SITEURL"]."/images/warn.gif' alt='warned' border='0' />";

}else{

$warn="";

}

return unesc("<span style='color:".$col.";'>".$name."</span>".$star."".$warn."");

}


well bro its works but only index page but not in ShoutBox and Member list nor at torrent page so do i add something more but dontknow at where pls help.
Unknown User
2011-11-30 06:20:22
Shoutbox

	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']));





To





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