Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: How to set "add comment" form above comments area?
Pages: [1]   Go Down
  Print  
Author Topic: How to set "add comment" form above comments area?  (Read 30608 times)
0 Members and 1 Guest are viewing this topic.
coleman84
Newbie
*

Karma: 1
Offline Offline

Posts: 1


« on: February 06, 2010, 01:41:11 »

Hi,

1st of all, a BIG THANKS! I really appreciate your hard work.

I have only one usability issue: How do I set the "add comment" form to exist above the actual comments? I have alot of comments right now on one of my site pages and the "add comment" form has been pushed on the bottom of the page so the user must scroll quite a while before reaching it (they'll probably wonder if it does exist).

It would be great if you'd place the "add comment" form by default above comments as it does make more sense. And also I believe that when comments are in Tree style, most recent comment should be displayed 1st.

Thanks again and I hope someone will respond to this Smiley
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: February 09, 2010, 14:26:42 »

For JComments 2.2.0.2 only:

Open file /components/com_jcomments/tpl/default/tpl_index.php and replace:

Code: (php)
<div id="comments"><?php echo $comments?></div>
<?php
// Display comments form (or link to show form)
if (isset($form)) {
echo $form;
}
?>
with
Code: (php)
<?php
// Display comments form (or link to show form)
if (isset($form)) {
echo $form;
}
?>

<div id="comments"><?php echo $comments?></div>
« Last Edit: June 06, 2012, 18:55:18 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #2 on: June 06, 2012, 18:54:43 »

Since JComments 2.3.0 where is no needed to change any line of code - you can choose comment text box position in JComments settings (see Layout tab).
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
AlexVectMaster
Newbie
*

Karma: 0
Offline Offline

Posts: 9



« Reply #3 on: November 19, 2012, 18:38:31 »

Thank you for your hard work, tht helped a lot here.  Smiley
Logged

Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: How to set "add comment" form above comments area?
 
Jump to: