|
2009-07-11, 11:46 PM | #1 |
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
|
Need help from PHP gurus
Hopefully, one on this board may help me! It shouldn't be too complicated. Anyway, I'm trying to edit a rating script file to display the stars only and instead of having the total rating under it, I would like it to be in the TITLE tags. So far, it only works when the user hasn't rated yet. Once the user has rated, the rating stats doesn't appear anymore. The script is from this site. Any help would be much appreciated. Thank you!
Here is the full code: PHP Code:
PHP Code:
|
2009-07-12, 12:25 AM | #2 |
I can now put whatever you want in this space :)
Join Date: Mar 2009
Location: Merica!
Posts: 543
|
I might try this hack first:
if(!$voted) { // if the user hasn't yet voted, draw the voting stars $rater.='<li><a href="db.php?j='.$ncount.'&q='.$id.'&t='.$ip.'&c='.$units.'" title="Rating: '.$current_rating.'/'.$units.' ('.$count.' '.$tense.' cast)" class="r'.$ncount.'-unit rater" rel="nofollow">'.$ncount.'</a></li>'; } else { include ("db.php"); } If my guess is right, after a person votes, they'll only see the stars.
__________________
Its just a jump to the left. Last edited by nate; 2009-07-12 at 12:29 AM.. |
2009-07-12, 04:41 PM | #3 | |
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:
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:
|
|
|
|