Why can't I use comments?
I don't understand how the comment element works as there are NO instructions anywhere on the site that I can see and your so-called search feature is all but useless as it searches for EVERY WORD so if you search for 'comment element' you get 50 hits on the word 'element' - useless. Anyway, I was using WPDISCUZ for years successfully with the Salient engine but it seems Brizy won't display any comments. How do the comments work in Brizy??
-
Hi Rick,
There is nothing complicated about using the comments element in Brizy. You just need to add the element to the page and choose the platform you want to use: https://jmp.sh/wcTseRF You have three options:
- Facebook Comments
- Disqus
- WordPress comments
If you want to use Disqus, you'll need to add your shortname: https://help.disqus.com/en/articles/1717111-what-s-a-shortname
0 -
OK, so it won't work for me then as I don't use any of the 3 comment choices. WPDISCUZ (not Disqus) has a work-around where you can insert <?php comment_form()> into a post/page manually. Is there any possibility I can do this as I will have to abandon Brizy if I can't use comments from my old site?
0 -
Hi Rick,
unfortunately, no. You can't add php code to a Brizy page. The only solution will be if the plugin you are using has a shortcode. In this case, you can add it to the Brizy.
0 -
Hey Alex:
I got it working. Here is the solution for others who want to use a self-hosted comments plugin like DISCUZ:
1. Add the following code to the end of the '/shortcode/comments.php' file in the BrizyPro Plugins folder:
/** * Add support for DISCUZ comments plugin */ function my_wpdiscuz_shortcode() { if (file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')) { ob_start(); include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php'; return ob_get_clean(); } } add_shortcode('wpdiscuz_comments', 'my_wpdiscuz_shortcode');2. Add the shortcode:
[wpdiscuz_comments]to the post or page you want to see comments on.3. You will have to re-do this fix every time the Plugin is updated so duplicate the file in the /shortcode folder and save it with a descriptive name like: comments_with_WPDiscuz_Fix.php for example so you can copy the code above to the comments file again after an update.
0 -
Great!
Thank you for sharing.
0 -
If you are using WPDiscuz version 7 please use the updated code below:
/** * Add support for DISCUZ comments plugin */
function my_wpdiscuz_shortcode() {
$html = "";
if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
ob_start();
include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
$html = ob_get_clean();
}
return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");0 -
Hi Rick,
Thanks for the info. Will this work with Brizy Free Version?
0 -
Unfortunately no, as Brizy Free does not support comments.
0 -
Ok. As of the December 2020 update my WP_discuz comments no longer work as the /templates/comments.php file seems to have been re-written. Where would I insert my code snippet above now so I can re-activate my WP_discuz comments??
0 -
Hi,
from what I understand by using that function you create a shortcode. Does that shortcode no longer work in Brizy editor? Does it work in WordPress editor? Does it no longer work after Brizy update or Disquiz update?
0
Please sign in to leave a comment.
Comments
10 comments