advertisement |
Hide menu items:
Many a time might come an occasion where you want to hide specific parts mainly certain menus on your website from a user after he has logged on to your Joomla website. Normally this cannot be done with the standard Joomla functionality, but you can work out a simple workaround to allow you to cheat the system into hiding the menu item after the user has logged in. Place the following code in your template,
<?php $user =&JFactory::getUser();if(!$user->guest)?><style type="text/css">.item10 {display:none;}</style><?php endif;?>
Many a time might come an occasion where you want to hide specific parts mainly certain menus on your website from a user after he has logged on to your Joomla website. Normally this cannot be done with the standard Joomla functionality, but you can work out a simple workaround to allow you to cheat the system into hiding the menu item after the user has logged in. Place the following code in your template,
<?php $user =&JFactory::getUser();if(!$user->guest)?><style type="text/css">.item10 {display:none;}</style><?php endif;?>
Legacy mode:
Although not advised, sometimes you might want to be able to use certain templates, components or modules from Joomla 1.0 even after upgrading to Joomla 1.5 either due to unavailability of the component on the newer version or because you have been using the legacy system and switching to a newer version isn't easy. This option can be explored by enabling the legacy mode in Joomla 1.5. All you need to do is switch on the legacy system plugin. Go to Extensions -> Plugin Manager and find the existing plugin named System - Legacy, and then press the red cross to enable this plugin. Once enabled, you can use any Joomla 1.0 template or component on your Joomla 1.5 website. But note that it is always recommended that you use only Joomla 1.5 components and avoid using the Legacy plugin.