Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
sdr guestbook - no #cpreview?
I’m able to access and view the previous comment in a guestbook article, but when I want to add a new one, nothing shows up on the #cpreview verification.
<a href=“http://www.ohreal.com/deb/guestbook/”>http://www.ohreal.com/deb/guestbook/</a>
article code:
<code><h2>Leave Me Some Love!</h2>
<p>Thanks again for visiting my site!</p>
<txp:sdr_guestbook section=“guestbook” articletitle=“Guestbook” pagelimit=“10” /></code>
guestbook page code snippet:
<code><div id=“guestbookcontent”>
<txp:article section=“guestbook” form=“sw_guestbook” />
</div></code>
sw_guestbook form code:
<code><txp:body />
<h5 id=“commentsclick”>comments:</h5>
<txp:comments />
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>
</code>
Any ideas? Append comments to articles is checked. Also, I can only get the sdr_guestbook plugin to work if there is no title filled in on the article page. Does that have anything to do with it?
Additionally, when I see the comment listed (under comments in admin) it shows me that the article is deleted: Article Deleted! But obviously, the article is still there. Whatsup?
Thanks in advance!
Last edited by darrenemo (2006-04-16 03:58:48)
Offline
Re: sdr guestbook - no #cpreview?
Hi Darren. When you have a question regarding a plug-in you should place it in that plug-in’s thread. The reason being that the plug-in author will be subscribed to the thread and will be notified that there is a question. Opening a new thread like this means that you are in danger of twiddling your thumbs for ages waiting for an answer. :)
Last edited by thebombsite (2006-04-16 11:32:10)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-04-16 12:28:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sdr guestbook - no #cpreview?
Stuart is right of course (as always), but this plugin doesn’t seem to be supported anymore by the writer.
What I think is wrong here:
First, this tag: <txp:sdr_guestbook section="guestbook" articletitle="Guestbook" pagelimit="10" />
shouldn’t be in your article, but on the page template. Remove <txp:article section="guestbook" form="sw_guestbook" />
and replace it with the plugin tag.
Second, you must have an article title, the attribute articletitle="Guestbook"
refers to an article title ‘Guestbook’. (I recently read a post about articles without title that showed up in comments as ‘article deleted’, can’t locate it unfortunately.)
Third, take the comments part out of your article form and put it in a separate form, say ‘guestcomments’, and in the plugin tag use attributes form="sw_guestbook"
and commentform="guestcomments"
.
I think it should work then.
Offline
Re: sdr guestbook - no #cpreview?
Thanks guys—I suppose I wasn’t aware that this plugin had it’s own thread. I’ll try these tips soon. Thanks again!
Offline
Re: sdr guestbook - no #cpreview?
Hokay—I did everything you said, but now it is telling me that comments are closed for the article although I know they are enabled in the ‘Guestbook’ article. Whatcha think?
Offline
Re: sdr guestbook - no #cpreview?
bump!
Offline
#7 2006-04-18 21:32:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sdr guestbook - no #cpreview?
If you have this code
<code>
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>
</code>
in your commentform, then I honestly wouldn’t know why you’d get the message ‘commenting closed for this article’… And it’s not closed, because one can still comment as far as I can see. The only thing I can think of is that you accidentally left <p><txp:text item="comments_closed" /></p>
in your article form?
Offline
Pages: 1