Show votes Show votes
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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