FIXING RATING SYSTEM
-------------------------------------------------------------------------
The Tableau template utilizes the "JQuery Star Rating Plugin" from FyneWorks.
Part One:
-------------------------------------------------------------------------
Unfortunately, the following Star Rating Plugin files were not included in the template: "star.gif" and "delete.gif"

and

respectively.
Right click each image and save these files in your
/includes/templates/YOUR_TEMPLATE/images/ folder
Part Two:
-------------------------------------------------------------------------
The Tableau CSS file located in
/includes/templates/YOUR_TEMPLATE/css/auto_loaders/jquery.rating.css
needs updating to correctly display (or not depending on your preference) both "star.gif" and "delete.gif."
Part Two A:
-------------------------------------------------------------------------
To prevent "delete.gif" from displaying:
(IF the following line numbers don't match the line numbers in your jquery.rating.css, then look for the code and match it to your CSS file and modify accordingly.)
Leave lines 3-5 of the default Tableau jquery.rating.css as is.
3. div.rating-cancel {
4. display: none !important;
5. }
To display "delete.gif," comment out lines 3-5 by beginning line 3 with /* and ending line 5 with */
On line six add:
NEW LINE 6. div.rating-cancel,div.rating-cancel a{
NEW LINE 7. background-repeat: no-repeat;
NEW LINE 8. background-position: 0 -16px;
NEW LINE 9. background-image: url(../../images/delete.gif)
NEW LINE 10. }
(The original line 6 code
div.star-rating {
margin-right: 2px;
}
will end up starting on line 11)
Where "url(../../images/delete.gif)" is the path to your "delete.gif"
Part Two B:
-------------------------------------------------------------------------
To correctly display and allow your customer to rate your products:
Replace the original Tableau CSS coding for (NOW) line
15: div.star-rating,div.star-rating a{background:url(../../images/stars_plugins.png) no-repeat 0 0px}
("stars_plugins.png" doesn't exist)
with:
NEW LINE 15: div.star-rating,div.star-rating a{
NEW LINE 16: background-repeat: no-repeat;
NEW LINE 17: background-position: 0 0px;
NEW LINE 18: background-image: url(../../images/star.gif)
NEW LINE 19: }
Where "url(../../images/star.gif)" is the path to your "star.gif"
-------------------------------------------------------------------------
Ultimately, you will end up with a jquery.rating.css that looks like this:
Lines 3 - 19 (Again line numbers are relative to your css file.)
/*div.rating-cancel {
display: none !important;
} */
div.rating-cancel,div.rating-cancel a{
background-repeat: no-repeat;
background-position: 0 -16px;
background-image: url(../../images/delete.gif)
}
div.star-rating {
margin-right: 2px;
}
/*div.rating-cancel,div.rating-cancel a{background:url(delete.gif) no-repeat 0 -16px}*/
div.star-rating,div.star-rating a{
background-repeat: no-repeat;
background-position: 0 0px;
background-image: url(../../images/star.gif)
}
-------------------------------------------------------------------------
This should now display the rating system as (if I'm not mistaken) Numinix intended.
BTW, Thanks, Numinix for your hard work!

Bookmarks