Support > cpg1.5 themes (visuals)

Hide vote counting..

<< < (2/3) > >>

mr.bena:
You are right, Andre. I want to hide the actual voting for album ID 30, if the current user isn't the uploader or the admin with this mod.

Αndré:
This code should work, but I haven't tested that:

--- Code: ---$votes = $CURRENT_PIC_DATA['votes'] ? sprintf((($CURRENT_PIC_DATA['aid'] == 30 && !GALLERY_ADMIN_MODE && $CURRENT_PIC_DATA['owner_id'] != USER_ID) ? '(Current rating : %s / %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'];
--- End code ---

mr.bena:
Unfortunately, it does not work. Apart from the file uploader and the admin, all other users still can see the ratings..

Αndré:
So it currently does exactly the opposite?

mr.bena:
I am sorry.. the mod is working, Andre. I removed '(Current rating : %s / %s)' and replace with '.'

However, since I use 1 star rating for album ID=30, it is not good to show 'Current rating : 1/1 with 5 votes" etc.. That is what it is currently showing.. I prefer to change this as 'Current rating: 5 votes" leaving the 1/1 part. Again, is it possible to show only the total of a unique votes meaning the total of the votes given only by the registered users excluding the votes given by Guests?

When the Admin or the uploader of the picture see "Current rating : 5 votes" that would mean the votes given only by the registered users. Thank you so much for the precious help.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version