View Single Post
Old 2009-07-12, 04:41 PM   #3
A.J. Angel
And Lord, we are especially thankful for nuclear power, the cleanest, safest
energy source there is. Except for solar, which is just a pipe dream
 
Join Date: Sep 2008
Posts: 229
Quote:
Originally Posted by nate View Post
If my guess is right, after a person votes, they'll only see the stars.
Yeah, that's the case. I actually have a page set up here:

http://www.exquisiteangelz.com/ratings/

What I would like is that for both users who have rated and who have not rated, they only see the total ratings stats. This is because I would like to have the stars displayed alone with the stats appearing in the TITLE tags so it is displayed when the surfer hovers over the stars.

I have modified it with the following but once the surfer have voted, the stats don't appear when they hover over the stars.

PHP Code:
      for ($ncount 1$ncount <= $units$ncount++) { // loop from 1 to the number of units
           
if(!$voted) { // if the user hasn't yet voted, draw the voting stars
              
$rater.='<li><a href="db.php?j='.$ncount.'&amp;q='.$id.'&amp;t='.$ip.'&amp;c='.$units.'" title="Rating: '.$current_rating.'/'.$units.' ('.$count.' '.$tense.' cast)" class="r'.$ncount.'-unit rater" rel="nofollow">'.$ncount.'</a></li>';
           } 
A.J. Angel is offline   Reply With Quote