Viewing 9 replies - 1 through 9 (of 9 total)
  • You have to edit the init.php file.

    Thread Starter divamaggie

    (@divamaggie)

    I deleted it from init.php, but it is still showing up on my comments and in my write page.

    Thread Starter divamaggie

    (@divamaggie)

    Its gone ??

    I have a question for DivaMaggie, since it sounds like you’re having no problems with custom-smilies in 2.5…

    I followed the plugin homepage instructions and completed all of the text entries for the smilies (from WP’s Using Smilies listing). So the smilies show correctly at the bottom of the Write panel.

    Then I copied this code from the plugin home page and pasted where it said in the comments.php before the form:
    <?phpif ( function_exists(cs_print_smilies) ) {cs_print_smilies();}?>

    But when I opened the post there was a parsing error saying the ‘{‘ was unexpected. Tried changing the brackets to parenthesis, but no luck. Tried moving it within the form, but no luck.

    After all of that, I tried uncommenting the default WordPress smiley code in the comments.php and that worked. I actually tried to just uncomment and use the default smiley code which displayed the images for the buttonbar but did not in the saved comment (displayed the text). But after completing the plugin form with all the smiley text, it now displays the correct smiley in the saved comment.

    So, this strange workaround combo works for now but I’m guessing you got it to work with the line of code pasted into comments.php as recommended by custom-smilies, right? Can you tell me how you did that?

    Thanks!

    Thread Starter divamaggie

    (@divamaggie)

    atdblog, are you using this https://www.ads-software.com/extend/plugins/custom-smilies/ smilie plugin?

    I put this code

    <!– Clickable smileys start here –>
    <?php
    if ( function_exists(cs_print_smilies) ) {
    cs_print_smilies();
    }
    ?>
    <!– Clickable smileys end here –>

    right above

    <p><textarea name=”comment” id=”comment” cols=”100%” rows=”10″ tabindex=”4″></textarea></p>

    in my comments.php file. I’m asking because the url you have in your question is for the WP smilies. Maybe if I could have a url to view your page. Are you using popup comments?

    HA! Thanks for your reply. You accidentally led me to the problem.

    If you look in my previous post to you, I copied and pasted the code from the custom smilies plugin homepage (see How to Install, step 5), which I had also pasted into my php editor. The problem with their code example is there’s no space between “php” and “if”!!! Both the “view plain” and “copy to clipboard” are wrong. The error message on the unexpected { drew my focus away from the problem. Oh well, it works correctly now.

    I don’t see anything on the custom smilies plugin homepage where I can contact the person to tell them their code example needs correcting. It may be in that other language that I don’t recognize.

    Thanks again for the reply.

    Thread Starter divamaggie

    (@divamaggie)

    I’m so happy I accidentally led you to the problem ??

    I love it when that happens ??

    I corrected it in the example now. Thanks for letting me know about that ??

    How do I mark this thread as resolved?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Smilies plugin’ is closed to new replies.