4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Lucifix on June 24, 2003, 05:48:24 PM

Title: Disable votes for authors
Post by: Lucifix on June 24, 2003, 05:48:24 PM
I didn't find any mode that disallow authors to vote thier own photo. Is there any mode? Or is it possible at all?
Title: Disable votes for authors
Post by: V@no on June 25, 2003, 12:51:09 AM
the easiest way to do so, is not display rate dropdown at all ;)
to do so, find in /includes/functions.php:
Code: [Select]
 if (check_permission("auth_vote", $image_row['cat_id'])) {replace with:
Code: [Select]
 if (check_permission("auth_vote", $image_row['cat_id']) && $user_info['user_id'] != $image_row['user_id']) {