Post
by arjuninfo » Wed Oct 07, 2009 1:30 pm
after that u need to go to
administrator\modules\mod_menu\helper.php
there u need to add this code
if($user->get('gid') == 23)
{
$menu->addChild(new JMenuNode(JText::_('Home'),'index.php'), true);
$menu->getParent();
$menu->addChild(new JMenuNode(JText::_('Careers')), true);
$menu->addChild(new JMenuNode(JText::_('Careers'), 'index.php?option=com_careers'));
$menu->addChild(new JMenuNode(JText::_('Application'), 'index.php?option=com_careersapply'));
$menu->addChild(new JMenuNode(JText::_('Categories'), 'index.php?option=com_careers&task=careerscategory'));
$menu->getParent();
}
else if($user->get('gid')== 31){
$menu->addChild(new JMenuNode(JText::_('Home'),'index.php'), true);
$menu->getParent();
$menu->addChild(new JMenuNode(JText::_('Project Payment'), 'index.php?option=com_members'), true);
$menu->getParent();
}
else
{
default code
i.e
The above line should be added before this line
$menu->addChild(new JMenuNode(JText::_('Site')), true);
$menu->addChild(new JMenuNode(JText::_('Control Panel'), 'index.php', 'class:cpanel'));
$menu->addSeparator();
if ($canManageUsers) {
$menu->addChild(new JMenuNode(JText::_('User Manager'), 'index.php?option=com_users&task=view', 'class:user'));
}
$menu->addChild(new JMenuNode(JText::_('Media Manager'), 'index.php?option=com_media', 'class:media'));
$menu->addSeparator();
if ($canConfig) {
$menu->addChild(new JMenuNode(JText::_('Configuration'), 'index.php?option=com_config', 'class:config'));
$menu->addSeparator();
}
$menu->addChild(new JMenuNode(JText::_('Logout'), 'index.php?option=com_login&task=logout', 'class:logout'));
$menu->getParent();
/*
* Menus SubMenu
*/
..................
M.Arjun