You are not logged in.
Well, for example, the default comments_display form looks like this:
<h2 id="<txp:text item="comment" />"><txp:comments_invite textonly="1" showalways="1" showcount="0" /></h2><txp:comments /><txp:if_comments_preview> <div id="cpreview"> <txp:comments_preview /> </div> </txp:if_comments_preview><txp:if_comments_allowed> <txp:comments_form isize="25" msgcols="45" msgrows="15" /> <txp:else /> <p><txp:text item="comments_closed" /></p> </txp:if_comments_allowed>
You could change <txp:comments /> to:
<txp:if_article_id id="123">
<txp:comments sort="posted desc" />
<txp:else />
<txp:comments />
</txp:if_article_id>
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Uhm, I am confused. :/ Could you provide me all the steps starting from the beginning in order to make a guestbook along with the rah_comments plugin??
Last edited by Ruhh (2008-02-26 20:42:13)
<txp:Ruhh />
Offline
I only tested the plugin briefly, so if this doesn’t help you, you’d better ask in the support thread for rah_comments.
At the end of your individual article form (so after title, body etc.) put something like this:
<txp:if_comments> <txp:if_article_id id="123"><!-- 123 is your guestbook article --> <txp:rah_comments wraptag="ol" break="li" limit="10" /> <txp:else /> <txp:comments /> </txp:if_article_id> </txp:if_comments><txp:if_comments_allowed> <txp:comments_form /> </txp:if_comments_allowed>
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
What would the modified look like if I was to include the form for a different comment form and the styled comments?
Edit: I think I got this…
<txp:if_comments>
<txp:if_article_id id="29"><!-- 29 is your guestbook article -->
<txp:rah_comments wraptag="ol" break="li" limit="10" />
<txp:else />
<txp:comments form="questions" />
</txp:if_article_id>
</txp:if_comments>
<txp:if_comments_allowed>
<txp:comments_form form="ask_form" />
</txp:if_comments_allowed>
Ok, I tested it out and I get this error:
Tag error: <txp:rah_comments wraptag=“ol” break=“li” limit=“10” /> -> Notice: Undefined variable: pagination on line 71
Last edited by Ruhh (2008-02-26 21:06:53)
<txp:Ruhh />
Offline
It’s just a notice. If you change production status (in Preferences) to ‘live’ it will go away :)
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Oh ok. Alright well I just changed the status to Testing.
Will this tag: <txp:comments form=“questions” /> show the form I chose for the styled comments?? I do not think that tag attribute will show the different form for the comments.
Nevermind. I put the attribute in the wrong tag.
But I have a question. I use the sed comment pack plugin. How would I put a Q: before the visitor’s comment and the A: before the author’s comment??
Last edited by Ruhh (2008-02-26 23:42:33)
<txp:Ruhh />
Offline
Yeah, <txp:rah_comments /> can output that error, but only in article list :) I haven’t yet fixed it, as the tag doesn’t even work currently in article list – only on individual article. But that is only because it uses pg as url’s get value, I could change that but then you can’t use clean urls for that by common clean url plugins. Stupid thing if you think it more :P
So, yes it notification and as I told you earlier Ruhh, it’s caused because that tag is printed in article list. It would go off if you add <txp:if_individual_article><txp:rah_comments wraptag="ol" break="li" limit="10" /></txp:if_individual_article> there ;)
Why I originally restricted the plugin to individual article? Because they are comments, but I will fix this in some point. Maybe option to use ?pg= / ?page= would be needed.
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
Ruhh wrote:
How would I put a Q: before the visitor’s comment and the A: before the author’s comment??
The comment is wrapped in a div class="comment commentator-<commentator-name>". Use CSS. You could give .comment a background image (Q) and .author-name (use the real author name!) another background image (A).
For future questions please use the appropriate plugin thread (sed_comment_pack, rah_comments) :)
Last edited by Els (2008-02-27 20:06:25)
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Hello,
I have installed everything and it works allright but i use a form so i can display this the way i want.
in the page section i have this rule :
<txp:sdr_guestbook section=“gastenboek” articletitle=“guestbook” form=“guestbook_comments_form” pagestring_placement=“both” />
the guestbook-comments-form looks like this :
<fieldset> <legend>Geschreven op <txp:sed_comment_time class=‘comment-time’/> door :<comment_name /><txp:sed_if_author_comment_string string=’ (Author Comment)’ /></</legend>
<txp:message />
</fieldset>
But the guestbook is not displayed this way.
Who knows why ?
Regards.
Roelof
Offline
roelof wrote:
form=“guestbook_comments_form”
the guestbook-comments-form looks like this
1. Is it guestbook_comments_form or guestbook-comments-form? In other words, did you use the correct form name?
2. Check your quotes, it should be "...", not “…”
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline