I think you are using friendly url path and this snippet does not output proper url in that case...
Actually, when you click to vote it goes to an error page.
$starPhArray['starRating'] = "<ul class='star-rating'> <li class='current-rating' style='width:" . $width . "px;'>" . $_lang['current_1'] . $currentStarValue . $_lang['current_2'] . "</li> <li><a href='" . $modx->makeUrl($modx->documentObject['id'], $modx->documentObject['alias'], 'starvote=1&pid=' . $docID) . "' title='" . $_lang['one_star'] . "' class='one-star'>1</a></li> <li><a href='" . $modx->makeUrl($modx->documentObject['id'], $modx->documentObject['alias'], 'starvote=2&pid=' . $docID) . "' title='" . $_lang['two_stars'] . "' class='two-stars'>2</a></li> <li><a href='" . $modx->makeUrl($modx->documentObject['id'], $modx->documentObject['alias'], 'starvote=3&pid=' . $docID) . "' title='" . $_lang['three_stars'] . "' class='three-stars'>3</a></li> <li><a href='" . $modx->makeUrl($modx->documentObject['id'], $modx->documentObject['alias'], 'starvote=4&pid=' . $docID) . "' title='" . $_lang['four_stars'] . "' class='four-stars'>4</a></li> <li><a href='" . $modx->makeUrl($modx->documentObject['id'], $modx->documentObject['alias'], 'starvote=5&pid=' . $docID) . "' title='" . $_lang['five_stars'] . "' class='five-stars'>5</a></li> </ul>";
$starPhArray['starRating'] = "<ul class='star-rating'> <li class='current-rating' style='width:" . $width . "px;'>" . $_lang['current_1'] . $currentStarValue . $_lang['current_2'] . "</li> <li><a href='" . $modx->makeUrl($docID) . "?starvote=1&pid=" . $docID . "' title='" . $_lang['one_star'] . "' class='one-star'>1</a></li> <li><a href='" . $modx->makeUrl($docID) . "?starvote=2&pid=" . $docID . "' title='" . $_lang['two_stars'] . "' class='two-stars'>2</a></li> <li><a href='" . $modx->makeUrl($docID) . "?starvote=3&pid=" . $docID . "' title='" . $_lang['three_stars'] . "' class='three-stars'>3</a></li> <li><a href='" . $modx->makeUrl($docID) . "?starvote=4&pid=" . $docID . "' title='" . $_lang['four_stars'] . "' class='four-stars'>4</a></li> <li><a href='" . $modx->makeUrl($docID) . "?starvote=5&pid=" . $docID . "' title='" . $_lang['five_stars'] . "' class='five-stars'>5</a></li> </ul>";
No. I thought you are using friendly url path.
I am using friendly URLs, you’re right.
You have to change your snippet source in your MODx system.
Now, when you say "I changed this part...to...", does that mean you want me to change that? Or, download it again because it’s fixed now? Or what?
I am not an expert of PHP, but I looked into the source code of this snippet.
You may only vote once.
$novote = ($useSession == true && isset ($_SESSION['starRating']['voted' . $docID])) ? true : false;
DELETE FROM modx_site_tmplvar_contentvalues WHERE tmplvarid=<TV ID>;
This may seem like an odd question or rather something that is just dumb but I’ve been looking at the ratings posted and there seems to be a lot of votes that are scoring 3. I haven’t been too bothered with it myself but a couple of people have commented on it.
Do any of you think that something could be a little off with the way the ratings work on my site?
http://il2mdb.montydan.com/