1
SpitBull
How to store user specific theme selections
  • 2004/10/19 8:53

  • SpitBull

  • Just popping in

  • Posts: 2

  • Since: 2003/8/17


After installing XOOPS v2.0.7.3 recently on a LAMP system I recognized that users specific theme selections won't be saved at all. First I thought that this behaviour might be related to cookie or register_globals issues but couldn't find a problem with that.

So I finally hacked edituser.php and added the following line (after line 114):

:
$edituser->setVar('user_intrest', $user_intrest);
$edituser->setVar('user_mailok', $user_mailok);
// hack start
$edituser->setVar('theme', $xoopsConfig['theme_set']);
// end of hack
if ( $usecookie ) {
setcookie($xoopsConfig['usercookie'],
$xoopsUser->getVar('uname'),time()+ 31536000);
:

Whenever now a user saves his/her account the currently selected theme will be stored as well.

Question is: I don't like hacking in other folks sources - does anybody know a better solution?

2
Bassman
Re:How to store user specific theme selections
  • 2004/10/19 9:38

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Look in the modules section for XT Temas - it does just what you want.

3
SpitBull
Re:How to store user specific theme selections
  • 2004/10/21 5:29

  • SpitBull

  • Just popping in

  • Posts: 2

  • Since: 2003/8/17


Great tip, man! Thanx.

Login

Who's Online

266 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 266


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