If you are modifying the edit form for Joomla 2.5.x or other form that requires a need to test if this is a Super Administrator just use the following. Handy if you need to block out certain functionality for different user groups but you still need full access to those options as an administrator.
Joomla 1.5.x world:
PHP Code:
$user =& JFactory::getUser(); if($user->usertype == "Super Administrator" || $user->usertype == "Administrator") { echo 'You are an Administrator'; } else { echo 'You are just an ordinary user'; }
Joomla 2.5.x world (this will only check for Super Admins):
PHP Code:
$user = JFactory::getUser(); $isAdmin = $user->get('isRoot'); if ($isAdmin) { // code here }
We really shouldn't do it that way though, a check for authorization is better because we can't really determine if a user has that access anyway, so do this:
PHP Code:
$user = JFactory::getUser(); if($user->authorise('core.edit', 'com_contact')) { echo "Yes, I can edit contacts!"; } else { echo "No, I can't edit contacts";< }
You should use an RSS module in relevant position if you want to render a third party feed, or grab one from a different part of the same website in question.
To show a relevant page feed (auto-feed articles on your own site), do this:
This is tested in Joomla 2.5.x only, it may work in J3.x.x
You need to edit the file at root/language/en-GB/en-GB.localise.php and focus on line 64(ish).
This quick article tells you how to make highlights to unpublished article content items when using a category blog layout. It helps a user/editor/publisher/you identify easily with a visual aid which articles are not published. We are only covering Joomla 2.5.x.
This brief article will tell you how to make highlights on registered access only article content similar to the default highlighting found on unpublished articles when a user is logged in. It covers Joomla 2.5.x.
If you are modifying the edit form for Joomla 2.5.x or other form that requires a need to test if this is a Super Administrator just use the following. Handy if you need to block out certain functionality for different user groups but you still need full access to those options as an administrator.

EasyTransform is an outsourcing service that will take your PDF forms to dynamic website forms with a view to meet the requirements of the Disability Discrimination Act (opens in new window). Put your forms in our capable hands. Onsite or remote demonstration of a form that you nominate is available for a setup fee. Read more...