Code: Select all
<?php
$user =& JFactory::getUser();
?>
<?php if($user->get('usertype') == 'Author') : ?>
<div id="user1">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<?php endif ?>
Moderator: ooffick
Post by DonKihott » Wed Feb 15, 2012 9:13 pm
Code: Select all
<?php
$user =& JFactory::getUser();
?>
<?php if($user->get('usertype') == 'Author') : ?>
<div id="user1">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<?php endif ?>
Post by wwhite » Thu Feb 16, 2012 1:28 am
Post by mtrivino » Tue Feb 21, 2012 12:31 am
Code: Select all
if(in_array("8", $user->getAuthorisedGroups())){
// if user belongs to group with id=8, do this...
}
Return to “Joomla! 2.5 Coding”
© 2005 - 2024 Open Source Matters, Inc. All Rights Reserved.