Online List In Chat

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

    Online List In Chat

    We can c the names of the chaters who r in the room in onlinelist.But wat is code fr viewing chaters in hall also.

    #2
    if ita a lavalir try this

    Code:
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    addonline($uid,"Chating in $rname","chat.php?rid=$rid&rpw=$rpw");

    Comment


      #3
      sounds like scotpaul

      Comment


        #4
        Lol i am taking bout chat script

        Comment


          #5
          what gumchat
          http://img235.imageshack.us/my.php?i...sc00464af9.jpg



          http://matthewdowd.bebo.com

          Comment


            #6
            if ita a lavalir try this

            Code:
            $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
            $rname = $rooms[1];
            addonline($uid,"Chating in $rname","chat.php?rid=$rid&rpw=$rpw");
            [/b]

            how about 4 forums nd topics......?
            sigpiceeeeerrr....

            Comment


              #7
              i want to know about cz script

              Comment


                #8
                i want to know about cz script[/b]
                The msql query that gives you the members in a room can give you the members in the hall to. Just the change the WHERE room=$room to where room='';

                That will give you all the members online thats not in a room.

                Comment


                  #9
                  thanx charlie bro i will try it

                  Comment


                    #10
                    The msql query that gives you the members in a room can give you the members in the hall to. Just the change the WHERE room=$room to where room='';

                    That will give you all the members online thats not in a room.[/b]
                    Charlie your rgt but

                    i know the easiest way to show which users in hall nothing to change in mysql

                    Comment


                      #11
                      Charlie your rgt but

                      i know the easiest way to show which users in hall nothing to change in mysql[/b]
                      We are all very glad to hear that you know another way but why dont you share it with us?
                      Advertise your mobile site for FREE with AdTwirl

                      Comment


                        #12
                        oops lil bit busy in work... n oh y not i am very glad to help.. let me copy paste the code here.... its just simple one...you have to add this into online.php and then
                        add this too while ($logazz=mysql_fetch_array($logaz)) { $b=""; $bc=""; if ($logazz[&#39;moder&#39;]<>&#39;0&#39;) $b=""; if ($logazz[&#39;moder&#39;]<>&#39;0&#39;) $bc=""; print $data[]="$b$logazz[1]$bc, "; };

                        .... if its not working please pm me or just Visit My Website i will surely help..
                        Attached Files

                        Comment


                          #13
                          I also have developed an online list for hall u can clk nick to see profile frm this online list .To see it working go to ma chatsiteHere
                          Code:
                          <?php
                          header("Content-type: text/vnd.wap.wml");
                          header("Cache-Control: no-store, no-cache, must-revalidate");
                          print "<?xml version=\"1.0\"?>";
                          echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
                          ?>
                          <wml>
                          <?php
                          include "ini.php";
                          ?>
                          <card title="Onlinelist">
                          
                          
                          
                          <?php
                          $onlines = @mysql_query("SELECT * FROM `".$px.$utable."` WHERE `ltime`>&#39;".intval(time()-$offline)."&#39; AND room=&#39;".$droom[&#39;var&#39;]."&#39; order by `posts` desc;");
                                  
                          while($donline = @mysql_fetch_array($onlines))        
                                                      {
                                           $data[]="<a href=\"./user.php?id=$id&amp;pass=$pass&amp;room=$room&amp;dbid=".$donline[0]."&amp;r=$r\">$donline[1]</a>
                          ";
                                       }};         
                          $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,$j=$start+1;$i<$count;++$i,++$j)
                          {
                          print $j;
                          print". ";
                          print $data["$i"]."
                          ";
                          }
                          if($start!=0)
                          {
                          print "<a href=\"onlist1.php?id=$id&amp;pass=$pass&amp;start=".($start-10)."\">".htmlspecialchars("Previous")."</a>
                          ";
                          }
                          if($count1>$start+10)
                          {
                          print "<a href=\"onlist1.php?id=$id&amp;pass=$pass&amp;start=".($start+10)."\">
                          ".htmlspecialchars("Next")."</a>
                          ";
                          }
                                      
                          print "<a href=\"./statistic.php?id=$id&amp;pass=$pass\">Statistics</a>
                          ";
                          print "<a href=\"./enter.php?id=$id&amp;pass=$pass\">Hall</a>
                          ";
                          ob_end_flush();
                          ?>
                          </p>
                          </card>
                          </wml>

                          Comment

                          Working...
                          X