Smileys Not Working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Smileys Not Working

    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.

    #2
    and what script are you using....




    Comment


      #3
      check if u have this in core.php

      Code:
      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;
      }

      Comment


        #4
        yea i have
        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
        ///////////////////////////////////////////////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;
        }
        </div>

        the smileys don&#39;t work in chat, shoutbox or forums. and i&#39;m using the xhtml_wml_chat_script2 version. downloaded it here obviously

        Comment


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

          Comment


            #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)

            Comment


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

              Comment


                #8
                cheh wethr t uploded the smile image or not

                Comment

                Working...
                X