Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Show module when a member of a...
Page:
1
Show module when a member of a jomssocial Group
Administrator has disabled public posting
Re: Show module when a member of a jomssocial Group
After some messing around i have finally been able to make this work:
Code:
$userid = $user->id;
$query = "select * from #__community_groups_members where memberid = '$userid';";
$db->setQuery( $query );
$row = $db->loadObject();
$group = $row->groupid;
$member = $row->memberid;
$approv = $row->approved;
if ( $member > 0 ) {
if ( $group == 3 && $approv == 1 ) return 59;
}
This will check the database for JomSocial and if a joomla user id is in the group you want to to show a module too, it will.
Administrator has disabled public posting
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod
- » MetaMod General Support
- » Show module when a member of a...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Posts this week:
- 2
- User Info:
- Total Users:
- 7642
- Newest User:
- mary26
- Members Online:
- 0
- Guests Online:
- 156
- 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