Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
sdr_guestbook plugin "getting input form at the top"
hey guy ,
i implemented the plug in and works just fine.
what i want to do is to get the input form above the comments
this is my basic output of the guestbook<code> <txp:sdr_guestbook section=“gastenboek” pagelimit=“10” articletitle=“gastenboek” form=“default_archive” pageul=“yourpaginationclassID” pagestring_placement=“bottom” /></code>
and my form is as following
txp:comments
txp:if_comments_allowed
txp:comments_form
txp:else
txp:if_comments_allowed
Last edited by anand (2006-05-30 13:30:57)
Offline
#2 2006-05-30 13:25:01
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sdr_guestbook plugin "getting input form at the top"
Just change the order of the tags:
<code>
<txp:if_comments_allowed>
<txp:comments_form />
</txp:if_comments_allowed>
<txp:comments />
</code>
You can display code here by using < code > < /code > tags (without the spaces).
Offline
Re: sdr_guestbook plugin "getting input form at the top"
wel i did this but it stil not working
to see the the page : this is the url http://samaanta.project-8.nl/gastenboek/?pid=7
Offline
Re: sdr_guestbook plugin "getting input form at the top"
btw this is my form for comment_display <code><txp:comments />
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else /></code>
and this my comment_form
<code>
<txp:comments_error /> <table cellpadding=“4” cellspacing=“0” border=“0” id=“comment-write”>
<tr>
<td valign=“top”>
<label for=“name”><txp:text item=“name” /></label> </td>
<td valign=“top”>
<txp:comment_name_input /> </td>
<td valign=“top” align=“left”>
</td>
</tr>
<tr>
<td valign=“top”>
<label for=“email”><txp:text item=“email” /></label> </td>
<td valign=“top” colspan=“2”>
<txp:comment_email_input /> </td>
</tr>
<tr>
<td valign=“top”>
<label for=“web”>http://</label> </td>
<td valign=“top” colspan=“2”>
<txp:comment_web_input /> </td>
</tr>
<tr>
<td valign=“top” >
<label for=“message”><txp:text item=“message” /></label> </td>
<td valign=“top” colspan=“2”>
<txp:comment_message_input /> </td>
</tr>
<tr>
<td valign=“top”>
</td>
<td valign=“top” colspan=“2”>
<txp:comment_preview />
<txp:comment_submit /> </td>
</tr>
Last edited by anand (2006-05-30 13:36:31)
Offline
#5 2006-05-30 15:45:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sdr_guestbook plugin "getting input form at the top"
anand wrote:
wel i did this but it stil not working
Hmm… you’re right. I tried it with my own guestbook and it doesn’t work. Sorry, I just assumed that would be possible. It could be that the way the preview is displayed is hardcoded in the plugin code and if that’s true you won’t be able to do this. But I’m not much of a coder so I am not sure about that.
I’ll have another look at it later when I have more time. But hopefully Sander will notice your post…
By the way your comment_display form looks a bit unfinished. There is no closing </txp:if_comments_allowed>
tag, and if nothing comes after <txp:else />
you might just as well leave it out.
Offline
Re: sdr_guestbook plugin "getting input form at the top"
thanx for the input anyhow ,
and you are right , i didn’t copy the whole piece of code, but it’s there in my form :),
hope sander notice this post …
Offline
Re: sdr_guestbook plugin "getting input form at the top"
It’s hardcoded, sorry!
Offline