Show in room

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

    Show in room

    How to show a txt in room onece that can see everybody
    like welcome $nick or $nick connected
    is it possible ? Please i need yours help
    Last edited by Ponick; 07.09.09, 12:28.
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    i think possible is possible..but ain't easy to do..
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    Comment


      #3
      Originally posted by Ponick View Post
      How to show a txt in room onece that can see everybody
      like welcome $nick or $nick connected
      is it possible ? Please i need yours help
      i can't understand what you're talking..please make it clearer for me..
      My Blog: http://jhommark.blogspot.com
      My Facebook: http://www.facebook.com/jhommark
      My Official Site: http://www.undergroundweb.tk
      My Community Site: http://undergroundwap.xtreemhost.com

      Comment


        #4
        Originally posted by kiLLeR-eyEd_14 View Post
        i can't understand what you're talking..please make it clearer for me..
        we are talking about a code which will display who recently entered in the chat room .
        Do you know about this code ?
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment


          #5
          Originally posted by Ponick View Post
          we are talking about a code which will display who recently entered in the chat room .
          Do you know about this code ?
          Is it something like *user enters room*?
          That code is already posted here
          LDSWAPWORLD sigpic
          site closed.
          im busy with other things in life like facebook , send me PM so i can add you
          www.pinoySG.com

          don't ask for help if you're not even helping yourself!
          i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


          Comment


            #6
            Originally posted by capofret View Post
            Is it something like *user enters room*?
            That code is already posted here
            yeh yeh yeh .. . . . You are right :D . Im tired to finding it but cant find . Please please kindly give me the code . . . .Please
            PHP Code:
            /* I don't know everything hehe */ 
            Find me on facebook

            Comment


              #7
              Originally posted by capofret View Post
              Is it something like *user enters room*?
              That code is already posted here
              create a file named chat_enter.php and put this code:
              PHP Code:
              <?php
              include("config.php");
              include(
              "core.php");
              if(!
              connectdb())
              {
              header("Location: database-error");
              exit();
              }
              if((isset(
              $_SESSION['sid'])) && (!empty($_SESSION['sid'])))
              {
              $sid $_SESSION['sid'];
              }else{
              $sid $_COOKIE['sid'];
              }
              $ubr $_SERVER['HTTP_USER_AGENT'];
              $uip getrealip();
              $uid getuid_sid($sid);
              $rid $_GET["rid"];
              if((!
              islogged($sid)) OR ($uid==0) OR ($uid==""))
              {
              header("Location: session-error");
              exit();
              }
              if(
              isipbanned($uid,$uip,$ubr))
              {
              header("Location: ipbanned");
              exit();
              }
              if(
              isbanned($uid))
              {
              header("Location: banned");
              exit();
              }
              $entercount mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE msgtext='1entersdroom' AND chatter='".$uid."' AND rid='".$rid."'"));
              $onlinecount mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE rid='".$rid."' and uid='".$uid."'"));
              if((
              $entercount[0]==0) && ($onlinecount[0]==0))
              {
                
              $enter mysql_query("INSERT INTO ibwf_chat SET chatter='".$uid."', who='0', timesent='".time()."', msgtext='1entersdroom', rid='".$rid."'");
              }
              header("Location: chatroom-$rid");
              exit();
              ?>
              then in chat.php, put this code between if isspam and any..just use your head, ok?
              PHP Code:
              else if($chat[3]=="1entersdroom")
              {
                
              $chnick getnick_uid($chat[0]);
                echo 
              "<b>Chat system</b>» $chnick entered the room!!!<br/>";

              just edit it according to your script..to make it work, put a link with chat_enter.php?rid=$rid
              Last edited by kiLLeR-eyEd_14; 09.09.09, 11:55.
              My Blog: http://jhommark.blogspot.com
              My Facebook: http://www.facebook.com/jhommark
              My Official Site: http://www.undergroundweb.tk
              My Community Site: http://undergroundwap.xtreemhost.com

              Comment


                #8
                Originally posted by kiLLeR-eyEd_14 View Post
                create a file named chat_enter.php
                thank you s0o0o much . . . .Mwahh
                is it also work when user left the room or logged out ?
                PHP Code:
                /* I don't know everything hehe */ 
                Find me on facebook

                Comment


                  #9
                  not working :[

                  Comment


                    #10
                    oh sorry ! im distrbing you again

                    i didnt understand this linejust edit it according to your script..to make it work, put a link with chat_enter.php?rid=$rid
                    im using lavalair plain php wml scrip ...but my question is that how can i connect with chat enter script ?? please
                    PHP Code:
                    /* I don't know everything hehe */ 
                    Find me on facebook

                    Comment


                      #11
                      Originally posted by Ponick View Post
                      oh sorry ! im distrbing you again

                      i didnt understand this linejust edit it according to your script..to make it work, put a link with chat_enter.php?rid=$rid
                      im using lavalair plain php wml scrip ...but my question is that how can i connect with chat enter script ?? please
                      once you entered in chat_enter.php, u will be redirected to chat.php.,just change to header("Location: chat.php?sid=$sid&rid=$rid")
                      My Blog: http://jhommark.blogspot.com
                      My Facebook: http://www.facebook.com/jhommark
                      My Official Site: http://www.undergroundweb.tk
                      My Community Site: http://undergroundwap.xtreemhost.com

                      Comment


                        #12
                        Originally posted by kiLLeR-eyEd_14 View Post
                        once. . . .
                        you are so friendly. Thanx one more.
                        PHP Code:
                        /* I don't know everything hehe */ 
                        Find me on facebook

                        Comment


                          #13
                          kind of a long winded way by adding another page for enters chat:
                          why not just change the enter room link to
                          chat.php?sid=$sid&rid=$rid&enter=1

                          then in chat.php

                          if($enter==1){
                          //insert into db enters chat from who evers id you like
                          }

                          saves coding a whole new page?
                          same as on leaving chat just have :
                          say you were going to index.php?action=main
                          then change link to:
                          index.php?action=main&leave=1

                          then on index.php
                          have
                          if($leave==1){
                          //insert into db who ever left chat from who evers id you like
                          }
                          saves loads of pointless coding

                          Comment


                            #14
                            i got this


                            Error!
                            Remote server or file not found
                            PHP Code:
                            /* I don't know everything hehe */ 
                            Find me on facebook

                            Comment


                              #15
                              means you linking into a page that doesnt exist

                              Comment

                              Working...
                              X