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.

 

Try to figure out a recipe

Try to figure out a recipe

Hello...

Here is our situation.

We need to show a module

if the user belongs to USER GROUP A &&  if his username CONTAINS the string "demouser". In this case, the module is visible!

To be more clear...

All the members with username like (handsome demouser or demo user 5 or mrdemouser) or any other username that contains the string "demouser" and belong to USER GROUP A, to be able to see the module.

Is it possible with Metamod?

Thank you in advance!

liaskas
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Try to figure out a recipe

Hi,

yes, you can do this with MetaMod.

if ($core_genius->check("groups = User Group A") and $core_genius->check("userloginname contains demouser")) return 123;
// Replace 123 with the module id of the module you want to display.
// Also, the "userloginname" above obviously checks for login name.
// If it's the full name you want to check, change that to "userfullname".

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
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10093
Newest User:
lamanaudio
Members Online:
0
Guests Online:
151

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