Michael Morris
12-31-2004, 10:00 PM
This is a tiny modification that requires 1 new phrase and 1 file hack.
Search threadrate.php for this code
if (!($forumperms & CANVIEW) OR !($forumperms & CANTHREADRATE) OR (!($forumperms & CANVIEWOTHERS) AND ($threadinfo['postuserid'] != $bbuserinfo['userid'])))
{
print_no_permission();
}
Below it add
// No voting for your own threads.
if ($threadinfo['postuserid'] == $bbuserinfo['userid'])
{
eval(print_standard_error('error_cantvoteforown')) ;;
}
Create a new phrase in the standard front end error messages group and name it cantvoteforown
The text I used was "Sorry, but you can't rate your own threads."
Note that this doesn't stop folks from voting with alt accounts.
Search threadrate.php for this code
if (!($forumperms & CANVIEW) OR !($forumperms & CANTHREADRATE) OR (!($forumperms & CANVIEWOTHERS) AND ($threadinfo['postuserid'] != $bbuserinfo['userid'])))
{
print_no_permission();
}
Below it add
// No voting for your own threads.
if ($threadinfo['postuserid'] == $bbuserinfo['userid'])
{
eval(print_standard_error('error_cantvoteforown')) ;;
}
Create a new phrase in the standard front end error messages group and name it cantvoteforown
The text I used was "Sorry, but you can't rate your own threads."
Note that this doesn't stop folks from voting with alt accounts.