Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Show votes  (Read 3416 times)

0 Members and 1 Guest are viewing this topic.

voltagenh

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Show votes
« 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?
Logged

Nibbler

  • Guest
Re: Show votes
« Reply #1 on: January 28, 2009, 08:17:09 pm »

Logged

DigitalMind

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Show votes
« Reply #2 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 )
Logged

DigitalMind

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Show votes
« Reply #3 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 :
Code: [Select]
if ($set_caption) build_caption($rowset,array('ctime'));
 $rowset = CPGPluginAPI::filter('thumb_caption_lastup',$rowset);


replace with :
Code: [Select]
  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 ? 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show votes
« Reply #4 on: April 04, 2009, 11:18:36 am »

( 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.

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
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 15 queries.