Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Šaukyklos spalva useriu

Parašė Andrius123· 2008 Sau. 24 20:01:28
#6

Surask si koda shoutbox_panel.php faile

   while ($data = dbarray($result)) {
      echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
      if ($data['user_name']) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
      }




Pakeiciame i sita:

   while ($data = dbarray($result)) {
      echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
      
if ($data['user_level'] == "103") {

$useris = "<font color='#FF3300'><b>@".$data['user_name']."</b></font>";

} else if ($data['user_level'] == "102") {

$useris = "<font color='#000066'><b>~".$data['user_name']."</b></font>";

} else if ($data['user_level'] == "101") {

$useris = "".$data['user_name']."";
}
      if ($data['user_name']) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$useris</a>\n";
      }




Tikiosi padejau. :)

Redagavo Andrius123· 2008 Sau. 24 20:01:45