completed Disqus comments confirguration question

hansd007
@hansd007
10 years ago
50 posts
We added the jrDisqus module to allow people to comment on blog posts.

However, it add's the commenting capability on pages as well (ie: the About Us page).

How do we prevent that? We just want people to be able to leave comments on blogs/posts.
updated by @hansd007: 03/28/14 11:30:28PM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
I think you can add a checkbox in using the Blog > Form designer. And then you'll have to add a extra code in your blog template:

search1="blog_hide != on
michael
@michael
10 years ago
7,717 posts
To stop the disqus coming out on pages you can remove that line from the item_detail.tpl file via the template editor:

Your-Site.com/page/admin/templates

edit the item_details.tpl file and change this code:
{* bring in module features *}
{jrCore_item_detail_features module="jrPage" item=$item} 

To this:
{* bring in module features 
{jrCore_item_detail_features module="jrPage" item=$item} 
*}

It is in 2 locations. One location is for the pages on a users profile. The second location is for pages created by the admin and on the main site.

Commenting out that code means that disqus will not be able to get out to the page. But it also means that other modules trying to do stuff on that page wont be able to either.

Like jrTags. it also trys to put itself on the page in that location.

Tags