News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

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://coppermine-gallery.com/forum/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