lectique
Member
Posted 5 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
maybe u need to specify absolute paths for the smiley folder. not sure... have not implemented yet...
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
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.
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
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
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.
jerryhung
Member
Posted 5 years ago #
Mnn....strange, after I add in
$comment_text = convert_smilies($comment_text);
it still doesn't show up the wp_grins Hack