Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Chameleon with GMAccess on Joomla 1.5
Chameleon with GMAccess on Joomla 1.5
Chameleon with GMAccess on Joomla 1.5
Hi,
First of all, please excuse my english
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
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
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
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Chameleon with GMAccess on Joomla 1.5
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7633
- Newest User:
- mingle7855
- Members Online:
- 0
- Guests Online:
- 120
- 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