• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: cgfeedback always says 0 comments
PostPosted: Mon Jun 20, 2011 4:29 pm 
Offline
Forum Members
Forum Members

Joined: Mon Apr 18, 2011 6:55 pm
Posts: 12
Hi,
Most everything with the CGfeedback module works great, i have it working with the CGBlog The only problem is I cant seem to get it to count the number of comments. There are a lot of great posts about this already but Ive tried everything and nothing helps, so maybe it something specific to the new version, im using 1.9.4.1 faanui

i created a ratings template called count which looks like this:

{strip}
{$stats.count}
{/strip}


And wrote in the CGBlog summary template:

<a class="comments" href="{$entry->detail_url}#comments">Kommentare ({CGFeedback key1="CGBlog" key2=$entry->id action="ratings" ratingstemplate="count"})</a>


My first feeling was that I have the wrong thing entered into the Key1 spot. Have tried loads of different variation tho...so maybe something else.

thanks so much for any help.


Top
 Profile  
 
 Post subject: Re: cgfeedback always says 0 comments
PostPosted: Thu Jun 23, 2011 5:53 pm 
Offline
Forum Members
Forum Members

Joined: Fri Jan 15, 2010 5:02 pm
Posts: 51
I've got the same problem with my news and CgFeedBack module since last module update


Top
 Profile  
 
 Post subject: Re: cgfeedback always says 0 comments
PostPosted: Wed Jun 29, 2011 12:46 am 
Offline
Forum Members
Forum Members

Joined: Wed May 02, 2007 1:14 am
Posts: 29
Location: Brunssum, The Netherlands
not saying this is the best way to do it, but it works for me (all modules are up to date)

in the CGBlog template I wrote the following

Code:
<a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{capture assign='commentnumber'}{CGFeedback key1="CGBlog" key2=$entry->id action="summary" summarytemplate="reaction-statistics"}{/capture}
{if empty($commentnumber)}
there are 0{else}
there are {$commentnumber}
{/if}
 reactions</a>



the CGFeedback summarytemplate "reaction-statistics" wich I refer to contains the following smarty

Code:
{strip}
{if isset($stats)}
{foreach from=$stats item='onestat'}
{$onestat.reviews}
{/foreach}
{/if}
{/strip}


ratings and comments are as far as I know the same, so this code should work for you :)


Top
 Profile  
 
 Post subject: Re: cgfeedback always says 0 comments
PostPosted: Wed Jun 29, 2011 3:28 pm 
Offline
New Member

Joined: Mon Feb 28, 2011 6:55 pm
Posts: 4
It's weird but version with $stats.count works if every comment will be manual submited by Admin. I don't know why, maybe this is bug in CGfeedback.


Top
 Profile  
 
 Post subject: Re: cgfeedback always says 0 comments
PostPosted: Thu Jun 30, 2011 10:14 am 
Offline
Forum Members
Forum Members

Joined: Fri Jan 15, 2010 5:02 pm
Posts: 51
Does it work with the News module too ?


Top
 Profile  
 
 Post subject: Re: cgfeedback always says 0 comments
PostPosted: Tue Aug 09, 2011 5:48 pm 
Offline
Forum Members
Forum Members

Joined: Mon Apr 18, 2011 6:55 pm
Posts: 12
dear weird0

your method totally works! many thanks for you reply.

best,
foxi


Top
 Profile  
 
 Post subject: Re: cgfeedback always says 0 comments
PostPosted: Sat Mar 03, 2012 3:42 pm 
Offline
New Member

Joined: Sat Oct 22, 2011 11:00 pm
Posts: 4
It does not work for me. Also with weird0 method it's always zero.

Is it because I don't use the ratings in the module?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting