Advanced search  

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

Pages: [1]   Go Down

Author Topic: Change rating display for images.  (Read 2634 times)

0 Members and 1 Guest are viewing this topic.

Bryce F

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Change rating display for images.
« on: April 16, 2006, 11:31:07 am »

How would I go about doing this:
I want to change the way ratings are displayed on the per-image level to match the per-thumbnail style.  Instead of saying "rating: 3.67 (with 3 votes)," I'd like it to round() this value and display the corresponding star image.

In "include/functions.inc.php" there is a line:
Code: [Select]
if($select_columns != '*') $select_columns .= ', title, caption,hits,owner_id,owner_name,pic_rating,votes';followed soon by:
Code: [Select]
if ($set_caption) build_caption($rowset, array('pic_rating'));(I modified these lines based on thread: http://forum.coppermine-gallery.net/index.php?topic=27925.0)
Can I get the images to display in the same way (without the <br> between stars and number of votes)?

Thank you.
Logged

Bryce F

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Change rating display for images.
« Reply #1 on: April 16, 2006, 11:36:33 am »

Addendum:
It would be cool to know specifically how this works so that I can add incremental .5 intermediate star values (and create corresponding new images for these).  Knowing how to apply this to thumbnail ratings and my proposed image rating would be nice.
Logged

Bryce F

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Change rating display for images.
« Reply #2 on: April 19, 2006, 01:00:59 pm »

Bump.  This was about to fall off of Page 1.
If nobody responds after this, I'll assume nobody knows.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.