Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 6th October 2009, 13:20
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default rank image mod
Post gone ...
Attached Images
   

Last edited by wMan; 14th January 2010 at 15:00.
Reply With Quote
The Following User Says Thank You to wMan For This Useful Post:
joeroberts (6th October 2009)
  #2  
Old 6th October 2009, 14:18
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Looks cool
Why not just add the wanted query info to first query rather then make a second one?
PHP Code:
$sql "SELECT seedbonus, avatar, uploaded,  downloaded, invites, can_do, level, uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';";
        
$res $db->sql_query($sql);
        list (
$seedbonus$avatar$uploaded$downloaded$invites$can_do$level$ratio) = $db->sql_fetchrow($res);
        
$db->sql_freeresult($res); 
then in switch use $can_do
PHP Code:
switch ($can_do) { 
        case 
"banned": { 
        echo 
_btclassbanned
        break; 
        } 
        case 
"user": { 
        echo 
"<img src=\"themes/pmbt/pics/newbie.gif\">"
                break; 
        } 
        case 
"moderator": {        
        echo 
"<img src=\"themes/pmbt/pics/moderator.gif\">"
                break; 
        } 
        case 
"premium": { 
        echo 
"<img src=\"themes/pmbt/pics/elitemember.gif\">"
                break; 
        } 
        case 
"admin": { 
        echo 
"<img src=\"themes/pmbt/pics/Administrator.gif\">"
        break; 
        } 

can you offer up some sample icons?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 6th October 2009, 14:21
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Post gone ...

Last edited by wMan; 14th January 2010 at 15:00.
Reply With Quote
  #4  
Old 6th October 2009, 14:23
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Np nice to have someone doing mods
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 6th October 2009, 14:24
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Post gone ...

Last edited by wMan; 14th January 2010 at 15:00.
Reply With Quote
Reply

Tags
image , mod , rank

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
(REQ) xBtit Auto-Rank by Petr1fied - Needed Urgently - i can Pay! dopeboy Community Cafe 1 9th June 2010 19:33
image scream21m Template Shares 0 16th June 2009 12:00
Rank Error artzavia Template Shares 8 21st May 2009 22:21
Cool Rank Images azog2 Community Cafe 3 12th May 2009 16:36
Level, Rank controler joeroberts BT.Manager (phpMyBitTorrent) 6 8th March 2009 02:51



All times are GMT +2. The time now is 17:42. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.