Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-15 13:45:51

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

[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

#2 2006-01-25 21:10:21

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

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

#3 2006-09-29 12:10:33

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

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

#4 2006-09-30 07:50:26

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

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

Board footer

Powered by FluxBB