Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   change colors in Legend (http://www.bvlist.com/showthread.php?t=2740)

wMan 31st May 2009 16:13

change colors in Legend
 
1 Attachment(s)
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&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&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"


joeroberts 31st May 2009 16:28

use
PHP Code:

                $simple .= "<a class= \"".$row["level"]."\" href=\"user.php?op=profile&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&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

wMan 31st May 2009 16:37

:friend:thanks


All times are GMT +2. The time now is 04:51.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.