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 [2]   Go Down

Author Topic: Hide Diplay File Information Button.  (Read 10743 times)

0 Members and 1 Guest are viewing this topic.

mr.bena

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Hide Diplay File Information Button.
« Reply #20 on: April 17, 2012, 04:11:12 am »

I may be a little annoying, Andre. I think adjusting the mod we have discussed here would be better again. If that mod could be adjusted to show the Rating only for admin & the picture uploader, it seems better because the uploader will not have to click a link. The show details link function we have discussed here would be the same anyway with the request adjustment.

I adjust that mod like this..

Quote
if (GALLERY_ADMIN_MODE && USER_ID == $CURRENT_PIC_DATA['owner_id'])
{
       $votes = $CURRENT_PIC_DATA['votes'] ? sprintf(($CURRENT_PIC_DATA['aid'] == 13 ? '(Current rating : %s)' :        $lang_rate_pic['rating']), round(($CURRENT_PIC_DATA['pic_rating'] / 2000) / (5/$rating_stars_amount), 1), $rating_stars_amount,     $CURRENT_PIC_DATA['votes']) : $lang_rate_pic['no_votes'];
}
else
{
       
        $votes = $CURRENT_PIC_DATA['votes'] ? sprintf(($CURRENT_PIC_DATA['aid'] == 13 ? '.' : $lang_rate_pic['rating']),   round(($CURRENT_PIC_DATA['pic_rating'] / 2000) / (5/$rating_stars_amount), 1), $rating_stars_amount,$CURRENT_PIC_DATA['votes']) : $lang_rate_pic['no_votes'];
}

I do not know why.. it does not work...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Hide Diplay File Information Button.
« Reply #21 on: April 17, 2012, 11:29:30 am »

Double post: http://forum.coppermine-gallery.net/index.php/topic,74737.msg360000.html#msg360000

Please don't ask unrelated questions in this thread. Your question resides well in the other thread. I already answered there.
Logged

mr.bena

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Hide Diplay File Information Button.
« Reply #22 on: April 18, 2012, 12:36:21 am »

My apology. It was my mistake. :-\
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.033 seconds with 20 queries.