Author Topic: Disable votes for authors  (Read 6638 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Disable votes for authors
« 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?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Disable votes for authors
« Reply #1 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']) {
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)