Page 1 of 1

Help With CGFeedback not posting comments

Posted: Fri Feb 12, 2010 4:26 am
by ittsmee2
I am having problems getting the CGFeedback module to accept comments.  The form shows up, but no comments are ever registered or show up.

This is my code:

Code: Select all

{CGFeedback action='summary' sortorder="ASC" key1="CGBlog" key2=$entry->id key3=$category.name policy="session"}
{CGFeedback key1="CGBlog" key2=$entry->id key3=$category.name}
You can see the form and test it here:
http://thegreesons.com/gb/5/69/Tony-s-Blog-Test/

Re: Help With CGFeedback not posting comments

Posted: Wed Mar 10, 2010 10:26 am
by mjrumble
Try adding {CGFeedback} on the line before to see what happens.

Re: Help With CGFeedback not posting comments

Posted: Tue Jun 01, 2010 6:05 am
by WebGirl
I have the same problem with CMSMS 1.7.1 and CGFeedback 1.1. The comments stopped appearing on the live pages, I've changed the tag a dozen times, but haven't found a solution yet :-(

Still trolling through the forums trying to find what could be causing CGFeedback 1.1 to create problems.

I also ugraded CGExtensions.

Re: Help With CGFeedback not posting comments

Posted: Tue Jun 01, 2010 8:58 am
by Peciura
Usually blog entry belongs to multiple categories. When using variable {$category} you are not sure which category is used. Do you really need that key ? In general you are dealing with an array instead of string.

Re: Help With CGFeedback not posting comments

Posted: Wed Jul 07, 2010 6:02 pm
by madsny
Damn i have the same problem, though i was going mad here since it worked on the old CMSMS i had (think it was 1.4 or something).

something is conflicting with the new version of CMSMS (using 1.7.1)
please mr. CG fix :D

Re: Help With CGFeedback not posting comments

Posted: Wed Jul 07, 2010 6:40 pm
by panthus
Works fine for me …

Even the key3="$category.name" works, but for the reason Peciura mentioned it only shows as "Array.name" in the backend listing. The comment itself shows up on both frontend and backend.

I'm using:

CMSMS 1.7.1
CGBlog 1.3.2
CGFeedback 1.1
CGSimpleSmarty 1.4.5
CGExtensions 1.19

Re: Help With CGFeedback not posting comments

Posted: Wed Jul 07, 2010 9:07 pm
by madsny
i don't get it, i used static key's well synami for key2 using the CGblog's id like in the example, but nothing show's up..  ???

Re: Help With CGFeedback not posting comments

Posted: Wed Jul 07, 2010 10:49 pm
by WebGirl
I finally got it to work, with some help from another thread :)

Here's what I put in my template:
{CGFeedback key1="News" key2=$page_name action='summary'}


{CGFeedback key1="News" key2=$page_name policy='session'}
More info :
key1="News" -- "News" can be whatever you want it to be, I have this on another template and called it "Comments"
key2=$page_name -- I wanted to know which page the person commented on, so $page_name had to be included

Putting this in the first line of code -- action='summary' -- means the Summary of responses appears ABOVE the feedback form.

I hope this helps - good luck!

Re: Help With CGFeedback not posting comments

Posted: Thu Jul 08, 2010 9:04 pm
by madsny
hey works for me too, thanks man. thou im not sure if this was the reason or some other changes to my code, im sure i tried the action='summary' before without any luck, anyway it works.

a small trick for all you CGbloggers out there, if you have a lot of entries and/or categories you might considere parsin the blog title and category to the keys.

this is how my setup is. work great, yes there could be more soom in the admin for long key names, but hey now i can filter all comment's and make some sense out of them :)

{CGFeedback key1=$entry->categories[0].name key2=$entry->title key3=$entry->id policy='session'}
{CGFeedback key1=$entry->categories[0].name key2=$entry->title key3=$entry->id action='summary'}

hope it helps anyone. :)

Re: Help With CGFeedback not posting comments

Posted: Fri Jul 09, 2010 4:46 am
by WebGirl
so pleased it now works!

bravo!

ok - what you now need to do is go to the first message in this thread, and EDIT the Subject line to read:

SOLVED: Help With CGFeedback not posting comments

have a great weekend!

Re: Help With CGFeedback not posting comments

Posted: Fri Jul 09, 2010 6:43 am
by panthus
madsny wrote:
{CGFeedback key1=$entry->categories[0].name key2=$entry->title key3=$entry->id policy='session'}
{CGFeedback key1=$entry->categories[0].name key2=$entry->title key3=$entry->id action='summary'}

hope it helps anyone. :)
Hey thanks, I'll try that sometime.  :)

I also use the title field of the submit form as a hidden field that contains the title of the entry that the comment belongs to.

Unfortunately you can't really sort by title in the backend, you can only filter for specific titles (or words in them). But still, it does make it a little easier keeping track of things.

title}"/>