Comments from CGFeedback doesn't show after publishing

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
heidig
New Member
New Member
Posts: 6
Joined: Sun Apr 12, 2009 8:47 pm

Comments from CGFeedback doesn't show after publishing

Post by heidig »

I've installed CGFeedback, and the comment and ratings form is working good. But how do I get the comments to show on the page after publishing?? I can't find the params for this, probably it's just me that can't understand it. Is there somesone who can explain to me? I'm using the CGFeedback-module with the News-module.

Thanks if someone will help me!

Heidi
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Comments from CGFeedback doesn't show after publishing

Post by Jeff »

Look at this parameter:
# (optional) policy="normal" - Applicable only in the default comment form action, this parameter specifies a specific behaviour policy for the form.

    * normal - (default)
      -- The system will not redirect to any page, instead it will output an information message or error according to the template that is selected. This is similar behaviour to all other modules. The "destpage" parameter has no effect with this policy.
    *
    * session
      -- On form submission, the system will store form variables in the session, and redirect back to the originating url.. it will then retrieve the values from the session to re-populate the form, and display any optional error. The "inline" parameter has no effect with this policy.
WebGirl

Re: Comments from CGFeedback doesn't show after publishing

Post by WebGirl »

I found out that you need to show TWO tags in your Template:
{CGFeedback action='summary'}
{CGFeedback}
The first one is an instruction to show the SUMMARY (after you've approved the Feedback) above the form - you can put this after the form if you prefer, like this:
{CGFeedback}
{CGFeedback action='summary'}
If you want more parameters specified, you then start adding them to the tag as per ajprog's post.

If you would like to know which page the Feedback came from, you need to add this to your code:
{CGFeedback action='summary'}
{CGFeedback key2=$page_name}
When you login to the Admin panel, you will then see the name of the page in the Key2 column, beside each comment.

Hope this helps someone.
replytomk3

Re: Comments from CGFeedback doesn't show after publishing

Post by replytomk3 »

This was not explained anywhere clearly, so here goes:

To see on which page the comment was posted, use

Code: Select all

key2=$page_name
Here's where the problems come from:

1) There must be two calls in the template, one for the contact form, and one to show the comments posted. So we will have something like this:

Code: Select all

{CGFeedback action='summary'}
{CGFeedback}
2) CRITICAL: if you use the page_name feature it MUST be called in both of those statements, or comments WILL NOT show. Placing the page_name call only in the comment form call, and not in the summary call will not display ANY comments on your website.

So the call must be:

Code: Select all

{CGFeedback key2=$page_name action='summary'}
{CGFeedback key2=$page_name}
3) If you have decided to include the page_call feature only later, after comments have been posted on your website with the bare-bones call, those old comments WILL NOT BE SHOWN.

If you need to show both styles of comments, use something like this:

Code: Select all

{CGFeedback key2=$page_name action='summary'}{CGFeedback action='summary'}<br />
{CGFeedback key2=$page_name}
jakovbak
Forum Members
Forum Members
Posts: 234
Joined: Thu Dec 13, 2012 2:54 pm

Re: Comments from CGFeedback doesn't show after publishing

Post by jakovbak »

Sorry folks, I just can't make it work!!!
This is my code:

<div id="blogcomment">
{CGFeedback key2=$page_name}
{CGFeedback key2=$page_name action='summary'}
</div>

and it gives me all posted comments below every blog entry. If I delete some parameter then I don't get comments at all!
And it's been going on and on for days...

Help please!
jakovbak
Forum Members
Forum Members
Posts: 234
Joined: Thu Dec 13, 2012 2:54 pm

Re: Comments from CGFeedback doesn't show after publishing

Post by jakovbak »

YESSSSS!!!
I have finally found the solution and it goes like this:

<div id="blogcomment">
{CGFeedback key2=$page_name key2=$entry->id}
{CGFeedback key2=$page_name key2=$entry->id action='summary'}
</div>

Hope someone will someday find it useful!
Have a nice day folks!
Locked

Return to “Modules/Add-Ons”