How to Hide HTML BLOCK for Non-Members in SocialEngine

I create a menu with jquery and I put in a HTML BLOCK in the header layout. Well, this menu can be viewed for everybody and I don’t want that so, I put this in my htmlblock widget:/web/application/modules/Core/widgets/html-block/index.tpl

 * SocialEngine
 * @category   Application_Core
 * @package    Core
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license
 * @version    $Id: index.tpl 7244 2010-09-01 01:49:53Z john $
 * @author     John

 <?php if( $this->viewer()->getIdentity() ):
 echo $this->data?>

 <?php endif; ?>

That’s it! The menu disappears for non-members in the header layout.

Looking for quality SocialEngine Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *