Creates room with picture

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

    Creates room with picture

    Hi friends! chat, create room I put in this code
    PHP Code:
    echo "add image:<input name=\"imgo\" maxlength=\"200\"/><br/>"
    , so that it creates room with picture. Do you know the code to add here?
    PHP Code:
    addonline($uid,"Chat in $rname ($mmsg)","chat.php?rid=$rid&amp;rpw=$rpw");
            
    //echo "<p>";
            
    echo popup($sid);
            echo 
    "<b>1 </b><a name=\"top\" id=\"top\" accesskey=\"1\" href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">write</a><br/>"
    I would like the image above to write..
    thanks for the reply.

    #2
    Depends on where the picture is going?

    Is it being set as background image .....
    is the picture being set as a topic or heading for the room
    or is the picture being entered into chat text?

    Comment


      #3
      something else i think he want it ontop of the page before ecverything i think he want it to be

      [the Image]
      say / refresh
      options

      i think he want it like that
      ________________
      Jacques
      jacques@gw-designs.co.za
      http://coding.biz.tm
      Come join and lets make it a place to learn all the noobies how to code
      __________________

      NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

      Comment


        #4
        why itl just make chat slow if loads of people are using it.
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          or how bout in the chat menu before u enter the chatroom then it show the pic next to the chatroom name
          ________________
          Jacques
          jacques@gw-designs.co.za
          http://coding.biz.tm
          Come join and lets make it a place to learn all the noobies how to code
          __________________

          NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

          Comment


            #6
            why not just use img bb code?

            Comment


              #7
              Yap, i like that riderz
              http://myfacepals.com
              MYFACEPALS SOCIAL NETWORKsigpic

              Comment


                #8
                i think he want to upload diff pics all the time mabe when he delete the chatroom he want to add another pic
                ________________
                Jacques
                jacques@gw-designs.co.za
                http://coding.biz.tm
                Come join and lets make it a place to learn all the noobies how to code
                __________________

                NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                Comment


                  #9
                  the image has no background, it is a normal image. you give that name to the room opened, and you put a picture of the room. I put this in the file index.php
                  PHP Code:
                  echo "<form action=\"genproc.php?action=mkroom&amp;sid=$sid\" method=\"post\">";
                          echo 
                  "<form action=\"genproc.php?action=mkroom&amp;sid=$sid\" method=\"post\">";
                          echo 
                  "Add Image:<input name=\"imgo\" maxlength=\"200\"/><br/>";
                          echo 
                  "Name Room: <input name=\"rname\" maxlength=\"30\"><br/>";
                          echo 
                  "Password: <input name=\"rpass\" style=\"-wap-input-format: '*x'\" maxlength=\"10\"><br/>";
                          echo 
                  "<input type=\"Submit\" name=\"Create\" Value=\"Create\"></form>";
                          echo 
                  "</p>"

                  Comment


                    #10
                    so add an extra row to your chat rooms sql and insert the url into the new row
                    then call it from the sql where ever your going to have the pic

                    Comment


                      #11
                      The table should be this ibwf_chat to add as I set? I preferred to add pictures from your phone, no PC

                      Comment


                        #12
                        if you want it like this:

                        [pic1] roomname 1
                        [pic2] roomname 2

                        then use ibwf_rooms sql

                        also same thing if u want the pic inside the room

                        have something like:
                        pic varchar(255) default=""

                        Comment


                          #13
                          ok thanks, so when I open new room, I put the image there is mandatory from pc?

                          Comment


                            #14
                            no u could either use uploaders or use a picture url
                            picture url is probably easier to code.
                            or you could just have preselected pictures with a dropdown box

                            Comment


                              #15
                              i think this could look nice im gona make a code like the shoutbox to add next to the room if members wona display the images there will be option to switch it on or off so it will be up to the member if they wona display the images next to the room
                              ________________
                              Jacques
                              jacques@gw-designs.co.za
                              http://coding.biz.tm
                              Come join and lets make it a place to learn all the noobies how to code
                              __________________

                              NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                              Comment

                              Working...
                              X