Hi,
I display many documents in a page and i shall want to know if i can put css star rating for each element in the same page or if i must display the snippet in only one page ?
Because, when I display many css star rating on my page, i get an error message : "You may only vote once"...
Thx for your replies and sorry for my english...
TylerD - In MODx we trust
[Derni
Thx...
Problem :
My vote page is here :
http://www.mysite.com/folder1/folder2/vote_page.php
When I vote with css star rating, the url is :
http://www.mysite.com/vote_page.php?starvote=2&pid=141
It doesn’t work cause the good URL is :
http://www.mysite.com/folder1/folder2/vote_page.php?starvote=2&pid=141
Solution :
We can replace :
$modx->makeUrl($modx->documentObject[’id’], $modx->documentObject[’alias’], ’starvote=1&pid=’ . $docID)
by
[~[*id*]~]?starvote=1&pid=" . $docID . "
TylerD - In MODx we trust
[Derni
are there any known issues with starrating and Jot? I have one. Once i use Jot the starrating stars double, half colored star with 0 votes in the third star? Did not find much.
Love this snippet and it works a treat.
But I do have a couple of questions. Currently the only method of allowing single votes needs cookies, but it would appear that some users are wise to this and are deleting cookies and abusing the system.
Is there anyway of configuring it so that it logs the IP from which the vote was made, showing the rating to a user but not letting them vote whilst allowing a registered and logged in user to vote but only once and that the vote is then marked against their account thus not allowing further votes period?
Regards,
Tom.
-
MODX Staff
- 1,535 Posts
Hi all, I am (finally!) working on getting version 2 out of the door. I have snagged the issues regarding the cookies and I’m just tidying up a few other areas before I push the release out. There’s some great feature requests been mentioned in this thread and I think what I will do is tackle each one in the subsequent patch releases.
@redstormj: I like rabidlabs’ rating a lot - I will add it on my list as a feature request to build in some of the cool stuff they’ve done with their code.
@goldeagle: There’s no functionality at the moment, but that’s one feature I’m working on building into the snippet straight after the next release.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com