Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Torrent Strike > Mods & Themes
Reply
  #1  
Old 14-04-11, 01:29
nicukent's Avatar
nicukent nicukent is online now
Senior Member
 
Join Date: Sep 2009
P2P
Posts: 30
Smile Scrolling top 10 Donors
Add this to index where you like:

PHP Code:
<?begin_frame("Top 10 Donors");?>
    <?
    $res = mysql_query("SELECT * FROM users WHERE donor ='yes' ORDER BY donor DESC, username LIMIT 10") or sqlerr();

    echo '<table cellpadding=0 width="120%"><td colspan=5><td><tr><marquee bgcolor="transparent" direction="left" behavior="scroll" scroll="continuous" scrollamount="6" vspace="5" hspace="5" align="center" width="600" height="50" style="font-size:20px;color:#1589FF;font-family:verdana;">We would like to thank the following users for supporting '.$SITENAME.' ';

 $i=20;

    while ($row = mysql_fetch_assoc($res))  {  $id = $row['id'];
    $name = $row['username'];
    $name = str_replace('_', ' ' , $name);
    $name = str_replace('.', ' ' , $name);
    $name = substr($name, 0, 50);

    if($i==0)echo'</marquee></tr></td><td><tr><marquee scrollAmount=2 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=2" scrolldelay="0" direction="right">';

echo "<a href=\"userdetails.php?id=$id\">$name <img src=pic/star.gif border=0></a> &nbsp;<strong></strong>&nbsp; ";
    $i++;}
    echo "</marquee></td></tr></table>";

    end_frame();?>

Change font color to what you need ,and the ammount of donors.


Please Do Not "PM" Me For Personal Support!


Reply With Quote
The Following User Says Thank You to nicukent For This Useful Post:
wMan (13-05-11)
Reply

Tags
10 , donors , scrolling , top

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