11
kris_fr
Re: Changing theme through modules settings
  • 2010/12/29 11:59

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


Why not simply put the style sheet in http://yoursite/themename/modules/yourmodule/ ?

12
kerkyra
Re: Changing theme through modules settings
  • 2010/12/29 12:32

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i dont want to put the stylesheet in the module template overiding folder cause its a completely different theme.

In order for the stylesheet to work both themes should have same structure, shouldnt they? Am I missing something?

The code that i quoted actually works it changes the session variable. I can see it works, because if i log out, the logout screen is the one from the theme that i want to actually load.

so i need something the will make it happen after the core has loaded the selected xoops theme.

is this information also stored in a cookie or something?

whttp://www.guidemap.gr - Beta is out...

13
Tarik
Re: Changing theme through modules settings
  • 2010/12/29 13:20

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


wouldn't this work
Themes : Create Your Own Multi-Themed Xoops Site
with creating a new smarty variable that hold the theme from the choice that will be the argument

just a though

14
kerkyra
Re: Changing theme through modules settings
  • 2010/12/29 14:13

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


doesnt work cause the theme variables xoImgUrl, theme name etc of the two themes look in the xoTheme object which gives the folder name of the pseudo theme set in the xoops preferences.

I also tried deface which does what i actually want to BUT

it will only show the theme set in the defacer module no matter if a user selects the second one or not :/ :(
whttp://www.guidemap.gr - Beta is out...

Login

Who's Online

337 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 337


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits