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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4378
Newest User:
miller2341
Members Online:
3
Guests Online:
158


Forum Legend:

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