Status Icons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Status Icons

    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 "<p align=\"center\">";
    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {
    if($item[1]==&#39;0&#39;)
    {
    $tit = "";
    }if($item[1]==&#39;1&#39;)
    {
    $tit = "*";
    }if($item[1]==&#39;2&#39;)
    {
    $tit = "*";
    } if($item[1]==&#39;3&#39;)
    {
    $tit = "*";
    } if($item[1]==&#39;4&#39;)
    {
    $tit = "*";
    }

    $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
    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]>&#39;0&#39;)
    {
    $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]$tit</a>";
    }else{
    $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;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 .
    Wapchat4u


    Topsites4u

    #2
    I dont understand what status icon means but here is an example of HTML /WML Entities
    [attachment=1573:New_Text_Document.txt]
    Attached Files

    Comment


      #3
      I dont understand what status icon means but here is an example of HTML /WML Entities
      [attachment=1573:New_Text_Document.txt][/b]

      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 .
      Wapchat4u


      Topsites4u

      Comment


        #4
        Code:
           //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]==&#39;0&#39;)
                {
                  $tit = "<img src=\"../images/member.gif\" alt=\"(Member)\"/>";
                }if($item[1]==&#39;1&#39;)
                {
                  $tit = "<img src=\"../images/moderator.gif\" alt=\"(Mod)\"/>";
                }if($item[1]==&#39;2&#39;)
                {
                  $tit = "<img src=\"../images/admin.gif\" alt=\"(M)\"/>";
                } if($item[1]==&#39;3&#39;)
                {
                  $tit = "<img src=\"../images/headadmin.gif\" alt=\"(M)\"/>";
                } if($item[1]==&#39;4&#39;)
                {
                  $tit = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";
                }
        
        $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
        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]>&#39;0&#39;)
          {
          $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]</a>";
          }else{
          $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]</a>";
          }
        there ya go m8
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          Code:
           echo "[b]Username:[/b] $whonick
          ";
            echo "[b]Status:[/b]";
          
          $item = mysql_fetch_array(mysql_query("SELECT name,perm FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                    if($item[1]==&#39;0&#39;)
                  {
                    $pro = "<img src=\"../images/member.gif\" alt=\"(Member)\"/>";
                  }if($item[1]==&#39;1&#39;)
                  {
                    $pro = "<img src=\"../images/moderator.gif\" alt=\"(Mod)\"/>";
                  }if($item[1]==&#39;2&#39;)
                  {
                    $pro = "<img src=\"../images/admin.gif\" alt=\"(M)\"/>";
                  } if($item[1]==&#39;3&#39;)
                  {
                    $pro = "<img src=\"../images/headadmin.gif\" alt=\"(M)\"/>";
                  } if($item[1]==&#39;4&#39;)
                  {
                    $pro = "<img src=\"../images/owner.gif\" alt=\"(M)\"/>";
                  }
          
           echo "$pro 
          ";
          
          
            $nopl = mysql_fetch_array(mysql_query("SELECT regdate FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
            echo "[b]UserId:[/b] $who
          ";
          heres the profiles one yu wanted to
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


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

            Comment


              #7
              is it linkted to perms so its 5 for vip ?
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #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

                Comment


                  #9
                  i have vip in my wap..anybody can help me to create status icon for vip?i have try but i got error..[/b]
                  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
                  [attachment=1582:3.gif]
                  <div class='quotetop'>QUOTE(mattty)</div>
                  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[/b]
                  no its really easy and i will be getting errors until you can put correct codes
                  Attached Files

                  Comment


                    #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
                    [attachment=1582:3.gif][/b]
                    pmsl lol wel if he dont nw **** like that hes fukd lol if he wants to code advance
                    Want something coded email me at sales@webnwaphost.com for a prices.




                    Comment


                      #11
                      i have vip in my wap..anybody can help me to create status icon for vip?i have try but i got error..[/b]
                      Do it yourself bitch cause im not helping you with **** ever again

                      Click here!!!

                      Comment

                      Working...
                      X