ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

smileys not showing in comments

November 05, 2012 10:48am

Subscribe [2]
  • #1 / Nov 05, 2012 10:48am

    vlad

    213 posts

    Yah I know I know. They want them.

    After site was taken down by the great storm in nYc we had to rebuild it from a back up.

    Now there are a few issues. Emoticons aren’t showing.

    I removed the module and reinstalled it. I also checked the emoticon preferences. Set the URL to the right folder in images.

    When somebody makes a comment and inserts 😊 it does pull up an image, but the image has no path. IE smile.gif but no http://www.site.com/images/smileys/smile.gif or /images/smileys/smile.gif

    Any suggestions would be highly appreciated.

    Vlad

  • #2 / Nov 06, 2012 5:07pm

    Robin Sowell

    13255 posts

    LOL- ok, so it renders as <img src=“smile.gif”>, yes?

    What do you get if you put this in a template w/php parsing turned on?

    <?php
    
    echo  $this->EE->config->slash_item('emoticon_url');
    
    ?>
  • #3 / Nov 07, 2012 9:57am

    vlad

    213 posts

    blank page O_O tried output AND input with php on… bad news?

  • #4 / Nov 07, 2012 11:12am

    Robin Sowell

    13255 posts

    I strongly suspect it’s an empty string- you could try:

    <?php
    
    var_dump($this->EE->config->slash_item('emoticon_url'));
    
    ?>

    If it comes back false, it means the emoticon_url isn’t set, if it comes back an empty string it… means the same thing, really.  If it’s still blank?  It’s a php error because I goofed up the syntax 😉.

    Double check the emoticon url- and maybe try hard coding it in your config file, just to be on the safe side?  But my bet is something is up with that config variable.

  • #5 / Nov 10, 2012 2:27am

    vlad

    213 posts

    Hi Robin, it came back string(0) “”

    How do I set up a the config variable? Is it on the config file?

    $config['emoticon_url'] = "http://expressionengine.com/images/smileys";
  • #6 / Nov 12, 2012 4:14am

    vlad

    213 posts

    ok that worked can close. Thank you

  • #7 / Nov 12, 2012 1:25pm

    Shane Eckert

    7174 posts

    Hey vlad_i,

    Thank you for letting us know!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases