Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[plugin] [ORPHAN] pap_moderate_comments
Notice: This thread is archived, this plugin is no longer available.
**********************************************************
pap_moderate_comments 0.3 let’s you moderate comments per section or article category.
This plugin works only in Textpattern 4.0.3, as it uses the new comment.save event.
Moderate Comments per Section:
Insert in your comment form template:
<code><tpx:if_section name=“section name1,section name2,section name3,etc”>
<txp:pap_moderate_comments />
</txp:if_section></code>
see also explanations for <a href=“http://textpattern.net/wiki/index.php?title=Txp:if_section”><code><txp:if_section></code></a>
Moderate Comments per Article Category:
Insert in your comment form template:
<code><txp:pap_if_article_category name=“category-name1,category-name2,category-name3,etc” number=“1 or 2”>
<txp:pap_moderate_comments />
</txp:pap_if_article_category></code>
The number attribute is optional.
If textpattern comments moderation is on, the sections or categories you set will be unmoderated.
if textpattern comments moderation is off, the sections or categories you set will be moderated.
Last edited by tranquillo (2007-05-27 12:12:54)
Offline
Re: [plugin] [ORPHAN] pap_moderate_comments
Sorry that the plugin was not available for a while. I put it on a new site now and updated to version 0.3.
Offline
Re: [plugin] [ORPHAN] pap_moderate_comments
Hi tranquillo
Is the purpose of this plugin that you can reverse the site-wide moderation preference?
So for example:
if I had commenting enabled in two sections (A & B), but wanted only section B to be moderated…
I could set “Moderate comments” to “yes” in the Txp prefs, then add <code><tpx:if_section name=“A”><txp:pap_moderate_comments /></txp:if_section></code> to the comments form template, and comments in section A would get automatically published?
thanks
Stu
Offline
Re: [plugin] [ORPHAN] pap_moderate_comments
It’s intended to work exactly as you described, and it should work also the other way around: you can set moderate comments to “no” in the Txp prefs and moderate sections with the plugin.
Last edited by tranquillo (2006-09-30 07:51:27)
Offline
Pages: 1
Topic closed