We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Hide delete on profiles | Forum

Abbey
Abbey Aug 3 '14
I was wondering if there was a code I could add to the custom css to hide the delete button on profiles, I want my moderators to be able to suspend profiles but not delete.
iDragon Solution Co., Ltd
In order to hide this button by php code, pleas go to /ow_system_plugins/base/classes/event_handler.php, then search

$eventManager->bind(BASE_CMP_ProfileActionToolbar::EVENT_NAME, array($this, 'onActionToolbarAddDeleteActionTool'));

and replace it by this command

// $eventManager->bind(BASE_CMP_ProfileActionToolbar::EVENT_NAME, array($this, 'onActionToolbarAddDeleteActionTool'));


Good luck!

dave Leader
dave Aug 4 '14
I think that commenting out that code will block it from everyone with base privileges such as admin, moderators, and anyone else that you to give permission to. 


check this out :)


http://www.oxwall.org/forum/topic/11968