Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Try to figure out a recipe
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!
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".
- Index
- » MetaMod
- » MetaMod General Support
- » Try to figure out a recipe
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8026
- Newest User:
- rivas48750
- Members Online:
- 1
- Guests Online:
- 164
- Online:
- rivas48750
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked