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
colour text in chat lvalair
Collapse
X
-
Originally posted by LadyEnigma View PostHello 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
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/>";
PHP Code:$color = $_POST["color"];
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.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
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&rid=$rid&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];
PHP Code:echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
addonline($uid,"Scrive un messaggio in chat","");
echo "<form action=\"chat.php?sid=$sid&rid=$rid&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&rid=$rid&rpw=$rpw\">Torna a $rname</a><br/>";
Last edited by LadyEnigma; 01.09.10, 19:23.
Comment
-
Originally posted by LadyEnigma View Postcenti 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&rid=$rid&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];
PHP Code:echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
addonline($uid,"Scrive un messaggio in chat","");
echo "<form action=\"chat.php?sid=$sid&rid=$rid&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&rid=$rid&rpw=$rpw\">Torna a $rname</a><br/>";
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.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
u can use bb color codes ..add them
then on "say" action after <input name=\"message .. bla bla
addPHP 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]";
<?php unlink('World/Europe/Romania.country'); ?>
Comment
Comment