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: Display the rating on thumbails page ?  (Read 7528 times)

0 Members and 1 Guest are viewing this topic.

machiga

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Display the rating on thumbails page ?
« on: February 15, 2006, 02:01:03 pm »

Hello,
I would like to know if it possible to display the rate (or number of vote) on thumbnails page ?
On the config > Thumbnail View, I have :  Display number of views below the thumbnail (Yes/No),  Display number of comments below the thumbnail(Yes/No), etc...
There nothing about Rating (and I found nothin on Faq and Forum)... is there a technique ?
Thank you very much and have a great day !

Best Regards,
Machiga
« Last Edit: February 21, 2006, 09:47:26 am by GauGau »
Logged

machiga

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Display the rating on thumbails page ?
« Reply #1 on: February 17, 2006, 06:50:41 pm »

Up up my dear little post.

Nobody can't help me ? I just would like to display the rating of a picture on thumbnails page. Then we can se if one picture was rated (by their number of stars or just some words like "2 votes")
Thank you very much.

Best Regards,
Machiga
Logged

machiga

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Display the rating on thumbails page ?
« Reply #2 on: February 20, 2006, 05:11:59 pm »

Nobody can't really help me ?
I'll try to explain precisely what I want.
On my thumbnails page (where I have 20 photos / page), I would like to display the number of votes (and stars) like we can see on top rated page.

Is it possible to do that ?
If yes, how can we do that ? (I can't find a way... )

Thank you very much.
Best Regards,
Machiga
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

machiga

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Display the rating on thumbails page ?
« Reply #4 on: February 21, 2006, 06:49:51 am »

Sorry about that...
I'll be patient
« Last Edit: February 21, 2006, 06:55:42 am by machiga »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Display the rating on thumbails page ?
« Reply #5 on: February 21, 2006, 06:56:13 am »

Items 2 and 5 apply for your question.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Display the rating on thumbails page ?
« Reply #6 on: February 21, 2006, 08:19:14 am »

Edit include/functions.inc.php

Replace (in function get_pic_data) around line 939

Code: [Select]
if($select_columns != '*') $select_columns .= ', title, caption,hits,owner_id,owner_name;

with

Code: [Select]
if($select_columns != '*') $select_columns .= ', title, caption,hits,owner_id,owner_name,pic_rating,votes';

then just few lines below it Replace

Code: [Select]
if ($set_caption) build_caption($rowset);

with

Code: [Select]
if ($set_caption) build_caption($rowset, array('pic_rating'));


P.S: With some more coding this can be done as config settable option like others are.


Abbas
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Display the rating on thumbails page ?
« Reply #7 on: February 21, 2006, 09:18:02 am »

@Abbas: good work, I added a reminder to the appropriate board so that your idea doesn't get forgotten, see http://forum.coppermine-gallery.net/index.php?topic=28206.0
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Display the rating on thumbails page ?
« Reply #8 on: February 21, 2006, 09:31:15 am »

Thanks Joachim :)
Logged
Chief Geek at Ranium Systems

machiga

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Display the rating on thumbails page ?
« Reply #9 on: February 21, 2006, 09:40:00 am »

Ok Gaugau, but sorry again, because I was sad to see my post goes on second/third page. I'm not really familiar with forum :/

Anyway Abbas Ali, I made the change that you proposed and your code works great !
Thank you very much !

Thank you everybody and good luck for the next release :)

++
machiga

edit : hum I can't find the "solved button"  ;D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Display the rating on thumbails page ?
« Reply #10 on: February 21, 2006, 09:49:19 am »

threads are being sorted by date - currently your thread is on the first page. You can't mark a thread as solved, only moderators can. However, you can reply to your threads saying that they are solved just as you did. I marked the thread accordingly for you.
Logged

machiga

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Display the rating on thumbails page ?
« Reply #11 on: February 21, 2006, 09:57:44 am »

Oki, thanks again :)
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.