Male Female Sign Code For Online List

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

11 replies · 1,455 views · started 19 years ago · 1 min read

TL;DR · summary of 11 replies
  • Reply by phoenix90 asked about errors in the script.
  • Guest provided a working code snippet but did not fix all issues.
  • Futurewap suggested adding ampersands (&) to links for better functionality.
  • The final solution was found in another reply, suggesting copying and pasting specific code into index.php?action=online.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

6 participants
hardrave #1

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 "

"; echo "<img src="images/onlinenow.gif" alt="*"/> "; echo " <a href="index.php?action=stfol&sid=$sid">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='$item[0]'")); 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]=='0') { $tit = ""; }if($item[1]=='1') { $tit = "&#178"; }if($item[1]=='2') { $tit = "¹"; } if($item[1]=='3') { $tit = "¹"; } if($item[1]=='4') { $tit = "~"; }$lnk = "<a href="index.php?action=viewuser&who=$item[3]&sid=$sid">$usersex$tit$item[0]</a>"; echo "$lnk "; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="index.php?action=online&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="index.php?action=online&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo " "; ////// UNTILL HERE >>

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

phoenix90 Developer · 113 posts #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 "

"; echo "<img src="images/onlinenow.gif" alt="*"/> "; echo " <a href="index.php?action=stfol&sid=$sid">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='$item[0]'")); 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]=='0') { $tit = ""; }if($item[1]=='1') { $tit = "&#178"; }if($item[1]=='2') { $tit = "¹"; } if($item[1]=='3') { $tit = "¹"; } if($item[1]=='4') { $tit = "~"; }$lnk = "<a href="index.php?action=viewuser&who=$item[3]&sid=$sid">$usersex$tit$item[0]</a>"; echo "$lnk "; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="index.php?action=online&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="index.php?action=online&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo " "; ////// UNTILL HERE >>

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

This script isent working!

Guest #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

Guest #5

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

alesh Lead · 604 posts #6

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

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

eeeeerrr....

Guest #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 External image (may be gone)

thanatos Senior · 261 posts #10

index.php?action=online

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&who=$item[3]&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&page=$ppage&sid=$sid\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"index.php?action=online&page=$npage&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&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

External image (may be gone)

Guest #11

index.php?action=online

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&who=$item[3]&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&page=$ppage&sid=$sid\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"index.php?action=online&page=$npage&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&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

External image (may be gone)

hm.. I've saw this somewhere...

thunderwap Developer · 169 posts #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 " ";

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>'0' AND lastact>'".$timeon."'")); echo "<a href="index.php?action=stfol&sid=$sid">Staff Online: ".$noi[0]."</a> "; echo " "; echo " "; 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='".$item[2]."'")); 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='".$item[2]."'")); if($pr[0]=="1") { $prm = " ° Mod"; }else if($pr[0]=="2") { $prm = " ° Admin"; }else{ $prm =""; }

$lnk = "<a href="index.php?action=viewuser&who=$item[2]&sid=$sid">$seximg $item[0]</a>"; echo "$lnk$prm [$item[1]]

"; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="index.php?action=online&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="index.php?action=online&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo " "; ////// UNTILL HERE >>

echo " "; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); echo "Most online: $mols[1] ";

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

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

";

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

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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