WordPress.org

Ready to get started?Download WordPress

Forums

Smilies not showing in comments (8 posts)

  1. lectique
    Member
    Posted 10 years ago #

    hmm, i know this is of no help, but i have exactly the same problem. I implemented wp-grins today and the grins work like a charm in main post, but not in comments.
    No help, i know, but at least you know it's not just you who has this problem ;)
    -perry

  2. OperaManiac
    Member
    Posted 10 years ago #

    maybe u need to specify absolute paths for the smiley folder. not sure... have not implemented yet...

  3. Daisyhead
    Member
    Posted 10 years ago #

    I tried using an absolute path and nothing. I believe it has to do with this thread, but I'm not sure how I need to attempt to fix this. Maybe an upgrade would do the trick? I'm a bit nervous about upgrading though.
    Daisyhead

  4. southerngal
    Member
    Posted 10 years ago #

    Try this--Template functions.php for showing smilies. :) Line 1725 or so. Right after
    function comment_author_IP() {
    global $comment;
    echo stripslashes($comment->comment_author_IP);
    }
    but before
    function comment_date($d='') {
    global $comment, $dateformat;
    if ($d == '') {
    echo mysql2date($dateformat, $comment->comment_date);
    } else {
    echo mysql2date($d, $comment->comment_date);
    }
    }
    Replace with this:
    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;
    }
    There are many threads about this on the board...I found this using search.

  5. Daisyhead
    Member
    Posted 10 years ago #

    SG, you're a genius. They're showing up now. What change was it that fixed it?
    WHEW! YAY! *does happy dance*
    Thank you! Thank you! Thank you!
    -Daisyhead

  6. Daisyhead
    Member
    Posted 10 years ago #

    So my smiles work, but you still can't bold text, or add links to my comments either. Off to search for this one...
    -Daisyhead

  7. southerngal
    Member
    Posted 10 years ago #

    Glad that it worked. :) It's just a place in the code that has $comment_text = convert_smilies($comment_text); in it actually. I don't know what version you are using, for the bold/links problem, but I'm sure the answer is out there.

  8. jerryhung
    Member
    Posted 10 years ago #

    Mnn....strange, after I add in
    $comment_text = convert_smilies($comment_text);
    it still doesn't show up the wp_grins Hack

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.