Hide Diplay File Information Button. - Page 2 Hide Diplay File Information Button. - Page 2
 

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

Hide Diplay File Information Button.

Started by mr.bena, April 02, 2012, 04:25:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mr.bena

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

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

ΑndrĂ©

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.

mr.bena