Hi heliotrope, it should work okay with Ditto listings as it should unset all the vote values on the first pass of the update routine. I’m not really sure why that isn’t the case.
Could you post your Ditto tpl chunk that you’re using and I’ll try and run a few tests on the snippet.
Cheers, Garry
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
Well, I tried the Ditto call above, and apart having to remove the Ditto filter settings (couldn’t get them to work for some reason) the CSS Star Rating worked as it should.
I will try on a different setup but won’t be able to do it until tomorrow evening now. If anybody else wants to give it a blast as well to see if it works then it would be appreciated.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
-
- 2,542 Posts
I was trying on local environment (OSX/Apache).
Everything works fine on a remote server.
:-)
EDIT:
The snippet has to be called cached from the ditto chunk to work. But you have to disallow vote from the list view or else it will be added as many times as you &summarize param in ditto call.
-
- 98 Posts
Nice snippet. I have it working but two questions that I couldn’t find answers to...
1) Is there a parameter to allow only logged-in users to vote? I’d like all users to be able to view the stars and count but only registered logged-in users to actually be able to vote.
Resolved, see below 2) I’m using FURLs with the "index.php?q=" thing and voting with FURLs turned on causes a 404 because of the second "?" in the URL before "starvote" (?starvote=2&pid=). I tried adding "&" before starvote in the MakeURL but the question mark still appears. I also tried using ’’ in place of ’alias’ as you mentioned in an earlier post, but that didn’t work either. Can you tell me what I’m doing wrong?
-
- 4,213 Posts
Quote from: bullrat at Oct 22, 2006, 06:42 PM
2) I’m using FURLs with the "index.php?q=" thing and voting with FURLs turned on causes a 404 because of the second "?" in the URL before "starvote" (?starvote=2&pid=). I tried adding "&" before starvote in the MakeURL but the question mark still appears. I also tried using ’’ in place of ’alias’ as you mentioned in an earlier post, but that didn’t work either. Can you tell me what I’m doing wrong?
This is fixed in 0.9.5 betas
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
- 21 Posts
I have a question, I’m trying to implement the star rating snippet and I am wondering how i should call it if i want more than one rating on a page. I want like 5 ratings for different items all on one page. So far when i have put the basic call [!star_rating!] it has a universal rating (or all the same rating) I know this is probably a simple fix, I’m still learning modx snippet calls and appreciate any help thanks
matthew
-
- 39 Posts
Hello!
Anybody know how to null the rating?