Star Rating: star images available

Author Message

Sergi A

Monday 22 February 2010 2:48:59 am

Hello,

i noticed that, on creating/editing nodes, the attribute object ezStarRating is showed with no stars (just the message Rating: 0/5 (0 votes cast)). I would like to show the white stars, although author can't vote it.

The main problem i have, is that I have to show a list of other nodes in edit.tpl, and here i really need the stars to appear.

How can I do it?

thank you!

Sergi A

Wednesday 24 February 2010 12:30:39 am

i've been digging into the problem, and what I find is that the star_rating.css is not being loaded when creating nodes, so the <ul> <li> element are not those of the star-rating. If I force the loading of this css file, then i can see the stars. I would like to do it nicely, i think there is a ini file where i can add the star_rating.css so that it is loaded, but I can't find it. Then the page_head_style.tpl would add this css in the <head>.

I think the include of this file is related to the possibility for the users to vote, am I wrong? I guess that, not loading it, users will not be able to vote, which is likely to be required when the user creates a new node.

Please, correct me if i'm wrong!

cheers!

André R.

Thursday 25 February 2010 12:31:15 pm

Hi!

See the other post on how to solve this cleanly:

http://share.ez.no/forums/extensions/ezstarrating-not-loading-css-js-etc/%28offset%29/last

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 14:44:57
Script start
Timing: Jan 29 2025 14:44:57
Module start 'layout'
Timing: Jan 29 2025 14:44:57
Module start 'content'
Timing: Jan 29 2025 14:44:57
Module end 'content'
Timing: Jan 29 2025 14:44:57
Script end

Main resources:

Total runtime0.0166 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1406151.2109
Module start 'layout' 0.00700.0035 739.351636.6641
Module start 'content' 0.01040.0049 776.015690.0625
Module end 'content' 0.01530.0013 866.078133.9922
Script end 0.0166  900.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.3156140.0002
Check MTime0.00116.5772140.0001
Mysql Total
Database connection0.00105.748610.0010
Mysqli_queries0.004326.121130.0014
Looping result0.00000.084610.0000
Template Total0.00105.710.0010
Template load0.00074.239110.0007
Template processing0.00021.466510.0002
Override
Cache load0.00052.729510.0005
General
dbfile0.00031.513880.0000
String conversion0.00000.065940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs