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

Suggestions - Top users plugin by Oxwall CandyStore | Forum

dave Leader
dave Oct 27 '13

This widget needs to be disabled on the page if the user is suspended.

 

 

dave Leader
dave Oct 28 '13

by using this

 

        if (BOL_UserService::getInstance()->isSuspended($user->getId()))

 

 

so at the top of the init.php right after the header description (the first php code is this)

 

// added by dave
if ( !OW::getUser()->isAuthenticated() || !BOL_UserService::getInstance()->isApproved() )
{
  return;
   }

 $user = BOL_UserService::getInstance()->findUserById(OW::getUser()->getId());

 if (BOL_UserService::getInstance()->isSuspended($user->getId()))
 {
  return;
        }

// end add

The Forum post is edited by dave Oct 28 '13
You do not have permission to reply this topic