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: #comments-list not populating
Pages: [1]   Go Down
  Print  
Author Topic: #comments-list not populating  (Read 4254 times)
0 Members and 1 Guest are viewing this topic.
daviestar
Newbie
*

Karma: 0
Offline Offline

Posts: 4


« on: December 31, 2009, 01:37:51 »

Hi there

I am trying to install JComments on my site.  It can be seen here:

http://www.houseofyum.co.uk/index.php?option=com_content&view=article&id=62:post2&catid=1:post&Itemid=4

When I install JComments (2.1.0.0) on my Joomla (1.5.15), everything seems to work except the comments list- from the link above, you see the add a comment form, but when I add a comment it says 'Thanks for your comments. They will be reviewed by an administrator prior to being published!', the comment appears in the backend, I change its status to published, but it doesn't appear.

As you can probably tell, I'm a designer/front-end developer.. so my knowledge in PHP/Javascript extends to moving html around within the code.  Although I have created my own template folder within 'tpl' and created some custom views, this doesn't seem to be causing the problem as it still occurs when I swap back to the default template in JComments backend.

I have removed the Javascript I have been testing for the scrollers as I thought something may be conflicting, but still no change.

I have tried, installing v2.0 first as outlined here

http://www.joomlatune.com/forum/index.php/topic,577.msg1828.html#msg1828

but version 2.0 and 2.1 both have the same problem for me- not populating #comments-list with the comments as in your demo.

Any help greatly appreciated!  I really want to get this blog up and running before the end of the Christmas holidays!!

And thanks for your free software Smiley  I may have removed your #comments-footer from my view, but I will be crediting all Open Source software used.. I just haven't designed it yet Wink

Cheers!

Dave
Logged
daviestar
Newbie
*

Karma: 0
Offline Offline

Posts: 4


« Reply #1 on: January 03, 2010, 01:12:31 »

Hi again

Does anyone have any ideas how I can fix my problem?

Any help would really really be appreciated!!

Dave
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #2 on: January 03, 2010, 01:40:30 »

Can you send me your comments template? It seems have an error...
Logged

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

Karma: 0
Offline Offline

Posts: 4


« Reply #3 on: January 03, 2010, 02:12:11 »

Hi smart

I have just managed to get comments to work!  All I did was change the comment list layout from Flat to Tree and it now seems to work.  I'm going to try to remove some functionality from the tree layout to get it to behave like a Flat layout.

Thanks for your reply.. if you still want me to send over my template, PM your email address and I'll send it over.

Cheers,

Dave
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #4 on: January 03, 2010, 02:16:33 »

Then your page loaded I see an JavaScript error:

Quote
Syntax error
Source: http://www.houseofyum.co.uk/index.php?option=com_content&view=article&id=62:post2&catid=1:post&Itemid=4
Line 235, char 23
Source code:
jcomments.setAntiCache(,,);

So I think you've some error in tpl_index.php file, because the default template has no such error. Please check if your tpl_index.php has code:

Code: (php)
<?php
// Some magic like dynamic comments list loader (anticache) and auto go to anchor script
$aca = (int) ($this->getVar('comments-gotocomment') == 1);
$acp = (int) ($this->getVar('comments-anticache') == 1);
$acf = (int) (($this->getVar('comments-form-link') == 1) && ($this->getVar('comments-form-locked'0) == 0));

if ($aca || $acp || $acf) {
?>

<script type="text/javascript">
jcomments.setAntiCache(<?php echo $aca;?>,<?php echo $acp;?>,<?php echo $acf;?>);
</script>
<?php
}
?>
Logged

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

Karma: 0
Offline Offline

Posts: 4


« Reply #5 on: January 03, 2010, 02:34:55 »

Hi smart

Thanks, that appears to have fixed the javascript error.  However, when I switch to the flat list layout the comments still don't appear.  Its no problem for me though as the tree layout should work fine with my design Smiley

Do you like what I did with the JComments Read More on the homepage? www.houseofyum.co.uk Cheesy

Thanks,

Dave
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: #comments-list not populating
 
Jump to: