This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Cannot Reply to Comments


avatar
Legion 19
From: -
Cannot Reply to Comments

I am having trouble with the reply function for the comments. When I click it nothing really happens, the post I try to reply to ends ups with a scroll bar under it and then nothing happens. Any ideas?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Cannot Reply to Comments
avatar
OP 19
From: -
Sorry I realize what I had done wrong now, I'm a little slow Winking Face

Thanks a lot its working fine now!
1 Re: Cannot Reply to Comments
avatar
Editor
0
From: -
No thats not the problem. I do not want all that under each article. What I mean is when you click the comments button up the top and have the chance to place a comment if you are logged in there is a little "reply" icon under previous comments. When I click this to reply directly to someones comment nothing happens.

Yes, because the javascript code is missing. I just checked your site and noticed that you have remove the javascript in question from template articles_summary as well.

You need to add this at the end of articles_summary:

<script type="text/javascript">

<!--
function quoteme(username, postdate, quote)
{
window.document.getElementById("commentform").input_message.value =
window.document.getElementById("commentform").input_message.value + "Posted by " + username + " on " + postdate + "\\n
" + quote + "
\\n";    

window.document.getElementById("commentform").input_message.focus();
}
-->
</script>


Also are the comment numbers meant to be unique to a thread or is it universal across the site?

For example I just posted a new article yet the first two comments have been labeled #17 and #18. That could get confusing.

No, that's the number of the comment in the articles comments database. The numbers are not unique to a thread.
1 Re: Cannot Reply to Comments
avatar
OP 19
From: -
No thats not the problem. I do not want all that under each article. What I mean is when you click the comments button up the top and have the chance to place a comment if you are logged in there is a little "reply" icon under previous comments. When I click this to reply directly to someones comment nothing happens.

Also are the comment numbers meant to be unique to a thread or is it universal across the site?

For example I just posted a new article yet the first two comments have been labeled #17 and #18. That could get confusing.
1 Re: Cannot Reply to Comments
avatar
Editor
0
From: -
Are you using  this modification? I just noticed that the Javascript part is missing.

This articles_layout_pages template should work:

<!-- Template: articles_layout_pages -->

{$insert['articles_pages_header']}
{$insert['articles_pages_pagenav']}
{$insert['articles_pages']}
{$insert['articles_pages_advertisement']}
{$insert['articles_pages_pagenav']}

<script type="text/javascript">
<!--
function quoteme(username, postdate, quote)
{
window.document.getElementById("commentform").input_message.value =
window.document.getElementById("commentform").input_message.value + "Posted by " + username + " on " + postdate + "\n
" + quote + "
\n";    

window.document.getElementById("commentform").input_message.focus();
}
-->
</script>

{$insert['articles_summary_comment_manage_header']}
{$insert['articles_summary_comment']}
{$insert['articles_summary_comment_manage_footer']}
{$insert['articles_summary_comment_pagenav']}
{$insert['articles_summary_comment_form']}

{$insert['articles_pages_footer']}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.