Status Icons

Started on the old forum in April 2008 · view the original in the archive · old links redirect here

10 replies · 1,396 views · started 18 years ago · 1 min read

5 participants
nclemale36 Lead · 537 posts #1

hi . been playing round with code on index trying to get status icons to show on the online list . been using the male / female part of the code to see if i could replicate the same with status . but failed miserably lol .

//changable sql $sql = "SELECT a.name,a.perm, b.place, b.userid FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; echo " "; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { if($item[1]=='0') { $tit = ""; }if($item[1]=='1') { $tit = ""; }if($item[1]=='2') { $tit = ""; } if($item[1]=='3') { $tit = ""; } if($item[1]=='4') { $tit = ""; }

$sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name='$item[0]'")); if($sex[0]=="M"){$usersex = "<img src="../images/male.gif" alt="(m)"/>";} if($sex[0]=="F"){$usersex = "<img src="../images/female.gif" alt="(f)"/>";} if($sex[0]==""){$usersex = "";} if($item[1]>'0') { $lnk = "$usersex<a href="index.php?action=viewuser&who=$item[3]&sid=$sid">$tit$item[0]$tit</a>"; }else{ $lnk = "$usersex<a href="index.php?action=viewuser&who=$item[3]&sid=$sid">$tit$item[0]$tit</a>"; }

i have changed sql to perm instead of sex and tried different variations .nothing i have done works .

much appreciate anyones help here. btw its wapdesire / lava script .

nclemale36 Lead · 537 posts #3

I dont understand what status icon means but here is an example of HTML /WML Entities

i should of been more clear. want to display icons on the online list that tells users wot status ppl are. ie owner / head admin / admin / mod /member .

crazybrumi Super moderator Principal · 1,064 posts #4
   //changable sql
    $sql = "SELECT
            a.name,a.perm, b.place, b.userid FROM ibwf_users a
            INNER JOIN ibwf_online b ON a.id = b.userid
            GROUP BY 1,2
            LIMIT $limit_start, $items_per_page
    ";
  echo "<p align=\"center\">";
    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {
        if($item[1]=='0')
        {
          $tit = "<img src=\"../images/member.gif\" alt=\"(Member)\"/>";
        }if($item[1]=='1')
        {
          $tit = "<img src=\"../images/moderator.gif\" alt=\"(Mod)\"/>";
        }if($item[1]=='2')
        {
          $tit = "<img src=\"../images/admin.gif\" alt=\"(M)\"/>";
        } if($item[1]=='3')
        {
          $tit = "<img src=\"../images/headadmin.gif\" alt=\"(M)\"/>";
        } if($item[1]=='4')
        {
          $tit = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";
        }

$sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name='$item[0]'"));
if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
if($sex[0]==""){$usersex = "";}
if($item[1]>'0')
  {
  $lnk = "$usersex<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]</a>";
  }else{
  $lnk = "$usersex<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\">$tit$item[0]</a>";
  }

there ya go m8

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

crazybrumi Super moderator Principal · 1,064 posts #5
 echo "[b]Username:[/b] $whonick
";
  echo "[b]Status:[/b]";

$item = mysql_fetch_array(mysql_query("SELECT name,perm FROM ibwf_users WHERE id='".$who."'"));
          if($item[1]=='0')
        {
          $pro = "<img src=\"../images/member.gif\" alt=\"(Member)\"/>";
        }if($item[1]=='1')
        {
          $pro = "<img src=\"../images/moderator.gif\" alt=\"(Mod)\"/>";
        }if($item[1]=='2')
        {
          $pro = "<img src=\"../images/admin.gif\" alt=\"(M)\"/>";
        } if($item[1]=='3')
        {
          $pro = "<img src=\"../images/headadmin.gif\" alt=\"(M)\"/>";
        } if($item[1]=='4')
        {
          $pro = "<img src=\"../images/owner.gif\" alt=\"(M)\"/>";
        }

 echo "$pro 
";

  $nopl = mysql_fetch_array(mysql_query("SELECT regdate FROM ibwf_users WHERE id='".$who."'"));
  echo "[b]UserId:[/b] $who
";

heres the profiles one yu wanted to

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

alexism Developer · 136 posts #6

i have vip in my wap..anybody can help me to create status icon for vip?i have try but i got error..

Guest #8

if ur using the wapdesire script its a bit harder to do cause all the info is called from a difrent table havent checked for a while but when ever i tried all i got was errors

rukiya Lead · 569 posts #9

i have vip in my wap..anybody can help me to create status icon for vip?i have try but i got error..

You cant try because you even dont know what booleans are.You cant hope to get codes here if you wont post the codes you are COLLECTED to get v.i.p status

QUOTE(mattty)

if ur using the wapdesire script its a bit harder to do cause all the info is called from a difrent table havent checked for a while but when ever i tried all i got was errors

no its really easy and i will be getting errors until you can put correct codes

Attachments: 3.gif
crazybrumi Super moderator Principal · 1,064 posts #10

You cant try because you even dont know what booleans are.You cant hope to get codes here if you wont post the codes you are COLLECTED to get v.i.p status

pmsl lol wel if he dont nw shit like that hes fukd lol if he wants to code advance

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close