Male female online list

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

    Male female online list

    usage
    Code:
    boxstart("men+women online list");
    
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
       $memberonline = "<a href=\"index.php?action=online&amp;sid=$sid\">Online ".getnumonline()."</a><br/>";
      echo "$memberonline";
      $timeout = (time() - $timeadjust)  - 180;
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/girlon.gif\" align=\"absbottom\"></a>";
    $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='F'"));
       echo "<a href=\"index.php?action=fonline&amp;sid=$sid\">Female Seeking Men [$kazz[0]]</a><br/>";
     echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/boyon.gif\" align=\"absbottom\"></a>";
    $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='M'"));
        echo "<a href=\"index.php?action=monline&amp;sid=$sid\">Male Seeking Female [$kazz[0]]</a><br/>";
    Code:
    /////////////////////////////////////////////////////////////////////
    else if($action=="online")
    {
    
     $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'"));
    $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
      addonline(getuid_sid($sid),"Online list Xhtml-$mmsg","index.php?action=online");
    $pstyle = gettheme($sid);
        echo xhtmlhead("Online List",$pstyle);
        echo "<body>";
    echo "<p align=\"center\">";
    
         //////ALL LISTS SCRIPT <<
    boxstart("Online List");
        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";
    
    
    
    
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=vipol&amp;sid=$sid\">V.I.P Online</a><br/>";
      echo "<p align=\"left\">";
        $items = mysql_query($sql);
        echo mysql_error();
        while ($item = mysql_fetch_array($items))
        {
            if($item[1]=='0')
            {
              $tit = "";
            }if($item[1]=='1')
            {
              $tit = "&#179;";
            }if($item[1]=='2')
            {
              $tit = "&#178;";
            } if($item[1]=='3')
            {
              $tit = "&#185;";
            } if($item[1]=='4')
            {
              $tit = "&#186;";
            }
    
    $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&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>";
      }
    ////////////////////online avatar
     if($showavatar[0]=="1")
    {
    $avlink = getavatar($item[3]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
    }
      echo "$lnk - $item[2] <br/>";
        }
    
    
    $mmsg1 = parsemsg(getsetmood($item[2]), $sid);
          if(!$mmsg1=="")
         {
          echo "($mmsg1) - $item[1] ";
          }else{
          echo "  $item[1]<br/>";
          }
    
        //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 "<br/>$page/$num_pages";
        if($num_pages>2)
        {
        echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    
    boxend();
    boxstart("Where U wona go");
    $nick = getnick_sid($sid);
    echo "<p align=\"center\">";
    echo "<hr></hr>";
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Update Mood</a><br/>";
    $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
      echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg/$tmsg)</a><br/>";
    echo "<a href=\"index.php?action=formmenu&amp;sid=$sid\">Forums</a><br/>";
      echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
        echo "<p align=\"center\">";
           echo "<a href=\"index.php?action=main&amp;sid=$sid\">";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
      echo "</body>";
    boxend();
    }
    else if($action=="monline")
    {
     $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'"));
      addonline(getuid_sid($sid),"Online List - xHTML","");
    $pstyle = gettheme($sid);
        echo xhtmlhead("Online List",$pstyle);
    
    
      //////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, sex, perm FROM ibwf_users a
                INNER JOIN ibwf_online b ON a.id = b.userid WHERE a.sex='M'
                GROUP BY 1,2
                LIMIT $limit_start, $items_per_page
        ";
    
        echo "<p><small>";
    getalert($sid);
      if($showshout[0]=="1"){
      echo "<div class=\"mblock1\">";
       echo "<small>";
      echo getshoutbox($sid);
      echo "</small>";
    echo "</div>";
      }
    boxstart ("Online");
    echo "<meta http-equiv=\"refresh\" content=\"30; url=index.php?action=online&amp;sid=$sid\">";
        $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'"));
        print "Most online: <b>$mols[1]</b><br/>";
        $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
        print "Most online today only: <b>$mols[0]</b><br/>";
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=vipol&amp;sid=$sid\">V.I.P </a><br/>";
    
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=stfol&amp;sid=$sid\">Staff</a><br/><br/>";
      $timeout = (time() - $timeadjust)  - 180;
        $items = mysql_query($sql);
        echo mysql_error();
    boxend();
    boxstart ("Online");
        while ($item = mysql_fetch_array($items))
        {
          if ($item[3]=="M"){
          $icon = "<img src=\"images/male.gif\" alt=\"M\"/>";
          }else
          if ($item[3]=="F"){
          $icon = "<img src=\"images/female.gif\" alt=\"F\"/>";
          }
    
            if ($item[4]=="1")
              {
              $lnk ="<a class=\"mod\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='blue'>$item[0]</font></a>";
              }
              else if ($item[4]=="2")
              {
              $lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='red'>$item[0]</font></a>";
              }
              else if ($item[4]=="3")
              {
              $lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lightgreen'>$item[0]</font></a>";
              }
              else if ($item[4]=="4")
              {
              $lnk = "<a class=\"coder\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lime'>$item[0]</font></a>";
              }
    /////////////////////online avatar
     if($showavatar[0]=="1")
    {
    $avlink = getavatar($item[2]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
    }
    /////////////////////////////////////
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
          echo "$icon $lnk - $item[1] - $item[2] <br/>";
        }
    $mmsg1 = parsemsg(getsetmood($item[2]), $sid);
          if(!$mmsg1=="")
         {
          echo "($mmsg1) - $item[1] ";
          }else{
          echo "  $item[1]<br/>";
          }
        echo "</small></p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"index.php?action=monline&amp;page=$ppage&amp;sid=$sid\">&#171;PREV</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"index.php?action=monline&amp;page=$npage&amp;sid=$sid\">Next&#187;</a>";
        }
        echo "<br/>$page/$num_pages<br/>";
        if($num_pages>2)
        {
          echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    boxend();
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Update Mood</a><br/>";
    $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
    echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg/$tmsg)</a><br/>";
    echo "<a href=\"index.php?action=formmenu&amp;sid=$sid\">Forums</a><br/>";
      echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
      echo "<p align=\"center\">";
      $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
    }
    else if($action=="fonline")
    {
     $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'"));
      addonline(getuid_sid($sid),"Online List - xHTML","");
    $pstyle = gettheme($sid);
        echo xhtmlhead("Online List",$pstyle);
    
    
      //////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, sex, perm FROM ibwf_users a
                INNER JOIN ibwf_online b ON a.id = b.userid WHERE a.sex='F'
                GROUP BY 1,2
                LIMIT $limit_start, $items_per_page
        ";
    
        echo "<p><small>";
    getalert($sid);
      if($showshout[0]=="1"){
      echo "<div class=\"mblock1\">";
       echo "<small>";
      echo getshoutbox($sid);
      echo "</small>";
    echo "</div>";
      }
    boxstart ("Online");
    echo "<meta http-equiv=\"refresh\" content=\"30; url=index.php?action=online&amp;sid=$sid\">";
        $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'"));
        print "Most online: <b>$mols[1]</b><br/>";
        $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
        print "Most online today only: <b>$mols[0]</b><br/>";
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=vipol&amp;sid=$sid\">V.I.P </a><br/>";
    
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=stfol&amp;sid=$sid\">Staff</a><br/><br/>";
      $timeout = (time() - $timeadjust)  - 180;
        $items = mysql_query($sql);
        echo mysql_error();
    boxend();
    boxstart ("Online");
        while ($item = mysql_fetch_array($items))
        {
          if ($item[3]=="M"){
          $icon = "<img src=\"images/male.gif\" alt=\"M\"/>";
          }else
          if ($item[3]=="F"){
          $icon = "<img src=\"images/female.gif\" alt=\"F\"/>";
          }
    
            if ($item[4]=="1")
              {
              $lnk ="<a class=\"mod\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='blue'>$item[0]</font></a>";
              }
              else if ($item[4]=="2")
              {
              $lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='red'>$item[0]</font></a>";
              }
              else if ($item[4]=="3")
              {
              $lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lightgreen'>$item[0]</font></a>";
              }
              else if ($item[4]=="4")
              {
              $lnk = "<a class=\"coder\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lime'>$item[0]</font></a>";
              }
    /////////////////////online avatar
     if($showavatar[0]=="1")
    {
    $avlink = getavatar($item[2]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
    }
    /////////////////////////////////////
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
          echo "$icon $lnk - $item[1] - $item[2] <br/>";
        }
    $mmsg1 = parsemsg(getsetmood($item[2]), $sid);
          if(!$mmsg1=="")
         {
          echo "($mmsg1) - $item[1] ";
          }else{
          echo "  $item[1]<br/>";
          }
        echo "</small></p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"index.php?action=fonline&amp;page=$ppage&amp;sid=$sid\">&#171;PREV</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"index.php?action=fonline&amp;page=$npage&amp;sid=$sid\">Next&#187;</a>";
        }
        echo "<br/>$page/$num_pages<br/>";
        if($num_pages>2)
        {
          echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    boxend();
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Update Mood</a><br/>";
    $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
    echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg/$tmsg)</a><br/>";
    echo "<a href=\"index.php?action=formmenu&amp;sid=$sid\">Forums</a><br/>";
      echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
      echo "<p align=\"center\">";
      $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
    }

    #2
    Originally posted by riderz View Post
    usage
    Code:
    boxstart("men+women online list");
    
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
       $memberonline = "<a href=\"index.php?action=online&amp;sid=$sid\">Online ".getnumonline()."</a><br/>";
      echo "$memberonline";
      $timeout = (time() - $timeadjust)  - 180;
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/girlon.gif\" align=\"absbottom\"></a>";
    $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='F'"));
       echo "<a href=\"index.php?action=fonline&amp;sid=$sid\">Female Seeking Men [$kazz[0]]</a><br/>";
     echo "<img class=\"menu\" alt=\"Gallery\" src=\"images/boyon.gif\" align=\"absbottom\"></a>";
    $kazz = mysql_fetch_array(mysql_query("SELECT count(a.userid) FROM ibwf_online a,ibwf_users b where a.userid=b.id and b.sex='M'"));
        echo "<a href=\"index.php?action=monline&amp;sid=$sid\">Male Seeking Female [$kazz[0]]</a><br/>";
    Code:
    /////////////////////////////////////////////////////////////////////
    else if($action=="online")
    {
    
     $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'"));
    $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
      addonline(getuid_sid($sid),"Online list Xhtml-$mmsg","index.php?action=online");
    $pstyle = gettheme($sid);
        echo xhtmlhead("Online List",$pstyle);
        echo "<body>";
    echo "<p align=\"center\">";
    
         //////ALL LISTS SCRIPT <<
    boxstart("Online List");
        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";
    
    
    
    
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=vipol&amp;sid=$sid\">V.I.P Online</a><br/>";
      echo "<p align=\"left\">";
        $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&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>";
      }
    ////////////////////online avatar
     if($showavatar[0]=="1")
    {
    $avlink = getavatar($item[3]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
    }
      echo "$lnk - $item[2] <br/>";
        }
    
    
    $mmsg1 = parsemsg(getsetmood($item[2]), $sid);
          if(!$mmsg1=="")
         {
          echo "($mmsg1) - $item[1] ";
          }else{
          echo "  $item[1]<br/>";
          }
    
        //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 "<br/>$page/$num_pages";
        if($num_pages>2)
        {
        echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    
    boxend();
    boxstart("Where U wona go");
    $nick = getnick_sid($sid);
    echo "<p align=\"center\">";
    echo "<hr></hr>";
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Update Mood</a><br/>";
    $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
      echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg/$tmsg)</a><br/>";
    echo "<a href=\"index.php?action=formmenu&amp;sid=$sid\">Forums</a><br/>";
      echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
        echo "<p align=\"center\">";
           echo "<a href=\"index.php?action=main&amp;sid=$sid\">";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
      echo "</body>";
    boxend();
    }
    else if($action=="monline")
    {
     $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'"));
      addonline(getuid_sid($sid),"Online List - xHTML","");
    $pstyle = gettheme($sid);
        echo xhtmlhead("Online List",$pstyle);
    
    
      //////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, sex, perm FROM ibwf_users a
                INNER JOIN ibwf_online b ON a.id = b.userid WHERE a.sex='M'
                GROUP BY 1,2
                LIMIT $limit_start, $items_per_page
        ";
    
        echo "<p><small>";
    getalert($sid);
      if($showshout[0]=="1"){
      echo "<div class=\"mblock1\">";
       echo "<small>";
      echo getshoutbox($sid);
      echo "</small>";
    echo "</div>";
      }
    boxstart ("Online");
    echo "<meta http-equiv=\"refresh\" content=\"30; url=index.php?action=online&amp;sid=$sid\">";
        $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'"));
        print "Most online: <b>$mols[1]</b><br/>";
        $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
        print "Most online today only: <b>$mols[0]</b><br/>";
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=vipol&amp;sid=$sid\">V.I.P </a><br/>";
    
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=stfol&amp;sid=$sid\">Staff</a><br/><br/>";
      $timeout = (time() - $timeadjust)  - 180;
        $items = mysql_query($sql);
        echo mysql_error();
    boxend();
    boxstart ("Online");
        while ($item = mysql_fetch_array($items))
        {
          if ($item[3]=="M"){
          $icon = "<img src=\"images/male.gif\" alt=\"M\"/>";
          }else
          if ($item[3]=="F"){
          $icon = "<img src=\"images/female.gif\" alt=\"F\"/>";
          }
    
            if ($item[4]=="1")
              {
              $lnk ="<a class=\"mod\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='blue'>$item[0]</font></a>";
              }
              else if ($item[4]=="2")
              {
              $lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='red'>$item[0]</font></a>";
              }
              else if ($item[4]=="3")
              {
              $lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lightgreen'>$item[0]</font></a>";
              }
              else if ($item[4]=="4")
              {
              $lnk = "<a class=\"coder\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lime'>$item[0]</font></a>";
              }
    /////////////////////online avatar
     if($showavatar[0]=="1")
    {
    $avlink = getavatar($item[2]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
    }
    /////////////////////////////////////
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
          echo "$icon $lnk - $item[1] - $item[2] <br/>";
        }
    $mmsg1 = parsemsg(getsetmood($item[2]), $sid);
          if(!$mmsg1=="")
         {
          echo "($mmsg1) - $item[1] ";
          }else{
          echo "  $item[1]<br/>";
          }
        echo "</small></p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"index.php?action=monline&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"index.php?action=monline&amp;page=$npage&amp;sid=$sid\">Next»</a>";
        }
        echo "<br/>$page/$num_pages<br/>";
        if($num_pages>2)
        {
          echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    boxend();
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Update Mood</a><br/>";
    $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
    echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg/$tmsg)</a><br/>";
    echo "<a href=\"index.php?action=formmenu&amp;sid=$sid\">Forums</a><br/>";
      echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
      echo "<p align=\"center\">";
      $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
    }
    else if($action=="fonline")
    {
     $showavatar = mysql_fetch_array(mysql_query("SELECT showavatar FROM ibwf_users WHERE id='".$uid."'"));
      addonline(getuid_sid($sid),"Online List - xHTML","");
    $pstyle = gettheme($sid);
        echo xhtmlhead("Online List",$pstyle);
    
    
      //////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, sex, perm FROM ibwf_users a
                INNER JOIN ibwf_online b ON a.id = b.userid WHERE a.sex='F'
                GROUP BY 1,2
                LIMIT $limit_start, $items_per_page
        ";
    
        echo "<p><small>";
    getalert($sid);
      if($showshout[0]=="1"){
      echo "<div class=\"mblock1\">";
       echo "<small>";
      echo getshoutbox($sid);
      echo "</small>";
    echo "</div>";
      }
    boxstart ("Online");
    echo "<meta http-equiv=\"refresh\" content=\"30; url=index.php?action=online&amp;sid=$sid\">";
        $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'"));
        print "Most online: <b>$mols[1]</b><br/>";
        $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
        print "Most online today only: <b>$mols[0]</b><br/>";
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE specialid>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=vipol&amp;sid=$sid\">V.I.P </a><br/>";
    
    echo "<img class=\"menu\" alt=\"Group\" src=\"images/online1.gif\" align=\"absbottom\"></a>";
     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeout."'"));
      echo "<a href=\"index.php?action=stfol&amp;sid=$sid\">Staff</a><br/><br/>";
      $timeout = (time() - $timeadjust)  - 180;
        $items = mysql_query($sql);
        echo mysql_error();
    boxend();
    boxstart ("Online");
        while ($item = mysql_fetch_array($items))
        {
          if ($item[3]=="M"){
          $icon = "<img src=\"images/male.gif\" alt=\"M\"/>";
          }else
          if ($item[3]=="F"){
          $icon = "<img src=\"images/female.gif\" alt=\"F\"/>";
          }
    
            if ($item[4]=="1")
              {
              $lnk ="<a class=\"mod\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='blue'>$item[0]</font></a>";
              }
              else if ($item[4]=="2")
              {
              $lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='red'>$item[0]</font></a>";
              }
              else if ($item[4]=="3")
              {
              $lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lightgreen'>$item[0]</font></a>";
              }
              else if ($item[4]=="4")
              {
              $lnk = "<a class=\"coder\" href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"><font color='lime'>$item[0]</font></a>";
              }
    /////////////////////online avatar
     if($showavatar[0]=="1")
    {
    $avlink = getavatar($item[2]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"/images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
    }
    /////////////////////////////////////
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
          echo "$icon $lnk - $item[1] - $item[2] <br/>";
        }
    $mmsg1 = parsemsg(getsetmood($item[2]), $sid);
          if(!$mmsg1=="")
         {
          echo "($mmsg1) - $item[1] ";
          }else{
          echo "  $item[1]<br/>";
          }
        echo "</small></p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"index.php?action=fonline&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"index.php?action=fonline&amp;page=$npage&amp;sid=$sid\">Next»</a>";
        }
        echo "<br/>$page/$num_pages<br/>";
        if($num_pages>2)
        {
          echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    boxend();
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Update Mood</a><br/>";
    $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
    echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg/$tmsg)</a><br/>";
    echo "<a href=\"index.php?action=formmenu&amp;sid=$sid\">Forums</a><br/>";
      echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
      echo "<p align=\"center\">";
      $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
    }
    what script is this from and where does the first box of coding go please
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    Comment


      #3
      the first box is just the usage on main page then the other box are fonline for female and monline for male

      Comment


        #4
        Originally posted by riderz View Post
        the first box is just the usage on main page then the other box are fonline for female and monline for male
        so both parts have to go on index.php or what
        HELP THEM WHO HELPS YOU



        i only work on wapdesire v_2 coding only

        Comment


          #5
          jip both come on index the box one come on index.php?action=main and the fonline and monline any other place on index

          Comment


            #6
            Originally posted by riderz View Post
            jip both come on index the box one come on index.php?action=main and the fonline and monline any other place on index
            ok thanks mate for that now i can sort it out
            HELP THEM WHO HELPS YOU



            i only work on wapdesire v_2 coding only

            Comment

            Working...
            X