Smileys Not Working

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

7 replies · 733 views · started 18 years ago · 1 min read

3 participants
Guest #1

i know it's probably me thats done something wrong, but my smileys don't work anywhere! what could be the problem? the smileys folder is chmodded to 777. . .

the smileys list does work.

Guest #3

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;
}
Guest #4

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

alesh Lead · 604 posts #5

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....

Guest #6

its all linked correctly. and the smileys only show on the smilies list, if i post a smileys anywhere else it just loads the text bbcode like (angry)

alesh Lead · 604 posts #7

Hmmm... Okay... Did u turned on smilies at ur cpanel then? Lol

eeeeerrr....

S4u Junior · 21 posts #8

cheh wethr t uploded the smile image or not

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close