We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16702 ☆ A M B ☆
    • 536 Posts
    Hello,

    i have strange problem with CSS Star Rating.
    When Googlebot "check" my web-site vote in documents have CSS Star Rating...

    Do you have answer how i make for removal this problem?


    Thank you
      palma non sine pulvere
      • 9191
      • 20 Posts
      I’m not sure I totally understand your question. Are you saying that Googlebot is casting a vote in some sort of a ranking poll? You could either use robots.txt to lock robots out of the cast a vote page, or cast the vote using a POST form rather than a GET.
        • 21191
        • 236 Posts
        I’m having the same issue, GoogleBot is seeing those as normal links.. so it "clicks" all the stars.. and all my pages have a 3 star rating.
        I suppose the fix would be to get the agent type before running the snippet.

        Oh look http://webbake.com/tutorials/php-scripts/googlebot-email-notify I happen to know of a script to detect suck a one GoogleBot. I’m not knowledgeable enough to make it happen for this snippet however.

        -Cheers
          ~Shawn Himmelberger
          Check out my MODx Development and MODx Design Company - Himmelberger Design
          • 34162
          • 1 Posts
          hi i also have this problem, does anyone know how to fix it, all my pages have got 3 star ratings!! please help someone...
            • 8883
            • 59 Posts
            http://googleblog.blogspot.com/2005/01/preventing-comment-spam.html

            So it could be usefull to have links with rel="nofollow".

            changed Code in Snippet Css StarRating
            ...
            
            if (!$viewOnly) {
            	$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'] . "' rel=nofollow 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'] . "' rel=nofollow 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'] . "' rel=nofollow 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'] . "' rel=nofollow 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'] . "' rel=nofollow class='five-stars'>5</a></li>
            	</ul>";
            } else {
            
            ...
            


            But I’m not sure if this will help. Try it and report your impressions.
              • 34162
              • 1 Posts
              ok i made the code change you’ve suggested but how do i know if it’s made a difference? isn’t it google causing the problem not comment spammers??
                • 8883
                • 59 Posts
                hmm. The idea was that google will not index the links => maybe no more cliks on it caused by googlebot...
                just an idea..

                or:
                check if it’s possible to create a robots.txt rule for a defined class you put in the <a tag to exclude this for SearchEngines...

                There does exist "section targeting"
                <!-- google_ad_section_start(weight=ignore) -->

                for Google’s Adsense....

                Maybe there does exist some similar for the SeearchBot...
                otherwise I have no idea...
                  • 8883
                  • 59 Posts
                  So. I tested the rel="nofollow" on my site for 2 weeks and more... No more 100 mysterious votes or else...
                    • 34162
                    • 1 Posts
                    yeah it seems to also be working for me which is great. thanks.