Website Comments v1.01 Released!

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

By gkornbluth - September 21, 2011

Hi Dan,

I've attached a PDF of a "Creating a 10 star rating system" recipe from my CMSB Cookbook http://www.thecmsbcookbook.com that might help.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Attachments:

10-star-rating.pdf 72K

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

By Djulia - August 3, 2012 - edited: August 3, 2012

Hi,

I would like to add a field to identify a reply (replyID) in custom.php.
But, I do not manage to obtain the value if an error is caused.

I tested in websiteComments.php :

// set globals and vars for theme
$replyID = @$_REQUEST['replyID'];

and

if (!trim(@$_REQUEST['wsc_comment'])) {
$replyID = @$_REQUEST['replyID'];
redirectBrowserToURL(wsc_comments_getLink(1, 'blank')); }


...but that does not function.

An idea?

Thanks!

Djulia

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

By Jason - August 3, 2012

Hi,

I'm a little unclear what you are trying to accomplish.

this code:

if (!trim(@$_REQUEST['wsc_comment'])) {
$replyID = @$_REQUEST['replyID'];
redirectBrowserToURL(wsc_comments_getLink(1, 'blank')); }


Won't maintain replyID. One thing you can try is to append this value to the link like this:

if (!trim(@$_REQUEST['wsc_comment'])) {
$replyID = @$_REQUEST['replyID'];
redirectBrowserToURL(wsc_comments_getLink(1, 'blank')."&replyID=".$replyID);
}


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

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

By Djulia - August 3, 2012 - edited: August 3, 2012

Hi Jason,

I try to add a function to add an answer to each comment (Capture1.gif).
Also, I associate with each REPLY the num of the comment.
The replyID is modified with a click (Javascript) on REPLY link.

Your solution is correct. But, if the error (commentsMsg=blank) is caused several times one obtains a succession of value in the URL.
__file.php?commentsMsg=blank&replyID=44&replyID=46&replyID=46#comments

Do you think that there is another solution?

Thanks again! :)

Djulia
Attachments:

capture1_011.gif 16K

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

By Djulia - August 4, 2012

Hi Jason,

I modified the value of _wsc_lastUrl and that functions perfectly!

Thank you for your help!

Djulia

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

By Jason - August 4, 2012

Hi,

Glad to hear everything is working for you now. Please let us know if you run into any other issues.

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

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

By Djulia - August 4, 2012

Hi Jason,

I would like to also add the username of subscriber in the email (subscriber.username).

I tried to add:
'placeholders' => $placeholders + array('subscriber.email' => $record['email'],'subscriber.username' => $record['username']),
… but, that does not function.


Is it necessary to modify the $subscriberQuery request ?

Thanks again!

Djulia