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.

 

Change template depending on session theme.

Change template depending on session theme.

Hi I have two theme's

One is template=themetextonly and one is a templete=graphicstheme.

I use the following rules

1. if (JRequest::getVar("template") == "themetextonly") return true;
  Set Session A

2. Grab Session A and apply themetextonly

This works great until i want to swap back to the graphics theme using a link index.php?template=graphicstheme

I tried adding the rules

1. if (JRequest::getVar("template") == "graphicstheme") return true;
  Set Session A

2. Grab Session A and apply graphicstheme

I can't seem to get the theme to swap and save until it gets changed

Any help would be greatly appreciated

annamations
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Change template depending on session theme.

Hi annamations,

You're on the right track. I'd do it this way:

1 - if (JRequest::getVar("template") == "themetextonly") return true;
Delete session A-E
Set session A
Continue

2 - if (JRequest::getVar("template") == "graphicstheme") return true;
Delete session A-E
Set session B
Continue

3 - detect session A
Set themetextonly template
quit rulechain

4 - detect session B
Set graphicstheme template
quit rulechain


Hope that helps,
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
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Change template depending on session theme.

Howdy just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Opera. I'm not sure if this is a format issue or something to do with web browser compatibility but I figured I'd post to let you know. The design look great though! Hope you get the problem fixed soon. Cheers

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

Board Info

Board Stats:
 
Total Topics:
1697
Total Polls:
6
Total Posts:
5941
Total Posts Today:
1
User Info:
 
Total Users:
5420
Newest User:
bandtfl7
Members Online:
0
Guests Online:
148

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