Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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.

melike
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5193
Newest User:
david2398
Members Online:
1
Guests Online:
121

Online: 
Technichem

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked