Help 4 Wapchat Code

Started on the old forum in November 2006 · view the original in the archive · old links redirect here

3 replies · 826 views · started 20 years ago · 1 min read

Guest #1

hi. pls,pls help me. this is the code i made 2 display all registered users on chat. now i need your help..

  1. the nicks are now only displayed. i cant klick on it to see users profile (user.php) can any 1 do that??
  2. there are all nick(150) displayed on one page. how to do, that on one page will be displayed 10 or 20 nicks??
<?php
 header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print '<?xml version="1.0" encoding="utf-8"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'.
' "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
include "./ini.php";
print '<card title="'.$lang['test'].'">'.
'

';
$login = autorize();
if($login) {
print '[b]REGISTRED USERS[/b]'."
";
 $query = mysql_query("SELECT login FROM chat_users;");
 $num = mysql_numrows ($query);
for ($i = 0; $i < $num; $i++) { // all users
    print mysql_result($query,$i,"login") . "
\n";}
print "
<a href=\"enter.php?id=$id&pass=$pass\">BACK</a>
";
} else { print $lang['not_loged']; }
//ŕ §ŕ뢠Ą¬ �Ą¤¨­Ą­¨Ą á ˇ §®©
@mysql_close();
print '</p>'.
'</card>'.
'</wml>';
ob_end_flush();
?>

and this is 0chatzone script. thanx

Guest #2

hi. pls,pls help me. this is the code i made 2 display all registered users on chat. now i need your help..

  1. the nicks are now only displayed. i cant klick on it to see users profile (user.php) can any 1 do that??
  2. there are all nick(150) displayed on one page. how to do, that on one page will be displayed 10 or 20 nicks??
<?php
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<?php
include "./ini.php";
?>
<card title="Memberlist">

<?php

         $logaz=mysql_query('SELECT * FROM `chat_users` ORDER BY `rtime` DESC');         
         while ($logazz=mysql_fetch_array($logaz))
             {
                 $data[]="<a href=\"./user.php?id=$id&pass=$pass&room=$room&dbid=".$logazz[0]."&r=$r\">$logazz[1]</a>:Posts:$logazz[18] Date Reg:".date("d-m-Y", $logazz[29])."
";
             };

$i=count($data);
$count=$i;
$count1=$count;
if(empty($start))
$start=0;
$start=intval($start);
if($start<0)
$start=0;
if($count>$start+10) $count=$start+10;
for($i=$start;$i<$count;$i++)
{
print $data["$i"]."
";
}
if($start!=0)
{
print "<a href=\"memberlist.php?id=$id&pass=$pass&start=".($start-10)."\">".htmlspecialchars("<<<")."</a>
";
}
if($count1>$start+10)
{
print "<a href=\"memberlist.php?id=$id&pass=$pass&start=".($start+10)."\">
".htmlspecialchars(">>>")."</a>
";
}
print "
<a href=\"statistic.php?id=$id&pass=$pass\">Statistics</a>
";
print "<a href=\"./enter.php?id=$id&pass=$pass\">".$lang['holl']."</a>
";
ob_end_flush();
?>
</p>
</card>
</wml>

Save this in a file and run it for ure memberlist. It should work.

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