mood
this edites is for Voc ...
open :
/chat/voc.php
search for :
Код:
if ($hi)
$messages_to_show[] = array(MESG_TIME=>my_time(),
MESG_ROOM=>$room_id,
MESG_FROM=>$w_rob_name,
MESG_FROMWOTAGS=>$w_rob_name,
MESG_FROMSESSION=>"",
MESG_FROMID=>0,
MESG_FROMAVATAR=>"",
MESG_TO=>"",
MESG_TOSESSION=>"",
MESG_TOID=>"",
MESG_BODY=>"<font color=\"$def_color\">".str_replace("~", $user_name, $sw_rob_login)."</font>");
replace with
Код:
if ($hi)
if ($cu_array[USER_REGID]) {$messages_to_show[] = array(MESG_TIME=>my_time(),
MESG_ROOM=>$room_id,
MESG_FROM=>"",
MESG_FROMWOTAGS=>"",
MESG_FROMSESSION=>"",
MESG_FROMID=>0,
MESG_FROMAVATAR=>"",
MESG_TO=>"",
MESG_TOSESSION=>"",
MESG_TOID=>"",
MESG_BODY=>"<img src=\"images/moods/".strtolower($mood).".gif\" border=\"0\" alt=\"$mood\"><font color=\"$def_color\">".str_replace("~", $user_name, $sw_rob_login)."</font>");
save and close ...
second :
open your index design ( welcome.php ) ... and add :
before the </form>
and make sure not to make any TD or TR errors ( better done with Front page, Dream
Код:
<TR>
<TD
style="FONT-SIZE: 8.5pt; COLOR: #000000; FONT-FAMILY: Tahoma, Tahoma, Tahoma; height: 14px;" width=88 height=29>
<?php
include($file_path."mood.php");
?></TD>
<TD
style="height: 14px;" height=29 class="style1">
<strong>Your Mood</strong></TD></TR>
save and close ...
open design ... file : voc_password_required.php
search for :
Код:
<input type="hidden" name="room" value="<?php echo $room;?>">
add after it :
Код:
<input type="hidden" name="mood" value="<?php echo $mood;?>">
save and close
creat a new file with the name : mood.php
write on it :
Код:
<link rel="STYLESHEET" type="text/css" href="http://www.marahchat.com/chat/designes/marah/syria_style.css">
<select name="mood" dir="rtl">
<option value="0" selected>NONE</option>
<option value="1">Not Bad</option>
<option value="2">Good</option>
<option value="3">Very Good</option>
<option value="4">Fantastic</option>
<option value="5">Great</option>
<option value="6">Crying</option>
<option value="7">So So</option>
<option value="8">Angry</option>
<option value="9">Bad</option>
<option value="10">Alone!!!</option>
</select>
save and upload to your /chat/ dir ...
now .. we have to set some pic .. for the moods !! ..
create folder :
in the folder :
upload some pics .. to it ... with the names :
0.gif ---------> and make the pic means : NONE
1.gif ---------> and make the pic means : Not Bad
2.gif ---------> and make the pic means : Good
3.gif ---------> and make the pic means : Very Good
4.gif ---------> and make the pic means : Fantastic
5.gif ---------> and make the pic means : Great
6.gif ---------> and make the pic means : Crying
7.gif ---------> and make the pic means : So So
8.gif ---------> and make the pic means : Angry
9.gif ---------> and make the pic means : Bad
10.gif ---------> and make the pic means : Alone!!!
--------------
i wish if i can upload mine ... but it's on Arabic lang .. so you can not use it
...
--------------
if you want ... you can change the moods .. from the options in mood.php
Best regards