First time users of CGFeedback how-to

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
replytomk3

First time users of CGFeedback how-to

Post by replytomk3 »

Below is a long list of things I did before I considered the usability of comments sufficient:

In your template, add "{CGFeedback action='summary'}{CGFeedback}", not the other way around

Module Settings:

"Settings" - Modify ($author_ip} to read {$author_ip}. Moderate comments. Use captcha.

Summary template: See attached file, too many changes to list here.

Comment Form: comment out the following if you do not want Ratings

Code: Select all

{*  <div class="row" style="margin: 1em;">
    <div class="col30" style="float: left; width: 29%;">
      {$mod->Lang('prompt_your_rating')}:
    </div>
    <div class="col70" style="float: left; width: 70%;">
      <select name="{$actionid}rating">
        {html_options options=$rating_options selected=$rating}
      </select>
    </div>
  </div>
  <div class="clearfix"></div>*}
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

replytomk3

Re: First time users of CGFeedback how-to

Post by replytomk3 »

This I need to work on:

Improve the notification e-mail significantly. Particularly, the "from" email should match the submitted form author's email.

Use a line rectangle around comments to distinguish it from the website content.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: First time users of CGFeedback how-to

Post by RonnyK »

Personally I use the call like
{CGFeedback key1="CGBlog" key2=$entry->id action='summary'}
{CGFeedback key1="CGBlog" key2=$entry->id policy='session'}
Regarding the $author_ip remark you make. I dont see the change you opt, isnt that the same, changing $author_ip to $author_ip?

And for templates, they work out of the box, and most people will modify to their needs. So I like templates as they are. All is in, to reflect the possible use, and people can modify to their specific needs.

But I use CGFeedback for all commenting currently, as it is flexible in use.

See http://www.krijt.eu/cgblog/archive/2009/06.html for one use of CGBlog icw CGFeedback.

Ronny
replytomk3

Re: First time users of CGFeedback how-to

Post by replytomk3 »

RonnyK wrote: Regarding the $author_ip remark you make. I dont see the change you opt, isnt that the same, changing $author_ip to $author_ip?
That's a typo where he has a parenthesis instead of a bracket.

Well, not everyone is an expert at modifying the template to suit their needs. Therein the reason I posted this tip after modifying the template for myself.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: First time users of CGFeedback how-to

Post by RonnyK »

Ah, understood... I now see the ( instead of the {.

I will check if that is fixed in later versions.

And I understand what you mean with the simplified version of a template, but as said. I think that it is good that the default template has most logic in, as it is easier to delete unwanted stuff than to code it in.

Ronny
replytomk3

Re: First time users of CGFeedback how-to

Post by replytomk3 »

BTW, that was the latest version. I submitted it as a bug.

Oh, I see what you meant. The purpose of this post is not about "delete this and that" it is more about "modify this and that for it to look better visually". That, and a few bugs that I found and filed in the Forge.

Bugs: Date posted instead of Author name, that bracket

Suggestions: Remove e-mail and IP so it is not visible on website. Date posted, author name on the same line.

A few line breaks and empty spaces here and there.

Feature suggestion: "from" field in e-mail matching the submitted form author's email address.

So, lots of stuff for newbies to watch out for.
replytomk3

Re: First time users of CGFeedback how-to

Post by replytomk3 »

Here is the quick cheat on how to resize the wide text input box:

Add this to an existing or new CSS file:

Code: Select all

.col70 textarea { width: 400px; }
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: First time users of CGFeedback how-to

Post by Dr.CSS »

That particular call works for you because you use .col70 as a class in your template, most times there is only one textarea on a page so textarea {width:XXpx} XX being the size you want, will work if not go down to the div wrapping the textarea till you hit the one that works...
replytomk3

Re: First time users of CGFeedback how-to

Post by replytomk3 »

Two more things.

I don't know if there is something like "{if $author_notify}" for this, but if moderation is enabled, I have modified "Settings" to read

Comments on this website are moderated, and will appear after approved by the administrator.

And of course if this is used for feedback, you can modify the line "add a review of this item" at the "" line of add comment template.
replytomk3

Re: First time users of CGFeedback how-to

Post by replytomk3 »

Also, in the "Print" stylesheet, in the

Code: Select all

/* hide everything else! */
area, append

Code: Select all

div.cgfeedback_addcoment
So comments input area is not shown on printouts.
panthus

Re: First time users of CGFeedback how-to

Post by panthus »

For everyone who has troubles resizing the large input area - there's a very, very easy way to do it:

in your comment form template just replace:

Code: Select all

{$input_comment}
with:

Code: Select all

<textarea name="{$actionid}comment" id="your_preferred_id" class="your_preferred_class" rows="10"></textarea>
and style that in your stylesheet …  ;)
Last edited by panthus on Mon Jul 05, 2010 1:18 am, edited 1 time in total.
Post Reply

Return to “The Lounge”