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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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