|
uCoz Community uCoz Modules Additional Features Entry Rating in the informer (Is it possible to add the entry rating in the informer?) |
Entry Rating in the informer |
I would like to add the entry rating feature (the five stars) into an informer.
I would like to get an informer that shows the entry name and below the possibility to rate it, without entering directly in the news. Is this possible in some way? I've tried to add the code <?if($RATING$)?><div style="float:right"><?$RSTARS$('12','/.s/img/stars/3/12.png','1','float')?></div><?endif?> but it doesn't work, it shows nothing. Thank you for your help! My site about betting: http://scommesse.ucoz.com
|
Thank you!
And eventually would be possible to show just the actual rate (number of stars). And then you have to enter in the news to rate it. My site about betting: http://scommesse.ucoz.com
|
Thank you! I am able to display the number of stars, but not the stars themselves.. Which code should I use?
My site about betting: http://scommesse.ucoz.com
|
IoCiScommetto, use this code in the informer template:
Code <ul title="Rating: $RATING$/$RATED$" class="u-star-rating"> <li style="width:<?int($RATING$*20)?>%;" class="u-current-rating"></li> </ul> And add also the styles: Code <style type="text/css"> .u-star-rating{list-style:none;margin:0px;padding:0px;width:60px;height:12px;position:relative;background: url('/.s/img/stars/3/12.png') top left repeat-x;} .u-star-rating li{padding:0px;margin:0px;float:left;outline:none;} .u-star-rating li.u-current-rating{top:0;left:0;background: url('/.s/img/stars/3/12.png') left bottom;position: absolute;height:12px;line-height:12px;display:block;text-indent:-9000px;z-index:1;} </style> I'm not active on the forum anymore. Please contact other forum staff.
|
Thank you!!!
One last question, where should I add the styles? In the Informer? My site about betting: http://scommesse.ucoz.com
|
I've add both but actually it doesn't work
here is the page http://scommesse.ucoz.com/index/temp/0-126 instead of the stars it displays a black dot... I've added the two codes one after the other My site about betting: http://scommesse.ucoz.com
|
| |||
| |||