Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2008-02-26 23:29:09

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [ORPHAN] cha_comment_reply

Is the tag: <txp:cha_reply_to> needed in order to reply to the specified comment if there is a link in each of the comment?

Last edited by Ruhh (2008-02-26 23:50:32)


<txp:Ruhh />

Offline

#26 2008-02-27 00:36:36

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [ORPHAN] cha_comment_reply

Is the tag: <txp:cha_reply_to> needed in order to reply to the specified comment if there is a link in each of the comment?

Yes, it is, as it sets the value which comment is replied. The link just changes the value of the <txp:cha_reply_to />-select input with JavaScript.

Offline

#27 2008-02-27 02:23:16

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [ORPHAN] cha_comment_reply

Ok I tested it out but the comment that replies to the specified comment does not show up below the specified comment like in the demo for this plugin. What could I have done wrong? Under the Replies in Extensions, I do not see any comments so it definitely could not be working.

Last edited by Ruhh (2008-02-27 02:38:51)


<txp:Ruhh />

Offline

#28 2008-02-28 13:32:15

Chalito
Plugin Author
Registered: 2007-08-22
Posts: 26

Re: [ORPHAN] cha_comment_reply

Hmm not sure I understand. The reply doesn’t show up at all, or does it show up but in the wrong place? Do you have an url where I could take a look? Pasting your templates could help too.

Cheers,

Offline

#29 2008-02-28 20:54:54

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [ORPHAN] cha_comment_reply

The reply do show up but not under the specified comment. It just shows up below all the comments.

ok this is the form use for specified article:

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size: 7.5pt">
<tr>
<td>
<txp:body />
<txp:if_comments>
   <txp:if_article_id id="29">
      <txp:rah_comments wraptag="ol" break="li" limit="10" form="questions" />
   <txp:else />
      <txp:comments />
   </txp:if_article_id>
</txp:if_comments>
<txp:if_comments_allowed>
   <txp:comments_form form="ask_form" />
</txp:if_comments_allowed>
</td>
</tr>
</table>

then the form use for commenting:

<txp:comments_error wraptag="ul" break="li" />
<table cellpadding="4" cellspacing="0" border="0" style="font-size: 7.5pt">
<tr>
<td align="right">
<label for="reply">Replying To:</label>
</td>
<td>
<txp:cha_reply_to />
</td>
</tr>
<tr>
<td align="right">
<label for="name"><txp:text item="comment_name" /></label>
</td>
<td>
<txp:comment_name_input />&nbsp;<txp:comment_remember />
</td>
<td></td> 
</tr>
<tr>
<td align="right">
<label for="email"><txp:text item="comment_email" /></label>
</td>
<td colspan="2">
<txp:comment_email_input /> (Required)(Will not be published)
</td>
</tr>
<tr> 
<td align="right">
<label for="web"><txp:text item="comment_web" /></label>
</td>
<td colspan="2">
<txp:comment_web_input />
</td>
</tr>
<tr>
<td align="right" width="25"><br />
<label for="name">Question</label><br />
</td>
<td>
<txp:comment_message_input />
</td>
<td colspan="3" width="220px">
<txp:hak_textile_tag />
</td>
</tr>
<tr>
<td></td>
<td>
<txp:comment_preview />
<txp:comment_submit />
</td>
</tr>
</table>

and then the form use for styled comments:

<div class="<txp:sed_get_comment_class />">
<txp:comment_anchor />
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size: 7.5pt">
<tr>
<td width="65" valign="top"></td>
<td valign="top">
<div style="margin-left:6px">
<txp:sed_if_author_comment_string string='Answer by' /> <txp:comment_name />
<txp:comment_message />
<txp:sed_comment_time class='comment-time'/> &mdash; <txp:cha_reply_lbl label="Reply" />
</div>
</td>
</tr>
</table>
</div>
<br />

Last edited by Ruhh (2008-02-28 20:55:31)


<txp:Ruhh />

Offline

#30 2008-02-28 22:11:45

Chalito
Plugin Author
Registered: 2007-08-22
Posts: 26

Re: [ORPHAN] cha_comment_reply

Well at first sight it seems you’re not using <txp:cha_indenting_div> and <txp:cha_indented_comments>.. unless I’m missing something, that might be the cause.

Check the first post in this thread, here, for an example. It’s also in the plugin help text.

those two tags work all the magic, they check for relating info about comments in the database, then reorder the comment list and adds a specific class for replies.

I see you’re using some other plugin too (rah_comments), so dunno how well you can get the two together.

Hope that helps :)

Cheers,

Offline

#31 2008-02-29 01:07:45

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [ORPHAN] cha_comment_reply

I see you’re using some other plugin too (rah_comments), so dunno how well you can get the two together.

Chalito, rah_comments is only for article number 29 ( <txp:if_article_id id="29"> ), and your plugin is for other articles. So, our plugins live in harmony :)

Offline

#32 2008-02-29 01:35:43

Chalito
Plugin Author
Registered: 2007-08-22
Posts: 26

Re: [ORPHAN] cha_comment_reply

Ah, missed that!

Ain’t peaceful coexistence great? :)

Offline

#33 2008-02-29 03:16:25

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [ORPHAN] cha_comment_reply

it do not work for me :/ i have already added the cha_indenting_div tag in the styled comments form. i do not know what else but the comment does not show up under the specified comment like in your demo. it just shows up under the rest of the comments. plus the page links for rah_comments do not show up at all. sighs i give up.

Last edited by Ruhh (2008-02-29 03:27:09)


<txp:Ruhh />

Offline

#34 2008-02-29 11:00:56

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [ORPHAN] cha_comment_reply

Ruhh,
I tried to use this plugin some time ago with no success. If I remember correctly
- at least in my case – the problem was related with clean urls. In messy url mode it worked for me.

Offline

#35 2008-07-01 12:32:00

Chalito
Plugin Author
Registered: 2007-08-22
Posts: 26

Re: [ORPHAN] cha_comment_reply

I just updated the plugin to add a new tag that prints the javascript code responsible for setting the “reply to” dropdown whan the user clicks on a reply link.
This JS code was previously being printed when the plugin was loaded, which resulted in it being included in any file served by textpattern (notably the css file).
The javascript code now has to be explicitely included, for example at the beginning of the comments form (see the documentation for an example).

Cheers,
Chalito.

Offline

#36 2011-02-28 01:56:23

skrishi
Member
From: russia federation
Registered: 2011-02-25
Posts: 52
Website

Re: [ORPHAN] cha_comment_reply

will it work in 4.3?

Offline

Board footer

Powered by FluxBB