phlux0r wrote:
To add the possibility of hiding modules for a certain user group (i.e. Authors, Publishers, Managers etc.) this is what is needed:
1) In your
/modules/[whatever_module].xml you need to add the following somewhere within the section:
Code:
<param name="show_registered" type="radio" default="1" label="Show Menu When Logged In" description="Show the menu also when a registered user is logged in">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
<param name="hide_for_gid" type="list" default="0" label="Hide Module for this User Type Only" description="If above is set to 'No', you can specify which registered user type you want to hide this module for. Default hides the module for any logged in user.">
<option value="0">Default</option>
<option value="18">Registered</option>
<option value="19">Author</option>
<option value="20">Editor</option>
<option value="21">Publisher</option>
<option value="23">Manager</option>
<option value="24">Administrator</option>
<option value="25">Super Administrator</option>
<option value=">19">Author and above</option>
<option value=">20">Editor and above</option>
<option value=">21">Publisher and above</option>
<option value=">23">Manager and above</option>
<option value=">24">Administrator and above</option>
<option value="<19">Author and below</option>
<option value="<20">Editor and below</option>
<option value="<21">Publisher and below</option>
<option value="<23">Manager and below</option>
<option value="<24">Administrator and below</option>
</param>
Hi guys.. I'm new in this Joomla coding thing. I tried to put it in the .xml file of any module (including Joomla's default module), and I can't get the new parameters out in the module setting. I'm using Joomla v1.0.12.
phlux said, "add the following somewhere within the section". What section is this? I tried to edit installed module, and put it between <params> </params> and it didn't work. I tried editting a module and installed it to Joomla, it said "not Joomla xml format".
Can anyone help me pls? I don't know what to do.
