Smileys Not Working
Started on the old forum in June 2008 · view the original in the archive · old links redirect here
and what script are you using....
check if u have this in core.php
function getsmilies($text)
{
$sql = "SELECT * FROM ibwf_smilies";
$smilies = mysql_query($sql);
while($smilie=mysql_fetch_array($smilies))
{
$scode = $smilie[1];
$spath = $smilie[2];
$text = str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
}
return $text;
}
yea i have CODE ///////////////////////////////////////////////Get the smilies
function getsmilies($text) { $sql = "SELECT * FROM ibwf_smilies"; $smilies = mysql_query($sql); while($smilie=mysql_fetch_array($smilies)) { $scode = $smilie[1]; $spath = $smilie[2]; $text = str_replace($scode,"<img src="$spath" alt="$scode"/>",$text); } return $text; }
function getgallery($text) { $sql = "SELECT * FROM ibwf_gallery"; $smilies = mysql_query($sql); while($smilie=mysql_fetch_array($smilies)) { $scode = $gallery[1]; $spath = $gallery[2]; $text = str_replace($scode,"<img src="$spath" alt="$scode"/>",$text); } return $text; }
the smileys don't work in chat, shoutbox or forums. and i'm using the xhtml_wml_chat_script2 version. downloaded it here obviously
Maybe u missed folder... 4 example if script is in folder public_html/A and smilies folder is public_html/B then in function getsmilies u need 2 add "../" ... The best way 2 c tht is tht u go 2 ur site with pc nd then right click on smilie (where it should apear) nd copy image address nd ull c
eeeeerrr....