Show votes Show votes
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Show votes

Started by voltagenh, January 26, 2009, 11:45:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

voltagenh

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?


DigitalMind

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 )

DigitalMind

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 ? 

Joachim Müller

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