Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-30 17:32:17

gravyface
Member
Registered: 2006-01-17
Posts: 12

How to require login to post comments

I’ve been poking around at some of the plugins and hacks trying to find out if I can set up TextPattern to only allow registered users to post comments; Ideally, self-registration would be disabled as well.

This will be set up in an employee-only internal environment, with the main blog being used for company announcements etc.

Is this possible with TextPattern?

TIA

Last edited by gravyface (2006-10-30 18:14:53)

Offline

#2 2006-10-30 18:05:23

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: How to require login to post comments

You could use the tuk_if_logged_in plug-in (which does require one small hack to txp_auth.php). Then you could use the following in your comments display form:


<txp:tuk_if_logged_in>
<txp:comments_form />
</txp:tuk_if_logged_in>

That way the form would only be visible to those who were [1] already registered in Textpattern as publisher/editor/writer, etc., and [2] logged in to Textpattern.

I’m using this on a client site where they are adding book reviews as comments, and it’s working well for them.

Last edited by reid (2006-10-30 18:07:05)


TextPattern user since 04/04/04

Offline

#3 2006-10-30 18:42:27

gravyface
Member
Registered: 2006-01-17
Posts: 12

Re: How to require login to post comments

Ah, that sounds like a simple method of doing it. The user roles (publisher/writer etc.) are core to TextPattern right?

Offline

#4 2006-10-30 18:54:48

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: How to require login to post comments


TextPattern user since 04/04/04

Offline

#5 2006-10-30 19:46:48

gravyface
Member
Registered: 2006-01-17
Posts: 12

Re: How to require login to post comments

Except that there would be no role that would suit my client’s needs for allowing comments only. Some of the users will have author-like permissions but the majority of the users will have comment-only permissions.

Offline

Board footer

Powered by FluxBB