coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: voltagenh on January 26, 2009, 11:45:34 PM

Title: Show votes
Post by: voltagenh on January 26, 2009, 11:45:34 PM
I have looked everywhere,  and i cannot find how to show the vote stars under each thumbnail.

if i click on Top Rated, it shows them.

but no where else.

Ideas?
Title: Re: Show votes
Post by: Nibbler on January 28, 2009, 08:17:09 PM
http://forum.coppermine-gallery.net/index.php/topic,44494.0.html
Title: Re: Show votes
Post by: DigitalMind on April 03, 2009, 02:57:23 PM
I would like to do the same thing.  The link that you gave Nibbler is great and pretty much does it, but it DOESN'T show the rating and stars when looking at the LAST UPLOADS section.  ( www.demotivationalpics.com )
Title: Re: Show votes
Post by: DigitalMind on April 03, 2009, 03:14:18 PM
Ok I figured it out using the same instructions.  Just needed to apply in in the lastup function.  So for the sake of sharing, to make this work when viewing the LAST UPLOADS :

In Functions.inc.php, in the lastup function, (around line 1120) find :
if ($set_caption) build_caption($rowset,array('ctime'));
$rowset = CPGPluginAPI::filter('thumb_caption_lastup',$rowset);



replace with :
  if ($set_caption) build_caption($rowset, array('pic_rating'));

                $rowset = CPGPluginAPI::filter('thumb_caption_lastup',$rowset);



I'm not sure what the 'Ctime' that I removed does.  So far I don't see any bad consequences, can anyone enlighten me ? 
Title: Re: Show votes
Post by: Joachim Müller on April 04, 2009, 11:18:36 AM
Quote from: DigitalMind on April 03, 2009, 02:57:23 PM
( www.demotivationalpics.com )
Upgrade! Your version: cpg1.4.16. Currently most recent stable release: cpg1.4.21. Your site: subject to exploits/hacks that are actively being performed. All versions before cpg1.4.21 are vulnerable.

Quote from: DigitalMind on April 03, 2009, 03:14:18 PM
I'm not sure what the 'Ctime' that I removed does.  So far I don't see any bad consequences, can anyone enlighten me ? 
ctime is a unix time stamp