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.

 

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

Edited By: Aslan
31-Aug-10 02:50:20

Aslan
Beginner Modder
ranks
useravatar
Offline
14 Posts
User info in posts
Administrator has disabled public posting

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;

Edited By: metamodguy
18-Aug-10 00:36:23

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

Re: jomsocial need a prescription for groups

thanks for this solution). there were some issues are set forth in a separate topic

Aslan
Beginner Modder
ranks
useravatar
Offline
14 Posts
User info in posts
Administrator has disabled public posting

Re: jomsocial need a prescription for groups

Yes - see http://www.metamodpro.com/forums/topic?id=407 for more details.

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

Re: jomsocial need a prescription for groups

wrong

Aslan
Beginner Modder
ranks
useravatar
Offline
14 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1675
Total Polls:
6
Total Posts:
5917
Posts this week:
6
User Info:
 
Total Users:
11570
Newest User:
moises1247
Members Online:
1
Guests Online:
136

Online: 
moises1247

Forum Legend:

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