Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] ajax rating system

Quote Reply
Re: [Andy] ajax rating system In reply to
Hello Andy,

I have implemented this ajax rating system you wrote.

I also tried the "Cool rate system" you wrote.

They both work well. Thank you very much!

My problem is with the click-track table, which tracks whether someone of a given IP address has already submitted a rating.

The click-track table also tracks whether someone of a given IP address has already said whether a review is useful or not.

I want my users to have less error messages. They should not be given options that lead to error messages.

If the user has already submitted a rating, they should not be offered to submit a rating. And if the user has already said whether a review is useful or not, they should not be offered a Yes or No about the usefulness of the review.

Neither the information in the click-track table, nor the user's current IP address are in the tags available to the detail page.

I want to hide the ratings option with a condition based on:
In the ClickTrack table,
if the ClickType is "Rate"
and
if the LinkID is the same as the current ID
and
if the IP is the same as the user's current IP address


I also want to hide the review-helpful option with a condition based on:
In the ClickTrack table,
if the ClickType is "Review"
and
if the ReviewID is the same as the current ReviewID
and
if the IP is the same as the user's current IP address


Can you suggest globals that might provide the variables to create these conditions in the templates?

Thank you very much!!
Subject Author Views Date
Thread ajax rating system jdgamble 28632 May 26, 2009, 1:24 PM
Post Re: [jdgamble] ajax rating system
Andy 28337 May 27, 2009, 12:34 AM
Thread Re: [jdgamble] ajax rating system
Andy 28341 May 27, 2009, 12:45 AM
Thread Re: [Andy] ajax rating system
tora 12257 Apr 8, 2018, 4:02 AM
Thread Re: [tora] ajax rating system
Andy 12206 Apr 11, 2018, 12:08 AM
Post Re: [Andy] ajax rating system
tora 12200 Apr 11, 2018, 12:46 AM
Thread Re: [Andy] ajax rating system
tora 12194 Apr 11, 2018, 12:52 PM
Thread Re: [tora] ajax rating system
Andy 12185 Apr 12, 2018, 12:59 AM
Post Re: [Andy] ajax rating system
tora 12181 Apr 12, 2018, 1:21 AM
Thread Re: [jdgamble] ajax rating system
tandat 28300 May 27, 2009, 4:53 AM
Thread Re: [tandat] ajax rating system
jdgamble 28262 May 27, 2009, 8:08 AM
Thread Re: [jdgamble] ajax rating system
Andy 28249 May 27, 2009, 8:31 AM
Thread Re: [Andy] ajax rating system
jdgamble 28246 May 27, 2009, 10:38 AM
Thread Re: [jdgamble] ajax rating system
Andy 28309 May 27, 2009, 10:44 AM
Thread Re: [Andy] ajax rating system
jdgamble 28197 May 29, 2009, 11:34 AM
Thread Re: [jdgamble] ajax rating system
Matthias70 28211 May 29, 2009, 11:44 AM
Thread Re: [Matthias70] ajax rating system
jdgamble 28159 May 29, 2009, 6:55 PM
Thread Re: [jdgamble] ajax rating system
jdgamble 28150 May 29, 2009, 10:15 PM
Thread Re: [jdgamble] ajax rating system
jdgamble 28147 May 30, 2009, 7:22 PM
Thread Re: [jdgamble] ajax rating system
Andy 28261 May 31, 2009, 1:58 AM
Thread Re: [Andy] ajax rating system
jdgamble 28057 Jun 6, 2009, 10:48 AM
Thread Re: [jdgamble] ajax rating system
Andy 28146 Jun 6, 2009, 11:05 AM
Thread Re: [Andy] ajax rating system
jdgamble 28096 Jun 6, 2009, 12:42 PM
Post Re: [jdgamble] ajax rating system
Andy 28102 Jun 6, 2009, 11:58 PM