Disable multiple ratings from same user? 
Posted: 23 July 2008 07:54 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  32
Joined  2008-07-11

Hi!

I’ve been playing around with the allow_duplicate parameter in the ratings form. I am only using it for ratings (not reviews), and only from logged in users. It seems to allow users to re-submit the form as long as they submit a new rating each time. Is there any way to avoid this, perhaps a conditional that only shows the rating form if they have not yet rated the weblog entry?

Profile
 
 
Posted: 23 July 2008 08:38 AM   [ Ignore ]   [ # 1 ]
Jr. Member
RankRank
Total Posts:  31
Joined  2007-03-01

I believe it allows them to submit multiple ratings, but only stores the first rating as “their rating”.
Pieman will probably chime in and correct me, but that was my experience doing it via ajax.

Profile
 
 
Posted: 23 July 2008 08:48 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2732
Joined  2006-10-18

AJP,

Rating 2.2.0 will include this exact conditional you’re requesting smile

You’ll be able to use this:

{exp:rating:form}
{if duplicate}Eat my shorts
!{/if}
{if not_duplicate} [form stuff] {
/if}
{
/exp:rating:form}

I’m told she should be out by end of this week, or next week smile

 Signature 
Profile
 
 
Posted: 23 July 2008 08:48 AM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  32
Joined  2008-07-11

Thanks for the reply. grin

It still seems to affect average ratings, which is a pain!

I’ve been trying to figure out a work-around. Perhaps submitting the user’s screen name as their review (hidden) may stop BOTH the rating and review from being posted, even with a different rating selected. Any thoughts?

Profile
 
 
Posted: 23 July 2008 08:50 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  32
Joined  2008-07-11

Pie Man - you beat me to a response! So dependable wink

Looking forward to 2.2.0.

Profile
 
 
Posted: 23 July 2008 09:28 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2732
Joined  2006-10-18
PsNP - 23 July 2008 08:50 AM

Looking forward to 2.2.0.

So am I!! rasberry
It fixes an unmetionable amount of fixes, and includes a lot of revamping and new features… I’ve also been waiting a long time for it rasberry

 Signature 
Profile