Website Comments v1.01 Released!

18 posts by 8 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 6, 2012   (RSS)

Re: [Dave] Website Comments v1.01 Released!

Awesome, Dave!
I'm working on a site to which I'd like to add a "rate & review" module to each page, and this will take care of the "review" part.

I'd also like to give visitors the option of also giving 0-5 star ratings (technically a form re-styled via jquery), and am wondering if I could create an extra data field (or fields) to the comment to capture a visitor's rating(s) and store those ratings values along with their review (comment).

Thoughts?
Thanks,
-Dan

Re: [danwilson] Website Comments v1.01 Released!

By Dave - September 9, 2011

Hi Dan,

Yea, I think that should be possible with some custom coding. Here's some basic tips on added that feature yourself:
- First, thoroughly test the comments plugin. Set it up so it does everything you want "except ratings".
- That backup the plugin folder.
- Then create a new field in the comments table for "ratings".
- Then search for all references to "wsc_comment" and 'wsc_comment' in the code (search for the word in single and double quotes).
- This is all the places where comments are added from the form value
- Create a new field called "wsc_rating" and add that code everywhere the comments code is.

That's a basic overview, there's probably a few extra steps that will be needed as well. Feel free to give it a try or let us know if you want us to do it as a custom programming job for you.

Also, you'll probably want to consider issues such as if you allow people to leave multiple comments and ratings or just one. And if it's just one, can you edit or erase it, etc.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Website Comments v1.01 Released!

Cool! Sounds like I've got a plugin to buy and some experimenting to do!
-Dan

Re: [danwilson] Website Comments v1.01 Released!

By Dave - September 9, 2011

Great, let us know how it goes! :) I'd be interested to see how it works out. It's a neat idea for an enhancement.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Website Comments v1.01 Released!

Hi Dave,

How do I edit the <?php echo prettyDate($comment['createdDate']) ?> settings?

For instance, rather than saying "September", I'd like "Sep" and rather than "6 minutes ago", I'd like to say "6 mins ago"
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Website Comments v1.01 Released!

By Dave - September 12, 2011

Hi Tim,

You can find that function in cmsAdmin/lib/common.php

You can edit it there (but you'll have to re-apply your edits when you upgrade) or copy it to your plugin with a new name such as custom_prettyDate() and call that function instead.

Hope that helps! Let me know any questions.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Website Comments v1.01 Released!

Perfect - ta!
Cheers,

Tim (toledoh.com.au)

Re: [Dave] Website Comments v1.01 Released!

Looks great we are now testing it

just 1 missing thing.

login using facebook, twitter or open id account that would of been the finishing toutch.
[;)]

Greetz M
-------------------------------------------

Dropmonkey.nl

Re: [Maurice] Website Comments v1.01 Released!

+ for Facebook login!!!


Looks great we are now testing it

just 1 missing thing.

login using facebook, twitter or open id account that would of been the finishing toutch.
[;)]

Greetz M