WordPress.org

Ready to get started?Download WordPress

Forums

No Smilies in Comments. (12 posts)

  1. CeeJayCee
    Member
    Posted 10 years ago #

    I can't get smilies to work in comments on either my clean install of WP 1.0 (http://test.vandango.ashst.com) or my upgrade from 0.72 Gold (http://www.ceejaycee.net.
    Have they been disabled in the new release?

  2. CeeJayCee
    Member
    Posted 10 years ago #

    I should have mentioned that they work in posts, but not comments. Also, I can't get the threaded comments hack to display correctly, but thts another issue.

  3. Nick Momrik
    Member
    Posted 10 years ago #

    Mine are not working in comments either. All I get are spaces in the html that is output.

  4. southerngal
    Member
    Posted 10 years ago #

    I can't get them to work in comments either, what's the deal??? I pulled my "clickable smilies" hack until this is fixed.

  5. Laughinglizard
    Member
    Posted 10 years ago #

    Find this function in your template-functions.php (in your wp-includes folder):
    function comment_text() {
    global $comment;
    $comment_text = stripslashes($comment->comment_content);
    $comment_text = str_replace('<trackback />', '', $comment_text);
    $comment_text = str_replace('<pingback />', '', $comment_text);
    $comment_text = convert_chars($comment_text);
    $comment_text = convert_bbcode($comment_text);
    $comment_text = convert_gmcode($comment_text);
    $comment_text = convert_smilies($comment_text);
    $comment_text = make_clickable($comment_text);
    $comment_text = balanceTags($comment_text,1);
    $comment_text = apply_filters('comment_text', $comment_text);
    echo $comment_text;
    }
    And replace it with:
    function comment_text() {
    global $comment;
    $comment_text = stripslashes($comment->comment_content);
    $comment_text = str_replace('<trackback />', '', $comment_text);
    $comment_text = str_replace('<pingback />', '', $comment_text);
    $comment_text = convert_chars($comment_text);
    $comment_text = convert_bbcode($comment_text);
    $comment_text = convert_gmcode($comment_text);
    $comment_text = make_clickable($comment_text);
    $comment_text = balanceTags($comment_text,1);
    $comment_text = apply_filters('comment_text', $comment_text);
    $comment_text = convert_smilies($comment_text);
    echo $comment_text;
    }

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    Thanks!!

  7. southerngal
    Member
    Posted 10 years ago #

    THANK YOU!!! :)

  8. Laughinglizard
    Member
    Posted 10 years ago #

    :-D
    Peace

  9. CeeJayCee
    Member
    Posted 10 years ago #

    Thanks

  10. NthMike
    Member
    Posted 10 years ago #

    Add me to the list of people thanking you for that, Mr. Lizard. :)

  11. NthMike
    Member
    Posted 10 years ago #

    It looks like this bit of wizardry has made it into 1.0.1. Yay! :D

  12. anthom
    Member
    Posted 10 years ago #

    Hmm...still isn't working for me (in 1.0) even after updating template-functions.php...although comment smilies were being stripped out altogether before this, and now I'm at least seeing the text equivalents.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.