archertc
Member
Posted 2 years ago #
I have seen this work on other sites to great effect. Unfortunately, this is not compatible with Thesis 1.7; at least not out of the box. I see that there has already been some discussion on this on the developer's foum, but I do not see any solution and I was unable to leave a comment there (bizarre comment box problem).
Any tips -- on how to adapt this for Thesis or on another Thesis-compatible plugin that provides the same -- would be very welcome.
You might want to check with the Thesis support forums too:
http://diythemes.com/forums/
bobking
Member
Plugin Author
Posted 2 years ago #
It's a bug in Thesis 1.7.
You'll have to modify /lib/classes/comments.php in Thesis 1.7
Around line 276 you'll see:
if ($output) echo $output;
Change it to:
if ($output) echo apply_filters('comment_text',$output);
Dameian
Member
Posted 2 years ago #
Thesis users - There is no need to edit your Thesis core files as bobking has suggested.
The fix is very simple using one of Thesis' built-in filters. Just put this in your custom/custom_functions.php file:
function filter_comment_text($output) {
return apply_filters('comment_text',$output);
}
add_filter('thesis_comment_text','filter_comment_text');
Done!
archertc
Member
Posted 2 years ago #
Thanks Dameian, but it was actually bobking's tip that worked for me. (Not sure why yours didn't.) I appreciate that all of you took the time to help me out! Sorry for not updating the thread sooner with my results.
An issue I was getting was this error, function ckratingKarma not defined. All you need to do is call the ck-karma.js file to fix that. Now the rating system worked.
Call this in the footer.php:
<script type="text/javascript" src="/wp-content/plugins/comment-rating/ck-karma.js" charset="utf-8"></script>
Wade