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 45214 May 26, 2009, 1:24 PM
Post Re: [jdgamble] ajax rating system
Andy 44689 May 27, 2009, 12:34 AM
Thread Re: [jdgamble] ajax rating system
Andy 44712 May 27, 2009, 12:45 AM
Thread Re: [Andy] ajax rating system
tora 28631 Apr 8, 2018, 4:02 AM
Thread Re: [tora] ajax rating system
Andy 28569 Apr 11, 2018, 12:08 AM
Post Re: [Andy] ajax rating system
tora 28527 Apr 11, 2018, 12:46 AM
Thread Re: [Andy] ajax rating system
tora 28574 Apr 11, 2018, 12:52 PM
Thread Re: [tora] ajax rating system
Andy 28548 Apr 12, 2018, 12:59 AM
Post Re: [Andy] ajax rating system
tora 28509 Apr 12, 2018, 1:21 AM
Thread Re: [jdgamble] ajax rating system
tandat 44658 May 27, 2009, 4:53 AM
Thread Re: [tandat] ajax rating system
jdgamble 44644 May 27, 2009, 8:08 AM
Thread Re: [jdgamble] ajax rating system
Andy 44620 May 27, 2009, 8:31 AM
Thread Re: [Andy] ajax rating system
jdgamble 44630 May 27, 2009, 10:38 AM
Thread Re: [jdgamble] ajax rating system
Andy 44680 May 27, 2009, 10:44 AM
Thread Re: [Andy] ajax rating system
jdgamble 44552 May 29, 2009, 11:34 AM
Thread Re: [jdgamble] ajax rating system
Matthias70 44577 May 29, 2009, 11:44 AM
Thread Re: [Matthias70] ajax rating system
jdgamble 44547 May 29, 2009, 6:55 PM
Thread Re: [jdgamble] ajax rating system
jdgamble 44511 May 29, 2009, 10:15 PM
Thread Re: [jdgamble] ajax rating system
jdgamble 44499 May 30, 2009, 7:22 PM
Thread Re: [jdgamble] ajax rating system
Andy 44611 May 31, 2009, 1:58 AM
Thread Re: [Andy] ajax rating system
jdgamble 44424 Jun 6, 2009, 10:48 AM
Thread Re: [jdgamble] ajax rating system
Andy 44513 Jun 6, 2009, 11:05 AM
Thread Re: [Andy] ajax rating system
jdgamble 44477 Jun 6, 2009, 12:42 PM
Post Re: [jdgamble] ajax rating system
Andy 44451 Jun 6, 2009, 11:58 PM