Disable Hard Delete in vbulletin 3.8x

dlcomplete

New Member
Assalam-O-Walaikum,
Hello Guys,
This little modification Disable hard delete for all usergroups such as,
Moderators,SuperMods,administrator in vbulletin 3.8x
Open functions.php file from includes folder and,
Find:
Code:
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
		{
			DEVDEBUG('  USER IS A SUPER MODERATOR');
			$issupermod = true;
		}
	}
Replace With:
Code:
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
		{
			DEVDEBUG('  USER IS A SUPER MODERATOR');
			if ($do != 'canremoveposts')
{ 
            return 1; 
        }  
		}
	}
Allah Hafiz,
Bye.
 
Back
Top