We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How do i disable comments ? | Forum

Webster Molaudi
Hi Oxwallers,


How do i disable comments on : 


1. blog posts (DONE)

2. Forum (STRUGGLING TO FIND SOLUTION)

3. Videos (DONE)

4. Photos (STRUGGLING TO FIND SOLUTION)

5. Events (DONE)


I wanted to disable them on my website https://www.myvirgo.info


Thanks

The Forum post is edited by Webster Molaudi Sep 9
ViXiV Technologies
Nice site Molaudi!

For photos you may have to manually disable the comment code until an update or plugin is available for this purpose?


On Forum I'm not sure you would want to do this?

Leave at least one area for them to whine ;-)

Webster Molaudi
Thanks ViXiv,


LOL....Yes, i wanna disable till the update or plugin is available which will revert to default.


Reason for this i am using Disqus as comment system for them to whine but somehow i can't find the code for the above two.


With others i managed
Quote from ViXiV Technologies Nice site Molaudi!

For photos you may have to manually disable the comment code until an update or plugin is available for this purpose?


On Forum I'm not sure you would want to do this?

Leave at least one area for them to whine ;-)


dave Leader
dave Sep 13
webster for photos try photo_view.html and  change 

 

{$comments}


to 


<!-- {$comments} -->


if that does not work let me know please 


and forum i have no clue right now lol



The Forum post is edited by dave Sep 13
Darryl B Leader
Darryl B Sep 13

Have you tried a css approach?  This way they're still there, and a platform update, if one happens, won't overwrite the code.


This will remove the add reply form


/*Remove Forum Comments*/
form[name="add-post-form"] {
    display: none;
}


This will remove the comments count on photo hover, and remove the comments field when you click on the photo, and it displays in the floatbox.


/*Remove Photo Comments*/
.ow_photo_item_info_user.ow_photo_comment_count {
    display: none;
}
.ow_photoview_info .ow_feed_comments.ow_small {
    display: none;
}

The Forum post is edited by Darryl B Sep 13
Darryl B Leader
Darryl B Sep 13

Here would be the css for the others in your list.


/*Blog*/
div[id*="comments-blog"] {
    display: none;
}

/*Video*/
div[id*="comments-video"] {
    display: none;
}

/*Events*/
div[id*="comments-event"] {
    display: none;
}

dave Leader
dave Sep 14
Nice solution Darryl, thanks for sharing... :)
Webster Molaudi
Thanks
Quote from Darryl B

Here would be the css for the others in your list.


/*Blog*/
div[id*="comments-blog"] {
    display: none;
}

/*Video*/
div[id*="comments-video"] {
    display: none;
}

/*Events*/
div[id*="comments-event"] {
    display: none;
}