Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » jomsocial need a prescription for groups
jomsocial need a prescription for groups
jomsocial need a prescription for groups
Hi Stephen, thanks for the great module. happy to buy a pro version as I will make a paypal
all night tormented can not create a recipe.
principle of such .- for jomsocial groups need to display module
in the category group and the transition to a group of this category then it is also the same module. example of the links
(Category of test /Return 101;/) option=com_community&view=groups&categoryid=4&Itemid=61
(The group itself from the category test /Return 101;/) option=com_community&view=groups&task=viewgroup&groupid=1&Itemid=61
in this example, the module is displayed only in the category of the selected group, but when you click on the group itself disappears
$category_id = null;
if ( $option == "com_community" ) {
if ( $view == "groups") {
$categoryId = JRequest::getInt( 'categoryid' , 0 );
}
}
if ( $categoryId == '4' ) return 60;
if ( $categoryId == '1' ) return 63;
thanks for any solution
p.s. I use a translator
31-Aug-10 03:50:20
Re: jomsocial need a prescription for groups
Hi Aslan,
I don't think this is going to be too hard. You have a good rule there already, for detecting the category of the group when you are on a group category page. Now we just have to detect the category of a group when we are on a *group* page.
$categoryid = "";
if ($option == "com_community" and $view == "groups") {
$categoryid = JRequest::getInt( 'categoryid' , 0 );
if ($categoryid == 0 or JRequest::getVar("task") == "viewgroup" ) {
$groupid = JRequest::getInt("groupid", 0);
$query = "select categoryid from #__community_groups where id = " . $groupid;
$db->setQuery( $query );
$categoryid = $db->loadResult();
}
}
if ( $categoryid == 4 ) return 60;
if ( $categoryid == 1 ) return 63;
18-Aug-10 01:36:23
Re: jomsocial need a prescription for groups
Yes - see http://www.metamodpro.com/forums/topic?id=407 for more details.
- Index
- » MetaMod
- » MetaMod General Support
- » jomsocial need a prescription for groups
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 105
- 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