The following video will teach you how to remove the delete user button from comments and the newsfeed in Oxwall:
VIDEO
1. Go to
/ow_plugins/newsfeed/classes/event_handler.php
2. Find and delete
if ( in_array($params[‘feedType’], array(‘site’, ‘my’)) && $actionUserId != OW::getUser()->getId() && OW::getUser()->isAuthorized(‘base’) )
{
$callbackUrl = OW_URL_HOME . OW::getRequest()->getRequestUri();
array_unshift($data[‘contextMenu’], array(
‘label’ => OW::getLanguage()->text(‘newsfeed’, ‘delete_feed_item_user_label’),
‘attributes’ => array(
‘onclick’ => UTIL_JsGenerator::composeJsString(‘OW.Users.deleteUser({$userId}, \” . $callbackUrl . ‘\’, true);’, array(
‘userId’ => $actionUserId
))
)
));
}
3. Go to
ow_system_plugins\base\components\comments_list.php
4. Find and delete
if ( $isBaseModerator && $value->getUserId() != OW::getUser()->getId() )
{
$modAction = new BASE_ContextAction();
$modAction->setLabel($language->text(‘base’, ‘contex_action_user_delete_label’));
$modAction->setKey(‘cdel’);
$modAction->setParentKey($parentAction->getKey());
$delId = ‘udel-‘ . $value->getId();
$modAction->setId($delId);
$actionArray[‘users’][$delId] = $value->getUserId();
$cAction->addAction($modAction);
}
Thank you,
Charles Benson http://OxwallAccessories.com
Looking for quality OxWall Hosting ? Look no further than Arvixe Web Hosting !
– See more at: http://blog.arvixe.com/?p=33636&preview=true#sthash.wmKlvhJv.dpuf
Author Spotlight
Charles Benson
I'm here to find you answers and give you tips on running an oxwall based website through Arvixe Web hosting. If you need anything at all feel free to get in touch with me!
Remove the Delete User Button from Comments and Newsfeed in Oxwall
The following video will teach you how to remove the delete user button from comments and the newsfeed in Oxwall:
1. Go to
/ow_plugins/newsfeed/classes/event_handler.php
2. Find and delete
if ( in_array($params[‘feedType’], array(‘site’, ‘my’)) && $actionUserId != OW::getUser()->getId() && OW::getUser()->isAuthorized(‘base’) )
{
$callbackUrl = OW_URL_HOME . OW::getRequest()->getRequestUri();
array_unshift($data[‘contextMenu’], array(
‘label’ => OW::getLanguage()->text(‘newsfeed’, ‘delete_feed_item_user_label’),
‘attributes’ => array(
‘onclick’ => UTIL_JsGenerator::composeJsString(‘OW.Users.deleteUser({$userId}, \” . $callbackUrl . ‘\’, true);’, array(
‘userId’ => $actionUserId
))
)
));
}
3. Go to
ow_system_plugins\base\components\comments_list.php
4. Find and delete
if ( $isBaseModerator && $value->getUserId() != OW::getUser()->getId() )
{
$modAction = new BASE_ContextAction();
$modAction->setLabel($language->text(‘base’, ‘contex_action_user_delete_label’));
$modAction->setKey(‘cdel’);
$modAction->setParentKey($parentAction->getKey());
$delId = ‘udel-‘ . $value->getId();
$modAction->setId($delId);
$actionArray[‘users’][$delId] = $value->getUserId();
$cAction->addAction($modAction);
}
Thank you,
Charles Benson http://OxwallAccessories.com
Looking for quality OxWall Hosting? Look no further than Arvixe Web Hosting!
– See more at: http://blog.arvixe.com/?p=33636&preview=true#sthash.wmKlvhJv.dpuf
Author Spotlight
Charles Benson
I'm here to find you answers and give you tips on running an oxwall based website through Arvixe Web hosting. If you need anything at all feel free to get in touch with me!