shoutroom online

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

No replies · 581 views · started 15 years ago · 1 min read

brand Senior · 391 posts #1

hi there friends i am trying to fix this

else if($action=="shout")
{
    addonline(getuid_sid($sid),"Shout Online List","");
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
        echo "<div align=\"center\">";
  echo "".date("D jS M y")."<br/>";
  echo "~*<b>Online In Shoutroom</b>*~</div>";

    //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $noi=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online a JOIN ibwf_users b ON a.userid = b.id WHERE a.place='shoutroom'"));
    $num_items = $noi[0];
    $items_per_page= 5;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    //changable sql
    $sql = "SELECT
            a.name,a.blues, b.place, b.userid, a.onlinemsg, a.kaler FROM ibwf_users a
            INNER JOIN ibwf_online b ON a.id = b.userid WHERE b.place='shoutroom'
            GROUP BY 1,2
            LIMIT $limit_start, $items_per_page
    ";

  echo "<div 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 = "<img src=\"../images/staf.gif\" alt=\"(s)\"/> <i><font color=\"red\"> *$mod*</font></i><br/>";
        }if($item[1]=='2')
        {
          $tit = "<img src=\"../images/staf.gif\" alt=\"(s)\"/> <i><font color=\"red\"> *$admin*</font></i><br/>";
        } if($item[1]=='3')
        {
          $tit = "<img src=\"../images/staf.gif\" alt=\"(s)\"/> <i><font color=\"red\"> *$leftm*</font></i><br/>";
        } if($item[1]=='4')
        {
          $tit = "<img src=\"../images/staf.gif\" alt=\"(s)\"/> <i><font color=\"red\"> *$left*</font></i><br/>";
        } if($item[1]=='5')
        {
          $tit = "<img src=\"../images/staf.gif\" alt=\"(s)\"/> <i><font color=\"red\"> *$owner*</font></i><br/>";
        }
  $icon = getnickicon($item[3]);
  if($icon=="")
  {
  $onl = "";
  }else{
  $onl = "<img src=\"$icon\" alt=\"*\"/>";
  }

$kaler = mysql_fetch_array(mysql_query("SELECT kaler FROM ibwf_users WHERE name='$item[0]'"));
$textkale = mysql_fetch_array(mysql_query("SELECT textkaler FROM ibwf_users WHERE name='$item[0]'"));
$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)\"/><br/>";}
if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/><br/>";}
if($sex[0]==""){$usersex = "Unsure<br/>";}
if($item[1]>'0')
  {
  $lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\"><font color=\"$kaler[0]\"><b>$onl $item[0]</b></font></a>";
  }else{
  $lnk = "<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\"><font color=\"$kaler[0]\"><b>$onl $item[0]</b></font></a>";
  }
  $pm = "<a href=\"inbox.php?action=sendpm&who=$item[3]&sid=$sid\">PM</a><br/>";
  $text = parsepm($item[4], $sid);
  echo "$lnk - $pm $usersex<font color=\"red\"><b>Where:</b>$item[2]</font> <br/>$tit(<font color=\"$textkale[0]\">$text</font>)<br/><br/>";
    }
    echo "</div>";
    echo "<div align=\"center\">";
    if($page>1)
    {
      $ppage = $page-1;
      echo "<a href=\"online.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"online.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
    }
	if($num_pages>1)
	{
    echo "<br/>$page/$num_pages<br/>";
	}
    if($num_pages>2)
    {
        $rets = "<form action=\"online.php\" method=\"get\">";
        $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
        $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
        $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
        $rets .= "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
        $rets .= "<input type=\"submit\" value=\"Go To Page\"/>";
        $rets .= "</form>";

        echo $rets;
    }
    echo "</div>";

this shows who is in the shout room/shoutbox page it shows name and it lets ya pm the user but it not shoing any names or any thing it shows the page only

thanks to anyone that can help me with this

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

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