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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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