colour text in chat lvalair

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

    colour text in chat lvalair

    Hello everyone, I saw that some chat you can select a text color from a manu made especially to change color, can someone give me some ideas to make a menu like in my lavalair? I am not talking about using bbcode color, those already use them but are inconvenient for users, I would own a menu in chat room where with a simple click you select a color change from as long as nn menu color. thank who can help me

    #2
    ahhhh gud idea... can u show me a demo!!! ill code


    ....................................
    http://photomag.lk/
    ....................................

    Comment


      #3
      Originally posted by LadyEnigma View Post
      Hello everyone, I saw that some chat you can select a text color from a manu made especially to change color, can someone give me some ideas to make a menu like in my lavalair? I am not talking about using bbcode color, those already use them but are inconvenient for users, I would own a menu in chat room where with a simple click you select a color change from as long as nn menu color. thank who can help me
      under text box where users enters text...
      create simple select menu like

      PHP Code:
      echo "<select name=\"color\">";
      echo 
      "<option value=\"#ff3300\">red</option>";
      echo 
      "<option value=\"#3399ff\">blue</option>";
      echo 
      "<option value=\"#00cc00\">green</option>";
      echo 
      "</select><br/>"
      and under action where text get actually posted, add this
      PHP Code:
      $color $_POST["color"]; 
      TIP: use WEB SAFE colors only
      that should do the job...
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        centi i place a demo tomorrow to make you understand how I wanted

        Added after 4 minutes:

        metulj I like how it is with the tuoo code but doesn't work in my chat: (what I'm wrong? These are the tests that I made 1)
        PHP Code:
         echo "</head>";
              echo 
        "<body>";
              echo 
        "<p align=\"center\">";
                
        addonline($uid,"Scrive un messaggio in chat","");
                echo 
        "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
                echo 
        "<p>Messaggio:<input name=\"message\" type=\"text\" maxlength=\"255\"/><br/>";
                echo 
        "<select name=\"color\">";
        echo 
        "<option value=\"#ff3300\">red</option>";
        echo 
        "<option value=\"#3399ff\">blue</option>";
        echo 
        "<option value=\"#00cc00\">green</option>";
        echo 
        "</select><br/>";
                echo 
        "<input type=\"Submit\" Name=\"sy2\" value=\"Scrivi\"></form><br/>";
              
        $rooms mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
               
        $color $_POST["color"]; 
              
        $rname $rooms[1]; 
        and 2)
        PHP Code:
             echo "</head>";
              echo 
        "<body>";
              echo 
        "<p align=\"center\">";
                
        addonline($uid,"Scrive un messaggio in chat","");
                echo 
        "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
                echo 
        "<p>Messaggio:<input name=\"message\" type=\"text\" maxlength=\"255\"/><br/>";
                echo 
        "<select name=\"color\">";
        echo 
        "<option value=\"#ff3300\">red</option>";
        echo 
        "<option value=\"#3399ff\">blue</option>";
        echo 
        "<option value=\"#00cc00\">green</option>";
        echo 
        "</select><br/>";
                echo 
        "<input type=\"Submit\" Name=\"sy2\" value=\"Scrivi\"></form><br/>";
               
        $color $_POST["color"];
              
        $rooms mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'")); 
              
        $rname $rooms[1];
                echo 
        "<b>4 </b><a accesskey=\"4\" href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Torna a $rname</a><br/>"
        not appear line error or file error and I write, compare the color menu, I select them but unfortunately not becomes colored text, where I'm wrong?
        Last edited by LadyEnigma; 01.09.10, 19:23.

        Comment


          #5
          Originally posted by LadyEnigma View Post
          centi i place a demo tomorrow to make you understand how I wanted

          Added after 4 minutes:

          metulj I like how it is with the tuoo code but doesn't work in my chat: (what I'm wrong? These are the tests that I made 1)
          PHP Code:
           echo "</head>";
                echo 
          "<body>";
                echo 
          "<p align=\"center\">";
                  
          addonline($uid,"Scrive un messaggio in chat","");
                  echo 
          "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
                  echo 
          "<p>Messaggio:<input name=\"message\" type=\"text\" maxlength=\"255\"/><br/>";
                  echo 
          "<select name=\"color\">";
          echo 
          "<option value=\"#ff3300\">red</option>";
          echo 
          "<option value=\"#3399ff\">blue</option>";
          echo 
          "<option value=\"#00cc00\">green</option>";
          echo 
          "</select><br/>";
                  echo 
          "<input type=\"Submit\" Name=\"sy2\" value=\"Scrivi\"></form><br/>";
                
          $rooms mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
                 
          $color $_POST["color"]; 
                
          $rname $rooms[1]; 
          and 2)
          PHP Code:
               echo "</head>";
                echo 
          "<body>";
                echo 
          "<p align=\"center\">";
                  
          addonline($uid,"Scrive un messaggio in chat","");
                  echo 
          "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
                  echo 
          "<p>Messaggio:<input name=\"message\" type=\"text\" maxlength=\"255\"/><br/>";
                  echo 
          "<select name=\"color\">";
          echo 
          "<option value=\"#ff3300\">red</option>";
          echo 
          "<option value=\"#3399ff\">blue</option>";
          echo 
          "<option value=\"#00cc00\">green</option>";
          echo 
          "</select><br/>";
                  echo 
          "<input type=\"Submit\" Name=\"sy2\" value=\"Scrivi\"></form><br/>";
                 
          $color $_POST["color"];
                
          $rooms mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'")); 
                
          $rname $rooms[1];
                  echo 
          "<b>4 </b><a accesskey=\"4\" href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Torna a $rname</a><br/>"
          not appear line error or file error and I write, compare the color menu, I select them but unfortunately not becomes colored text, where I'm wrong?
          wrongly placed select menu...
          and wrongly placed POST["color"]...
          read again my previous post and try again...
          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

          Comment


            #6
            centi this is a demo Click image for larger version

Name:	demotextcolor.jpg
Views:	1
Size:	14.4 KB
ID:	109678but I like a lot more menu that created metulj but I made several attempts and can't get it to work, can you show me where should I put it please?

            Comment


              #7
              u can use bb color codes ..add them
              then on "say" action after <input name=\"message .. bla bla
              add
              PHP Code:
              echo "<select name=\"color\">";
              echo 
              "<option value=\"red\">red</option>";
              echo 
              "<option value=\"blue\">blue</option>";
              echo 
              "<option value=\"green\">green</option>";
              echo 
              "</select><br/>"
              -----------------
              after $message=$_POST["message"];
              add
              PHP Code:

              if(isset($_POST['color']))
               
              $message "[color={$_POST['color']}]$message\[/color]"
              i didnt tested it ...:D
              <?php unlink('World/Europe/Romania.country'); ?>

              Comment


                #8
                i0nutzxp your code work very well friend!! thank you so much

                Comment


                  #9
                  only works on some browsers tho .. any reason why ? ?? ? ?
                  Wapchat4u


                  Topsites4u

                  Comment


                    #10
                    the nokia n73 does not work, the page splits

                    Comment

                    Working...
                    X