Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 16th February 2010, 14:53
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default User level
open blocks/usercp.php

find
PHP Code:
$sql "SELECT seedbonus, avatar, uploaded,  downloaded, invites,  uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';";
$res $db->sql_query($sql);
list (
$seedbonus$avatar$uploaded$downloaded$invites$ratio) = $db->sql_fetchrow($res);
$db->sql_freeresult($res); 
replace with
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); 
somewhere around
PHP Code:
print("<p>Bank $<a href='mybonus.php'>".$seedbonus."</a></p>"); 
add
PHP Code:
echo "<div id=\"medal\"><img src=\"themes/".$theme."/pics/medals/".$level.".gif\" alt=\"level\"></div>\n";
echo 
"<div id=\"rank\"><img src=\"themes/".$theme."/pics/rank/".$can_do.".png\" alt=\"rank\"></div>\n"
define "medal" and "rank" in css if you wan't
finaly download this package
http://www.failiem.lv/down.php?i=vwxynp&n=medals.zip


move unziped "medals" folder to themes/pmbt/pics/
create folder "rank" in themes/pmbt/pics/

go to admin panel > classes
create pics called usersclass.png and put it in created "rank" folder

any questions ?
Reply With Quote
The Following User Says Thank You to wMan For This Useful Post:
PopcornCat™ (18th April 2011)
Reply

Tags
level , user

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
DATABASE: mysql_connect: Access denied for user 'user'@'localhost' ciolpalas Torrent Trader 2 30th June 2010 08:31
Bug in promoting user to power user in TS 5.6 crztz Template Shares 5 7th December 2009 03:58
New User bazboz Introduce Yourself 1 2nd April 2009 17:48
Level, Rank controler joeroberts BT.Manager (phpMyBitTorrent) 6 8th March 2009 02:51
how change the normal user to power or admin user in ts TS Special Edition v.5.1 theway Template Shares 2 27th September 2008 14:44



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