Male Female Sign Code For Online List

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

    Male Female Sign Code For Online List

    else if($action=="online")
    {

    addonline(getuid_sid($sid),"Online List","");
    echo "<card id=\"main\" title=\"*ONLINE*\">";


    //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $num_items = getnumonline(); //changable
    $items_per_page= 10;
    $num_pages = ceil($num_items/$items_per_page);
    if($page>$num_pages)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    //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\">";
    echo "<img src=\"images/onlinenow.gif\" alt=\"*\"/>
    ";
    echo " <a href=\"index.php?action=stfol&amp;sid=$sid\"><smal l>Helpdesk Online:".$noi[0]."
    </a>
    ";



    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {$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=\" \"/>";}
    if($sex[0]=="F"){$usersex = "<img src=\"images/female.gif\" alt=\" \"/>";}
    if($item[1]==&#39;0&#39;)
    {
    $tit = "";
    }if($item[1]==&#39;1&#39;)
    {
    $tit = "&#178";
    }if($item[1]==&#39;2&#39;)
    {
    $tit = "¹";
    } if($item[1]==&#39;3&#39;)
    {
    $tit = "¹";
    } if($item[1]==&#39;4&#39;)
    {
    $tit = "~";
    }$lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$usersex$tit$item[0]</a>";
    echo "$lnk
    ";
    }
    echo "
    </small></p>";
    echo "<p align=\"center\">";
    if($page>1)
    {
    $ppage = $page-1;
    echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
    $npage = $page+1;
    echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next»</a>";
    }
    echo "
    $page/$num_pages
    ";
    if($num_pages>2)
    {
    echo getjumper($action, $sid,"index");
    }
    echo "</p>";
    ////// UNTILL HERE >>

    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo "</card>";
    }

    #2
    else if($action=="online")
    {

    addonline(getuid_sid($sid),"Online List","");
    echo "<card id=\"main\" title=\"*ONLINE*\">";
    //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $num_items = getnumonline(); //changable
    $items_per_page= 10;
    $num_pages = ceil($num_items/$items_per_page);
    if($page>$num_pages)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    //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\">";
    echo "<img src=\"images/onlinenow.gif\" alt=\"*\"/>
    ";
    echo " <a href=\"index.php?action=stfol&amp;sid=$sid\"><smal l>Helpdesk Online:".$noi[0]."
    </a>
    ";
    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {$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=\" \"/>";}
    if($sex[0]=="F"){$usersex = "<img src=\"images/female.gif\" alt=\" \"/>";}
    if($item[1]==&#39;0&#39;)
    {
    $tit = "";
    }if($item[1]==&#39;1&#39;)
    {
    $tit = "&#178";
    }if($item[1]==&#39;2&#39;)
    {
    $tit = "¹";
    } if($item[1]==&#39;3&#39;)
    {
    $tit = "¹";
    } if($item[1]==&#39;4&#39;)
    {
    $tit = "~";
    }$lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$usersex$tit$item[0]</a>";
    echo "$lnk
    ";
    }
    echo "
    </small></p>";
    echo "<p align=\"center\">";
    if($page>1)
    {
    $ppage = $page-1;
    echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
    $npage = $page+1;
    echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next»</a>";
    }
    echo "
    $page/$num_pages
    ";
    if($num_pages>2)
    {
    echo getjumper($action, $sid,"index");
    }
    echo "</p>";
    ////// UNTILL HERE >>

    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo "</card>";
    }[/b]

    This script isent working!

    Comment


      #3
      share a workin codes friends this script does work but there is some error somewhere i tried many editing but cudn figure it out

      Comment


        #4
        what error does it give
        http://img235.imageshack.us/my.php?i...sc00464af9.jpg



        http://matthewdowd.bebo.com

        Comment


          #5
          everythin is fine it shows male female image but when u click on their id it says the member does not exist

          Comment


            #6
            everythin is fine it shows male female image but when u click on their id it says the member does not exist[/b]
            this code was already posted sumwhr around here.... when i put it at my script nd when i click on user i get session expired....i cut it lil bit, added sum amps lol and now it works perfectly.... i put the code at tht topic so search the topic....
            sigpiceeeeerrr....

            Comment


              #7
              you need to put amps in the links
              http://img235.imageshack.us/my.php?i...sc00464af9.jpg



              http://matthewdowd.bebo.com

              Comment


                #8
                look at code in the category wapcode at my topic
                if like my post click:

                http://coding-talk.com/images/totall...ost_thanks.gif

                Comment


                  #9
                  i did not find that code or any topic as wapcode if u have the code then please share it here this is the only way u will get help back in return when u need it

                  Comment


                    #10
                    index.php?action=online
                    Code:
                    else if($action=="online")
                    {
                    
                      addonline(getuid_sid($sid),"Online List","index.php?action=$action");
                        echo "<card id=\"main\" title=\"ONLINE\">";
                    
                    
                      //////ALL LISTS SCRIPT <<
                    
                        if($page=="" || $page<=0)$page=1;
                        $num_items = getnumonline(); //changable
                        $items_per_page= 5;
                        $num_pages = ceil($num_items/$items_per_page);
                        if($page>$num_pages)$page= $num_pages;
                        $limit_start = ($page-1)*$items_per_page;
                    
                        $sql = "SELECT
                                a.name, a.sex, 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]==M)
                      {
                        $usex = "<img src=\"images/male.gif\" alt=\"M\"/>";
                      }else if($item[1]==F){
                        $usex = "<img src=\"images/female.gif\" alt=\"F\"/>";
                      }else{ 
                        $usex = "<img src=\"smilies/alien.gif\" alt=\"Shemale\"/>";
                      }
                       $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";
                          echo "$usex $lnk - $item[2] 
                    ";
                     echo "</p>";
                        echo "<p align=\"center\">";
                        if($page>1)
                        {
                          $ppage = $page-1;
                          echo "<a href=\"index.php?action=online&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
                        }
                        if($page<$num_pages)
                        {
                          $npage = $page+1;
                          echo "<a href=\"index.php?action=online&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                        }
                        echo "
                    $page/$num_pages
                    ";
                        if($num_pages>2)
                        {
                          echo getjumper($action, $sid,"index");
                        }
                        echo "</p>";
                      ////// UNTILL HERE >>
                    
                      echo "<p align=\"center\">";
                      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                    echo "Home</a>";
                      echo "</p>";
                      echo "</card>";
                    }
                    just copy and paste the code in index.php?action=online

                    Comment


                      #11
                      index.php?action=online
                      Code:
                      else if($action=="online")
                      {
                      
                        addonline(getuid_sid($sid),"Online List","index.php?action=$action");
                          echo "<card id=\"main\" title=\"ONLINE\">";
                        //////ALL LISTS SCRIPT <<
                      
                          if($page=="" || $page<=0)$page=1;
                          $num_items = getnumonline(); //changable
                          $items_per_page= 5;
                          $num_pages = ceil($num_items/$items_per_page);
                          if($page>$num_pages)$page= $num_pages;
                          $limit_start = ($page-1)*$items_per_page;
                      
                          $sql = "SELECT
                                  a.name, a.sex, 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]==M)
                        {
                          $usex = "<img src=\"images/male.gif\" alt=\"M\"/>";
                        }else if($item[1]==F){
                          $usex = "<img src=\"images/female.gif\" alt=\"F\"/>";
                        }else{ 
                          $usex = "<img src=\"smilies/alien.gif\" alt=\"Shemale\"/>";
                        }
                         $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";
                            echo "$usex $lnk - $item[2] 
                      ";
                       echo "</p>";
                          echo "<p align=\"center\">";
                          if($page>1)
                          {
                            $ppage = $page-1;
                            echo "<a href=\"index.php?action=online&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
                          }
                          if($page<$num_pages)
                          {
                            $npage = $page+1;
                            echo "<a href=\"index.php?action=online&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                          }
                          echo "
                      $page/$num_pages
                      ";
                          if($num_pages>2)
                          {
                            echo getjumper($action, $sid,"index");
                          }
                          echo "</p>";
                        ////// UNTILL HERE >>
                      
                        echo "<p align=\"center\">";
                        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                      echo "Home</a>";
                        echo "</p>";
                        echo "</card>";
                      }
                      just copy and paste the code in index.php?action=online

                      [/b]




                      hm.. I&#39;ve saw this somewhere...

                      Comment


                        #12
                        copy this and put into online list


                        here it is

                        -------------------------------------------------
                        else if($action=="online")
                        {

                        addonline(getuid_sid($sid),"Online List","");
                        echo "<card id=\"main\" title=\"[".getnumonline()."] Online\">";


                        //////ALL LISTS SCRIPT <<

                        if($page=="" || $page<=0)$page=1;
                        $num_items = getnumonline(); //changable
                        $items_per_page= 10;
                        $num_pages = ceil($num_items/$items_per_page);
                        if($page>$num_pages)$page= $num_pages;
                        $limit_start = ($page-1)*$items_per_page;

                        //changable sql
                        $sql = "SELECT
                        a.name, 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\">";

                        echo "<img src=\"images/online.gif\" alt=\"*\"/>
                        ";

                        $timeout = 180;
                        $timeon = time()-$timeout;
                        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>&#39;0&#39; AND lastact>&#39;".$timeon."&#39;"));
                        echo "<a href=\"index.php?action=stfol&amp;sid=$sid\">Staff Online: ".$noi[0]."</a>
                        ";
                        echo "</p>";
                        echo "<p align=\"left\">";
                        echo "";
                        $items = mysql_query($sql);
                        echo mysql_error();
                        while ($item = mysql_fetch_array($items))
                        {

                        $gender = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id=&#39;".$item[2]."&#39;"));
                        if($gender[0]=="M") {
                        $seximg = "<img src=\"images/male.gif\" alt=\"M\"/>";
                        }else if($gender[0]=="F") {
                        $seximg = "<img src=\"images/female.gif\" alt=\"F\"/>";
                        }else{
                        $seximg = "???";
                        }


                        $pr = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id=&#39;".$item[2]."&#39;"));
                        if($pr[0]=="1") {
                        $prm = "
                        ° Mod";
                        }else if($pr[0]=="2") {
                        $prm = "
                        ° Admin";
                        }else{
                        $prm ="";
                        }


                        $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$seximg $item[0]</a>";
                        echo "$lnk$prm
                        [$item[1]]
                        -----
                        ";
                        }
                        echo "
                        </p>";
                        echo "<p align=\"center\">";
                        if($page>1)
                        {
                        $ppage = $page-1;
                        echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">«PREV</a> ";
                        }
                        if($page<$num_pages)
                        {
                        $npage = $page+1;
                        echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next»</a>";
                        }
                        echo "
                        $page/$num_pages
                        ";
                        if($num_pages>2)
                        {
                        echo getjumper($action, $sid,"index");
                        }
                        echo "</p>";
                        ////// UNTILL HERE >>

                        echo "<p align=\"center\">";
                        $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id=&#39;2&#39;"));
                        echo "Most online: $mols[1]
                        ";

                        $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt=&#39;".date("d m y")."&#39;"));
                        echo "Most online today: $mols[0]
                        ";

                        $tm24 = time() - (24*60*60);
                        $aut = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>&#39;".$tm24."&#39;"));
                        echo mysql_error();
                        echo "Active users today: <a href=\"lists.php?action=actmem&amp;sid=$sid\">$aut[0]</a>

                        ";

                        echo "<img src=\"http://besttop.mobi/c2.php?id=16727\" alt=\"*\"/>
                        ";
                        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                        echo "Home</a>";
                        echo "</p>";
                        echo "</card>";
                        }
                        Attached Files
                        sigpic

                        WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

                        Comment

                        Working...
                        X