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.

 

Chameleon with GMAccess on Joomla 1.5

Chameleon with GMAccess on Joomla 1.5

Hi,

First of all, please excuse my english wink

I have a joomla 1.5.23 website for my company with the latest gmaccess component. GMAccess is used to distinguish 2 different parts of the company, using the same intranet (one DB) but with different menus.
I have also bought Chameleon pro and i'd like to use them together smile

I have already made a search about it and found this :
http://www.metamodpro.com/forums/topic?id=189

Let me explain what i would do :

In GMaccess, I have 2 groups : UsersGroup1 and UsersGroup2, both connecting to my site. As the two groups are on different places, i'd like to separate them using 2 different templates (respectively beez and rhuk_milkyway) with two separated menus (declared in gmaccess).

As I'm a poor php developer, have you an idea about how to process ?

Thanks in advance,

Best regards and congratulations with Chameleon, it's really useful for me smile

heinrahll
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Chameleon with GMAccess on Joomla 1.5

Ok, I've just had a look at gmaccess. It's kinda scary the way it patches the system.... ugh.

Anyway, I *think* this might work:

$gmid = fonctionGmaccess::myaccess($user->id);
$gmid = explode(",", $gmid);
if (in_array(XXX, $gmid)) return "beez";
if (in_array(YYY, $gmid)) return "milkyway";

// replace XXX with the group id of the 1st group, and YYY with the group id of the 2nd group.


Hope that might help...
Stephen

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

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
141

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