Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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.
Let me know if it doesn’t work :)
Last edited by Gocom (2009-08-09 13:05:53)
Offline
Re: rah_comment_form
Very cool, Jukka— thanks! My container markup works now.
Two Three questions:
- How can I get the comments submitted by this form to display
<txp:ign_user_info type="realname"/>
instead of user id? - How can allow commenters to input a URL to the “Website” field of their comment?
- How can I assign an
id
to the elementtextarea[name="rah_comment_message"]
. Anid
is necessary for thelabel
clicks to bring the field into focus.
Thank you again!
Last edited by johnstephens (2009-08-09 18:04:27)
Offline
Offline
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
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
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
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
Offline
Re: rah_comment_form
Thank you!
Offline