Foren / Cotonti / Support / Rating stars won't show

12NächsteLetzte

tru3existance
#1 7. August 2009, 02:32
http://oblivion.recoding.net/cotonti/list.php?c=articles

the rating stars aren't showing up what should i do?
[img]http://aesirdesign.chris.novahost.org/upload/get/tru3existance bugatti203.png[/img]
Trustmaster
#2 7. August 2009, 02:47
See last part of this article
May the Source be with you!
Dr2005alex
#3 7. August 2009, 02:47
Trustmaster:
Ratings need an update, so be sure to udpdate:
* skins/YOUR_SKIN/ratings.tpl - copy contents from sed-light skin
* your skin CSS - replace ratings styles with new stiles from sed-light.css, that section starts with
/* ============== Ratings CSS ============== */
WebKaa.ru - Cotonti Relax
tru3existance
#4 7. August 2009, 02:58
sweet! thanks for the fast replys
[img]http://aesirdesign.chris.novahost.org/upload/get/tru3existance bugatti203.png[/img]
Ross
#5 20. August 2009, 22:45
I am making a new skin for Cotonti 0.6.1
Of course I copied contents from sed-light skin and css.
I put the link to the related javascripts in the header.tpl
However, ratings don't work. I just see numbers without links and not even order.

What could the problem be?
Trustmaster
#6 21. August 2009, 03:37
No javascript links are required, it should link automatically if the page uses ratings. Duplicate links will cause errors.
May the Source be with you!
Ross
#7 21. August 2009, 04:04
I have the link to the css of quey ui in header.tpl and in ratings.tpl I have

<script type="text/javascript" src="js/jquery.MetaData.js"></script>
	<script type="text/javascript" src="js/jquery.rating.js"></script>

but it doesn't work.
May it be related to my specific server?
Trustmaster
#8 21. August 2009, 14:52
I said, there must not be a link to it in header.tpl! ratings.tpl does that alone, or you may encounter duplicate inclusion problems.
May the Source be with you!
Ross
#9 23. August 2009, 16:39
It still doesn't work.

I took the files again from another Cotonti skin.

TO summarize:

  1. File ratings.tpl in the skin folder
  2. Css code in the css skin file; i.e.:
    /* ============== Ratings CSS ============== */
    /* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/ */
    div.rating{cursor:pointer;margin:0;clear:none;display: inline;}
    div.rating:after{content:'.';display:inline;height:0;width:0;clear:none;visibility:hidden;}
    div.cancel,div.star{float:left;clear:none;width:17px;height:15px;text-indent:0;cursor:pointer;display:inline;background:transparent;}
    div.cancel,div.cancel a{background:url('img/system/delete.gif') no-repeat 0 -16px}
    div.star,div.star a{background:url('img/system/star.gif') no-repeat 0 0px}
    div.cancel a,div.star a{display:block;clear:none;width:16px;height:100%;background-position:0 0px}
    div.star_on a{background-position:0 -16px!important}
    div.star_hover a,div.star_live a:hover{background-position:0 -32px}
    /* Read Only CSS */
    div.star_readonly a,div.star_readonly a:hover{cursor:default !important}
    /* Partial Star CSS */
    div.star{background:transparent!important;}
    /* END jQuery.Rating Plugin CSS */
  3. jquery-ui.css in the skin folder
  4. jquery.rating.js in the js folder in the root of the site

What I get is several numbers in a vertical disposition. If I click on a number, the Rate It button is visible but then it doesn't register the vote. After the vote, the ten numbers change in a zero.

I don't see the stars. Only the numbers and while the page is refreshing small circles are appearing for a second then they become those numbers.

The problem affects page.tpl and list.tpl
Kilandor
#10 23. August 2009, 17:52
I think you should provide a URL to your site, it might prove alot more helpfull
Ross
#11 23. August 2009, 18:38
# Kilandor : I think you should provide a URL to your site, it might prove alot more helpfull

wwww.rossellapruneti.com
of course, it is under construction
Dr2005alex
#12 23. August 2009, 19:07
Ross

Probably absent in the folder js file jquery.MetaData.js
Check!
Update to the reliability of the package folder js cotonti!

Добавлено 4 Минуты спустя:

And if the cache is to tpl then remove all of the folders /datas/cache/templates
WebKaa.ru - Cotonti Relax
Ross
#13 23. August 2009, 19:54
# Dr2005alex : Ross

Probably absent in the folder js file jquery.MetaData.js
Check!
Update to the reliability of the package folder js cotonti!

Добавлено 4 Минуты спустя:

And if the cache is to tpl then remove all of the folders /datas/cache/templates

Yes, I did check if all the jquery javascripts had been uploaded. They were.

I noticed in some skins there are two links at the beginning of rating.tpl:
both to jquery.MetaData.js and to jquery.rating.js.

In some other skins there is only the link to jquery.rating.js

I tried both - unsuccessfully.


I tried also to clean the cache - unsuccessfully.

What does
Dr2005alex:
Добавлено 4 Минуты спустя
mean?
Dr2005alex
#14 23. August 2009, 20:15
:)
What does
Dr2005alex:
Добавлено 4 Минуты спустя
mean?


Posted 4 minutes later
WebKaa.ru - Cotonti Relax
Ross
#15 24. August 2009, 01:42
I tried with another skin (downloaded from this site) to be sure it is not a problem related to my skin. It doesn't work even with the other skins.

I assume it is something about the system or the core? Or my server?
:O

12NächsteLetzte