Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 31st May 2009, 16:13
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default change colors in Legend
what i want to do is change color of username in legend
but keep images after LEGEND:
main code
PHP Code:
$simple .= "<a href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$simple .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$simple .= pic("icon_p.png",'','Premium');
                elseif (
$row["level"] == "uploader"$simple .= pic("icon_up.png",'','Uploader');
                elseif (
$row["level"] == "moderator"$simple .= pic("icon_mod.png",'','Moderator');
                elseif (
$row["level"] == ""$advanced .=pic("icon_adm.png",'','admin');
                if(
$row["warned"] == "1"$simple .= '<img src="images/warning.gif" alt="warned" />';
                
$semple .="\n";
                if (
$i $tot$simple .= ", ";
                
$i++;

                
$advanced .= "<tr>";
                
$advanced .= "<td><p><a href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$advanced .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$advanced .= pic("icon_p.png",'','holder');
                elseif (
$row["level"] == "moderator"$simple .= pic("icon_mod.png",'','Moderator');
                elseif (
$row["level"] == ""$advanced .=pic("icon_adm.png",'','admin');
                if(
$row["warned"] == "1"$advanced .= '<img src="images/warning.gif" alt="warned" />';
                
$advanced .= "</p></td>\n"
Attached Images
 
Reply With Quote
  #2  
Old 31st May 2009, 16:28
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,112
Default
use
PHP Code:
                $simple .= "<a class= \"".$row["level"]."\" href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$simple .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$simple .= pic("icon_premium.gif",'','Premium');
                elseif (
$row["level"] == "uploader"$simple .= pic("icon_uploader.gif",'','Uploader');
                elseif (
$row["level"] == "moderator"$simple .= pic("icon_moderator.gif",'','Moderator');
                elseif (
$row["level"] == "admin"$simple .= pic("icon_admin.gif",'','Admin');
                if(
$row["warned"] == "1"$simple .= '<img src="images/warning.gif" alt="warned" />';
                
$semple .="\n";
                if (
$i $tot$simple .= ", ";
                
$i++;

                
$advanced .= "<tr>";
                
$advanced .= "<td><p><a class= \"".$row["level"]."\" href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$advanced .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$advanced .= pic("icon_premium.gif",'','holder');
                elseif (
$row["level"] == "moderator"$advanced .= pic("icon_moderator.gif",'','holder');
                elseif (
$row["level"] == "admin"$advanced .= pic("icon_admin.gif",'','holder');
                if(
$row["warned"] == "1"$advanced .= '<img src="images/warning.gif" alt="warned" />';
                
$advanced .= "</p></td>\n"
and edit
Code:
a.admin {
color : #aa0000;
font-weight : bold;
text-decoration : none;
}
a.moderator {
color : #53b54f;
font-weight : bold;
text-decoration : none;
}
a.premium {
color : #cecc46;
font-weight : bold;
text-decoration : none;
}
a.user {
color : #000000;
font-weight : bold;
text-decoration : none;
}
in each theme css
__________________
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 31st May 2009, 16:37
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
thanks
Reply With Quote
Reply

Tags
change , colors , legend

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
Legend Mod Krypto Mods & Themes 7 16th April 2010 16:35
legend.php search for ts 5.6 dragon38 Template Shares 1 28th March 2010 21:26
change colors on tt source Nemerniq Torrent Trader 1 29th June 2009 12:30
Change order by wMan BT.Manager (phpMyBitTorrent) 0 8th June 2009 06:38
LEGEND LEGEND Introduce Yourself 2 17th July 2008 18:33



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