View Full Version : Moderators and deleting photos
September 23rd, 2011, 04:37 PM
I have my PP set to allow my members to delete their own photos, but I want to disable moderators from deleting other photos and just have them move photos to a hidden category instead.
Is there a way I can make it so that moderators don't have the option to delete other member's photos but can still delete their own?
September 23rd, 2011, 06:27 PM
No sorry if they are a moderator for a category they will be allowed to delete images.
September 24th, 2011, 10:19 PM
Thanx Chuck...so there's no way I can delve into the code to remove the option?
September 25th, 2011, 11:35 AM
You are free to alter your coding however you wish but we do not support or assist with such changes. My suggestion is to maybe change the is_moderator function in pp-inc.php to just this but I offer no support or assistance at all on this. Below is a stripped down version with all the stuff to get a mods perms removed.
function is_moderator( $catid )
global $Globals, $pplang, $CatPerms, $User;
if ( $User['adminedit'] == 1 || $Globals['modprivs'] )
return( true );
$arethey = false;
return( $arethey );
September 25th, 2011, 03:38 PM
I tried that, it didn't stop me being able to delete an image lol thanx anyway Chuck :)
September 25th, 2011, 03:43 PM
Then you are giving mods global privileges in the settings
September 25th, 2011, 03:55 PM
Where would I check that? In Edit Usergroups, Moderators are set to No for Admin Access and Yes for Mod Access.
September 25th, 2011, 04:00 PM
NM, I found the setting lol I changed it to No for Global Privleges, set up my test account as mod for one category, uploaded a test pic with my main account and made the changes to pp-inc....my test account could still delete the photo
Hmmm just noticed my test mod account can see the edit menu on pics in categories not assigned as mod to, is that normal?
September 25th, 2011, 05:03 PM
what I posted above was something off the top of my head you could try but there are no guarantees.
September 25th, 2011, 05:18 PM
No worries Chuck, thanx anyway :)
September 25th, 2011, 06:02 PM
enjoy your evening
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.