Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-05-17 21:09:13
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Comments
I want to make some end user modifications to the comment look/functionality.
- I want to remove the “http://” input box and the Textile Help hyperlink.
- I want to add some text before the comment and remove the preview so that they just sumbit and it is not a 2 part process.
- Also I want to change the message once a comment has been submitted.
BUT, I can not seem locate where I am able to do any of this. Can someone please point me in the right direction and let me know if any or all is possible.
Thanks.
Last edited by progre55 (2006-05-17 21:10:40)
Offline
Re: Comments
Offline
#3 2006-05-18 01:06:33
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Comments
hi maniqui:
Thanks for the info. I think this answers the majority of my issues.
The one item I did not see, is how do I modify the form? or where can I modify the form? So that I can remove the “http://” input box and the Textile Help hyperlink.
I see how to manually control it, which will give me the capability to put text before the form (which is what I want to do) but where is the actual form stored?
Again, thanks for the help.
Offline
Re: Comments
Go to Presentation>Forms>comment_form. Somewhere near the end of the table junk is the following:
<label for="web">http://</label><txp:comment_web_input />
Below that is is the <txp:comments_help />
. If you want to do further customization (not sure you’d need to), you can simply copy the HTML output (view source), modify it, and paste it into the form, comment_form. Modifications, such as fixing the current form validation error, can be made to /textpattern/publish/comments.php (line 180 for the closing </form> tag).
To change the default text, “Thank you for adding your comment,” you’ll need to edit the language file. For instance, in /textpattern/lang/en-gb.txt
, on line 468, you can change the comment_posted message.
Offline
#5 2006-05-18 12:29:20
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Comments
deldindesign:
Thanks for the guidance. I overlooked the obvious, my bad.
progre55
Offline