Hello,
i try to add a 5 star rating with MooStarsRating for radio buttons.
Here you can find the documentation:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=22899
It works! :-) but... i need this rating for 9 radiobutton groups (see attached file)in a row (on one site).
1. I add this to the each radio button and change the name for each to unqiue:
2. i upload MooStarRating v.1.3 to the server (/components/com_Chronoforms/assets/MooStarRating/)
3. i Add an Event "CustomCode" and add this:
4. i add an Event "Load JS" and add this:
But i cant see the stars. Whats wrong?
best regards,
Sascha
i try to add a 5 star rating with MooStarsRating for radio buttons.
Here you can find the documentation:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=22899
It works! :-) but... i need this rating for 9 radiobutton groups (see attached file)in a row (on one site).
1. I add this to the each radio button and change the name for each to unqiue:
<input type="radio" name="rating_hotel" value="1" />
<input type="radio" name="rating_hotel" value="2" />
<input type="radio" name="rating_hotel" value="3" />
<input type="radio" name="rating_hotel" value="4" />
<input type="radio" name="rating_hotel" value="5" />
<span id="htmlTip"></span>
2. i upload MooStarRating v.1.3 to the server (/components/com_Chronoforms/assets/MooStarRating/)
3. i Add an Event "CustomCode" and add this:
<?php
$doc = JFactory::getDocument();
$doc->addScript(JURI::base()."media/system/js/mootools-more.js");
$doc->addScript(JURI::base()."components/com_chronoforms/assets/MooStarRating/Source/moostarrating.js");
?>
4. i add an Event "Load JS" and add this:
// Configure the image paths
var MooStarRatingImages = {
defaultImageFolder: "http://www.unserball.de/components/com_chronoforms/assets/MooStarRating/Graphics",
defaultImageEmpty: "star_empty.png",
defaultImageFull: "star_full.png",
defaultImageHover: "star_hover.png"
};
// A fake post ID for the sake of submission
var postId = 10;
// When the DOM is ready....
window.addEvent("domready",function() {
// Create our instance
var starRater = new MooStarRating({
form: "test_form_star_rating",
radios: "rating_hotel",
half: false,
width: 18,
tip: "Sterne <i>[VALUE] / 5</i>",
tipTarget: $("htmlTip"),
tipTargetType: "html"
});
});
But i cant see the stars. Whats wrong?
best regards,
Sascha