Back to vBulletin 3.0 Add-Ons

Prohibit Users from Rating Own Threads.
Mod Version: 1.00, by Michael Morris

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 18
Released: 01 Jan 2005 Last Update: Never Downloads: 1
Not Supported  

This is a tiny modification that requires 1 new phrase and 1 file hack.

Search threadrate.php for this code

PHP Code:
if (!($forumperms CANVIEW) OR !($forumperms CANTHREADRATE) OR (!($forumperms CANVIEWOTHERS) AND ($threadinfo['postuserid'] != $bbuserinfo['userid'])))
{
    
print_no_permission();

Below it add

PHP Code:
// 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.

Download

No files for download.

Similar Mods

Show Thread Enhancements [AJAX] Threads rating vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024