Help 4 Wapchat Code

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

    Help 4 Wapchat Code

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

    Code:
    <?php
     header ("Content-type:text/vnd.wap.wml; charset=utf-8");
    print &#39;<?xml version="1.0" encoding="utf-8"?>&#39;;
    print &#39;<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"&#39;.
    &#39; "http://www.wapforum.org/DTD/wml_1.1.xml">&#39;.
    &#39;<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>&#39;;
    include "./ini.php";
    print &#39;<card title="&#39;.$lang[&#39;test&#39;].&#39;">&#39;.
    &#39;
    
    &#39;;
    $login = autorize();
    if($login) {
    print &#39;[b]REGISTRED USERS[/b]&#39;."
    ";
     $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[&#39;not_loged&#39;]; }
    //ŕ §ŕ뢠Ą¬ ᮥ¤¨­Ą­¨Ą á ˇ §®©
    @mysql_close();
    print &#39;</p>&#39;.
    &#39;</card>&#39;.
    &#39;</wml>&#39;;
    ob_end_flush();
    ?>
    and this is 0chatzone script. thanx

    #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??[/b]
    Code:
    <?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(&#39;SELECT * FROM `chat_users` ORDER BY `rtime` DESC&#39;);         
             while ($logazz=mysql_fetch_array($logaz))
                 {
                     $data[]="<a href=\"./user.php?id=$id&amp;pass=$pass&amp;room=$room&amp;dbid=".$logazz[0]."&amp;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&amp;pass=$pass&amp;start=".($start-10)."\">".htmlspecialchars("<<<")."</a>
    ";
    }
    if($count1>$start+10)
    {
    print "<a href=\"memberlist.php?id=$id&amp;pass=$pass&amp;start=".($start+10)."\">
    ".htmlspecialchars(">>>")."</a>
    ";
    }
    print "
    <a href=\"statistic.php?id=$id&amp;pass=$pass\">Statistics</a>
    ";
    print "<a href=\"./enter.php?id=$id&amp;pass=$pass\">".$lang[&#39;holl&#39;]."</a>
    ";
    ob_end_flush();
    ?>
    </p>
    </card>
    </wml>
    Save this in a file and run it for ure memberlist. It should work.

    Comment


      #3
      tnx mate...its work k:

      Comment


        #4
        tnx mate...its work k:[/b]
        Pleasure bro.

        Comment

        Working...
        X