Dear friends,
Thanks for your help and finally I solved the smileys problem by adding in $chat = str_replace(":))", "<img src='/chatroom/img/surprised.gif'>", $chat);
Anyway, I guess I need your help again. I want to create ranking for my members, which the ranking is controlled by me and I'll edit my member's file directly from my computer to select how many stars should he/she has. My question is, how can I make the stars display beside the Ranking column? I'll create few files like 1star.gif, 2stars.gif, 3stars.gif. Thanks and appreciate your help! Below is the code
profile.php
----------------
<?
if (file_exists("vars.php")):
include("vars.php");
endif;
?>
<html>
<head>
<title><? echo "$title"; ?></title>
</head>
<?
echo "<body bgcolor=\"$bgcolor\" text=\"$text\" link=\"$link\" vlink=\"$vlink\" alink=\"$alink\">";
echo "<font face=\"$font\" size=\"$size\">";
?>
<?
if (file_exists("users/$username.php")):
include("users/$username.php");
endif;
?>
<center>
<P>
<table width="450" border="1" cellspacing="0" cellpadding="5" bordercolor="<? echo "$bordercolor"; ?>" bordercolorlight="<? echo "$bordercolor"; ?>" bordercolordark="<? echo "$bordercolor"; ?>">
<!--DWLayoutTable-->
<tr>
<td width="115"><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Screen
Name:</td>
<td width="309"><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$username"; ?> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Ranking
:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$ranking"; ?> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Name:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$name"; ?> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Age:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$age"; ?> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Sex:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$sex"; ?>
</td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Email:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><a href="mailto:<? echo "$email1"; ?>"><? echo "$email1"; ?></a> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>City:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$city"; ?> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Country:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$country"; ?> </td>
</tr>
<tr>
<td><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>Web
Site URL:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "<a href=\"$url\" target=\"new\">$url</a>"; ?> </td>
</tr>
<tr>
<td valign="top"><? echo "<font face=\"$font\" size=\"$size\" color=\"$color\">"; ?>About
Me:</td>
<td><? echo "<font face=\"$font\" size=\"$size\">"; ?><? echo "$descrip"; ?>
</td>
</tr>
</table>
</center>
</body>
</html>
guest.php (member file)
--------------------------
<?
$username = "guest";
$ranking = "Founder";
$user = "";
$passwd = "abcdefghijklmnop";
$pass = "";
$name = "Anonymous";
$age = "111";
$sex = "Male";
$email = "
someone@abc.com";
$email1 = "
someone@abc.com";
$city = "LA";
$country = "Mars";
$url = "
http://nationalzoo.tk";
$descrip = "";
?>[/b]