Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-07-06 09:00:59

feytus
Member
Registered: 2009-06-02
Posts: 43

Re: rah_comment_form

It’s really that bad? Thousand spam messages a day? Wow, okay, I understand then. I didn’t think it was that bad. Thanks for telling me. :)

Offline

#14 2009-08-07 21:40:20

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: rah_comment_form

Can I write my own markup for the form? rah_comment_form doesn’t seem to accept a form attribute when used as a single tag, or any additional markup as a container tag.

Offline

#15 2009-08-08 23:01:47

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: rah_comment_form

Gocom wrote:

The tag is a container. Premade form is only used when used as a self-closing tag. So it definetly is not hard-coded. See examples section.

I get the premade form even when using rah_comment_form as an enclosing tag. For example:

My form:

<txp:ign_if_logged_in>
	<txp:rah_comment_form>
		<fieldset>
			<legend>Make Comments</legend>
			<label for="rah_message" class="label-required">Enter a comment</label>
			<txp:rah_comment_message/>
			<p>I like cheese.</p>
		</fieldset>
		<txp:comment_submit />
	</txp:rah_comment_form>
	<txp:else/>
	<txp:comments_form />
</txp:ign_if_logged_in>

But rah_comment_form seems to ignore my markup:

<form id="rah_comment_form" action="http://path/to/article?rah_comment_save=1" method="post"> 
	<ul> 
		<li class="label"><label for="rah_message">Message</label></li> 
		<li class="textarea"><textarea name="rah_comment_message" id="rah_message" rows="6" cols="20"></textarea></li> 
		<li class="button"><button type="submit">Submit</button></li> 
	</ul>
</form>

Is there a setting I need to toggle somewhere to fix this? What am I doing wrong?

Last edited by johnstephens (2009-08-09 00:43:49)

Offline

#16 2009-08-09 13:03:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_form

johnstephens wrote:

Is there a setting I need to toggle somewhere to fix this? What am I doing wrong?

John, thank you for noticing and reporting :) Now the long present bug should be fixed. Version 0.3 changes:

  • Bug fix: Now uses the alternative container markup.
  • Bug fix: Changes form’s action based on permlink mode.

More info and downloads

Let me know if it doesn’t work :)

Last edited by Gocom (2009-08-09 13:05:53)

Offline

#17 2009-08-09 17:46:45

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: rah_comment_form

Very cool, Jukka— thanks! My container markup works now.

Two Three questions:

  1. How can I get the comments submitted by this form to display <txp:ign_user_info type="realname"/> instead of user id?
  2. How can allow commenters to input a URL to the “Website” field of their comment?
  3. How can I assign an id to the element textarea[name="rah_comment_message"]. An id is necessary for the label clicks to bring the field into focus.

Thank you again!

Last edited by johnstephens (2009-08-09 18:04:27)

Offline

#18 2009-08-09 19:08:44

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_form

  1. Currently there’s no way. The reason is that the user id is unique/eternal and RealName not so.
  2. No option present.
  3. By using plain XHTML. Example <textarea name="rah_comment_message" id="myIDthingy" rows="6" cols="20"></textarea>.

Offline

#19 2009-08-10 01:28:55

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: rah_comment_form

Gocom wrote:

3. By using plain XHTML. Example <textarea name="rah_comment_message" id="myIDthingy" rows="6" cols="20"></textarea>.

Thanks— exactly what I needed.

1. Currently there’s no way. The reason is that the user id is unique/eternal and RealName not so.
2. No option present.

Hmm, I’ll have to think of another solution then. Cheers!

Last edited by johnstephens (2009-08-10 02:54:17)

Offline

#20 2009-11-25 22:12:35

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: rah_comment_form

I thought I might try using smd_query to get the real name from the database and display it. I can get smd_query to work but haven’t been able to successfully get the realname based on the user_id of the poster ie. to nest this within rah_comment_form.

Also, is it possible to change the dimensions of the comment box without hacking the plugin?

[EDIT] Figured out how to change the dimensions. Basic CSS.

Last edited by aslsw66 (2009-11-25 22:26:39)

Offline

#21 2010-01-20 02:08:06

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: rah_comment_form

Hey Jukka, any chance on getting this plugin to work with rvm_privileged? ign_password_protect doesn’t work well for my site as everyone who uses it is also registered as an author for the backend. I’m hiding the regular Textpattern comment form from the public already, making the Preview button superfluous spam-wise, and resulting in my interest in rah_comment_form.

Also, why not allow the RealName display because it isn’t unique? This isn’t a security measure is it? If not, this is another feature already a few of us are clamoring for!

Last edited by aswihart (2010-01-20 02:13:26)

Offline

#22 2015-03-10 19:10:18

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: rah_comment_form

Hi, Jukka!

Do you still recommend this plugin for creating a login-protected comment form? I’m asking because it depends on ign_password_protect and mem_self_register, and I don’t know if those plugins are still actively maintained.

I’m working on a Textpattern site that requires user-generated reviews on individual items (in the article table), and Textpattern’s comment system provides most of the functionality I need—but I’d like to keep the comment form for this section behind a login.

Thanks in advance for your guidance!

John

Offline

#23 2015-03-10 19:48:58

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comment_form

johnstephens wrote #288938:

Do you still recommend this plugin for creating a login-protected comment form?

You can use it if you want, but not really. None of these have been updated in awhile.

Offline

#24 2015-03-10 21:08:49

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: rah_comment_form

Thank you!

Offline

Board footer

Powered by FluxBB