Remove Comment Box from Created Page

MAD
MAD
@madc
10 years ago
600 posts
I have created a page through page creator.
On this page I don't want anyone to be able to comment.
The id of the page is 3.
How would I stop the comment box showing on this page only.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 03/04/14 12:07:44PM
michael
@michael
10 years ago
7,717 posts
via the page creator, nothing jumps to mind as a solution.

Why not add it as a template to the skins, you'd have more control.

(or is it on a profile?)
MAD
MAD
@madc
10 years ago
600 posts
No it's not. Never thought of the tpl solution.
I will try it
Thanks @michael


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
MAD
MAD
@madc
10 years ago
600 posts
Ok problem is I am using the Quota Terms Of Service module and Have to create the TOS page through page creator otherwise it doesn't show up in the drop down in the QTOS module.
The comment box doesn't show on the page after registration when it requires you to tick to agree to TOS.
But if I click on the footer link after that it shows the attached image


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/09/14 06:34:38PM
michael
@michael
10 years ago
7,717 posts
Without doing it, this is how I would approach the problem.
* does the QTOS module have any templates? If it does is one of them responsible for outputting that page, if it is, does putting a {debug} in there give us any info that is specific to that particular page.

If YES then: use that info to wrap a {if} around the comment box so the comment box doesnt show on that page.

----
didnt work.... ok, try something else.
* does the process that outputs that page have any events that fire when the comments box is trying to decide whether to write to the screen or not? yes, then use that to check if the page is the QTOS page and stop it from displaying if it is.
MAD
MAD
@madc
10 years ago
600 posts
Yep that worked fine @michael.
In the skins/jrNova/tos_pp_row.tpl

I removed
                {* bring in module features *}
                {jrCore_item_detail_features module="jrPage" item=$item}

Thanks for the quick response ( As Usual :D )


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
MAD
MAD
@madc
10 years ago
600 posts
Ok found another issue.

It is listed under the Articles.

The direct link doesn't display the comment box.

But an indirect link
ie http://jr.punkbp.com/article/title=Terms%20Of%20Service
Does.
You have to be logged in to comment so you won't see it if you click that link. But once logged in it is there

So still need to override it somehow

Anyone any ideas on how to override the comment box for certain articles?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/21/14 05:17:08AM
brian
@brian
10 years ago
10,148 posts
I'm not quite sure I understand the root issue - is it that a comment box is showing on your TOS pages when the user has to accept them on login?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
10 years ago
600 posts
No @brian.
This is different.
Seems if you enable the comments module , Any article has the comment box on it.
I would like to restrict some articles.
Like an override somehow or when you create an article their is a tick box saying ALLOW COMMENTS?
or something like that .
Your logins are still active to log in and see what I mean.
As the comment box won't display until you log in.
The TOS.tpl file is fine but this link has the comment box on it http://jr.punkbp.com/article/title=Terms%20Of%20Service (after you log in of course)


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/21/14 07:53:47PM
brian
@brian
10 years ago
10,148 posts
ba9801:
No @brian.
This is different.
Seems if you enable the comments module , Any article has the comment box on it.
I would like to restrict some articles.
Like an override somehow or when you create an article their is a tick box saying ALLOW COMMENTS?
or something like that .
Your logins are still active to log in and see what I mean.
As the comment box won't display until you log in.
The TOS.tpl file is fine but this link has the comment box on it http://jr.punkbp.com/article/title=Terms%20Of%20Service (after you log in of course)

I understand - yeah right now there is no "allow comments" option that can turn comments on or off for specific items, but it's a good idea - I'll get a feature request ticket open on that.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
10 years ago
600 posts
Yeah it would be a good feature as admins or mods want to post without any reprisal as you would know


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

Tags