Can’t get anonymous rating to work
Posted: 24 March 2008 09:24 PM   [ Ignore ]
Newbie
Rank
Total Posts:  5
Joined  2008-03-14

I have a tag with the following parameters:

{exp:rating:form entry_id="{entry_id}" form_name="rating" form_id="ratingform{entry_id}" require_membership="no" allow_duplicates="yes" status="open"}

But when I submit, I get an error:

* A name is required to submit ratings.
* Your email address is missing.

Am I missing a parameter here?

I’m trying to enable voting without a required login

Profile
 
 
Posted: 25 March 2008 05:56 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

You’ll probably still need to add the email and name fields to the form.

But, for the heck of it, try adding this parameter:

anonymous="yes"

 Signature 
Profile
 
 
Posted: 25 March 2008 06:31 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2008-03-14

Thanks for your help, Pie Man.

No luck with the anonymous parameter, I’m getting the same message.

Is there a way around adding the email and name fields to the form? I’d prefer if users didn’t have to enter anything aside from their rating.

Profile
 
 
Posted: 25 March 2008 06:37 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

It’s a required field....

What if you just set the two fields as hidden, and dummied up an email address and name hardcoded into the form? smile

<input type="hidden" name="name" value="Anonymous" />
<
input type="hidden" name="email" value="anonymous@yoursite.com" />

 Signature 
Profile
 
 
Posted: 25 March 2008 07:48 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  5
Joined  2008-03-14

Cool, that works.

Is there a built in way to prevent a user from rating an entry more than once without requiring membership?

I tried it with the parameters you mentioned in this thread http://www.solspace.com/forums/viewthread/616/ , but once I refresh the page I can vote again.

Any thoughts?

Profile
 
 
Posted: 25 March 2008 08:03 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

Try this:

allow_duplicates="no"

Although I wonder if it will consider it a duplicate because of the same name/email

Also, try this:

CP Home › Modules › Rating › Website Preferences

Require email? NO

 Signature 
Profile
 
 
Posted: 25 March 2008 10:20 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  5
Joined  2008-03-14

I gave that a shot, but I’m still able to vote again whenever I refresh the page.

Any other ideas? Or do I need to ressurect my cookie writing skills?

Profile
 
 
Posted: 25 March 2008 10:25 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

Are all of your votes going to be by guests? Or members & guests?

 Signature 
Profile
 
 
Posted: 25 March 2008 10:31 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  5
Joined  2008-03-14

Guests only—I don’t have any sort of membership implementation on the site.

Profile
 
 
Posted: 25 March 2008 10:36 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

I guess it can only detect duplicates on Member accounts only. I was otherwise going to see if it wasn’t working for members for you too. (It works for me for members)

 Signature 
Profile