Member
Member
oldsportbiker   2010-02-26, 21:54
#1

Thought I'd share what I've learned in the past few days in trying to add rating to the highslide theme.

In addition to enabling the rating option using the ZenPhoto admin function, I
made the following changes to code and images:

Changes to album.php for the highslide theme (added call to printRating())


  " class="highslide" onclick="return hs.expand(this)" title="">








         " class="lightbox_quote_button">Request Quote

Change to rating.php (added $_zp_current_image to global list)


function printRating($vote=3, $object=NULL, $text=true) {

global $_zp_gallery_page, $_rating_css_loaded,$_zp_current_image;

if (is_null($object)) {
    $object = getCurrentPageObject();

}

Miscellaneous formatting and size changes made to :

jquery.rating.css,alt_star.png,clear.png

to reduce the size of the rating stars

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.