Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Can't get content to display based on...
Page:
1
Can't get content to display based on a user being in a certain group
Can't get content to display based on a user being in a certain group
I have a user group in Joomla called 'Support Team'.
I created the following:
Code:
if ($user->usertype == 'Support Team') {
echo "This is working...";
}
And it won't display this text. I have the module in the correct position as simply using:
Code:
#if ($user->usertype == 'Support Team') {
echo "This is working...";
#}
And it displays!
I also tried:
Code:
if ( MM_USER_REGISTERED ) {
$dnval = "yes!";
};
echo $dnval;
Any help would be appreciated
Administrator has disabled public posting
Re: Can't get content to display based on a user being in a certain group
Hi,
try this way:
if ($core_genius->check("groups = Support Team")) {
echo "This is working...";
}
Please let me know if that doesn't work - it should!
Cheers,
Stephen
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod
- » MetaMod General Support
- » Can't get content to display based on...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5941
- Posts this week:
- 1
- User Info:
- Total Users:
- 7618
- Newest User:
- goure1dhowen
- Members Online:
- 0
- Guests Online:
- 168
- 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