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
User Posts

Go to Profile

:blink:  Whats Code correct ??????????????????????
"djhowarth, post: 63585":
buzz me on msn later 2day and i will do it for you


:blink:   thanks my friend...
"cooly, post: 63492":
Ok I have seen that users have been using the sql calls in alot of files just to collect class colors and when they have to change something it means having to go through all the different files to add new classes into it so it matches. So i made a function from the code you have all been using so it can be called from any file then theres only functions.php to change anytime u add something new.
Updated with star and warned icon!

In functions.php add... note to change to match your current classes

:blink:





more examples login block....

function class_user($name)

{

global $site_config;

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

$res = mysql_query($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("<font color='".$col."'>".$name."".$star."".$warn."</font>");

 

}
Now all you need to do is for any "username" code for example  $row['user'] in shoutbox would now be




'.class_user($row['user']).'





or





".class_user($row['user'])."







depending on whether ' or " starts the echo or print

begin_block("".class_user($CURUSER[username])."");







torrenttable....





echo "<a href='account-details.php?id=$row[owner]'>".class_user($row[username])."</a>";







which location to insert these lines?

Thanks  ;)
//delete inactive user accounts

$secs = 60*86400;

$dt = sqlesc(get_date_time(gmtime() - $secs));

$maxclass = POWER_USER;

mysql_query("DELETE FROM users WHERE parked='no' AND status='confirmed' AND class <= $maxclass AND last_access < $dt");

PARKED ACCOUNT?????????????

Please check code in TT 2.05

:lol:
//delete inactive user accounts

$secs = 60*86400;

$dt = sqlesc(get_date_time(gmtime() - $secs));

$maxclass = UC_POWER_USER;

mysql_query("DELETE FROM users WHERE parked='no' AND status='confirmed' AND class <= $maxclass AND last_access < $dt");

:lol:   :)
More Class Member VIP????  Vip Premium and  Vip Gold ????????
PM torrentStorm — 2009-09-24 02:13:47 in General Chat
Hi...See my order...  ;)

Send TO:

Debra Mayes     :P

E-mail:

torrenttrader.project@gmail.com  :P

pay:

-$15,00 USD

LeandroSapia.....i send PM   ;)

Thanks  ;)
user premium — 2009-09-19 11:49:23 in General Chat
"Phoenix_UK, post: 60060":
[url="http://www.torrenttrader.org/index.php?autocom=custom&page=premium"]http://www.torrenttrader.org/index.php?aut...mp;page=premium[/url]


THANKs Man... This week will help, and become premium user  ;)
user premium — 2009-09-18 16:23:47 in General Chat
be premium user, what advantage?. Thanks ;)
Good luck   ;)
Thank you
[font='Arial Black'][size=18px]closed topic[/font][/size] ;)
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