Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Metamod -Exclude Specific User Groups
Metamod -Exclude Specific User Groups
Metamod -Exclude Specific User Groups
Hello !
I have certain Joomla user groups as child to registered. And these certain groups have access to certain content. (ACL)
What I want to do is, display a message / module for plain registered user with no sub-user group - saying she has no subscription yet.
I want to show it plain registered / logged - in user, but hide it from user groups.
Will it be possible with php ?
Thanks a lot.
Re: Metamod -Exclude Specific User Groups
Hi Melike,
yes, this is easy to do. Try this:
if ($core_genius->check("all of groupids = any of 1, 2")) return XXX;
// replace XXX with module id of module to show for Public/Registered users only.
// If the user is a member of any other group, the rule will fail, and no module
// will display.
// 1 is public, 2 is registered.
Note: J2.5 and J3.0 only. Won't work on J1.5 just in case you are using that.
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Metamod -Exclude Specific User Groups
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 3
- User Info:
- Total Users:
- 8012
- Newest User:
- grant1ab
- Members Online:
- 0
- Guests Online:
- 137
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked