Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 01:43 am EST

Geeklog Forums

lib-common.php and lib-custom.php


Status: offline

spatz4000

Forum User
Junior
Registered: 07/14/06
Posts: 25
I am in the process of writing a theme switcher, that will when the Admin uses it, switch the theme an anonymous user sees. lib-common contains code for picking and activating a theme. If I write my own custom code in lib-custom.php can I comment out all of the theme related code in lib-common.php?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You could remove the code, but then you'd have to remember to do that after the next Geeklog update, too.

Why not try to make your code compatible with Geeklog's? Set the $_USER['theme'] variable, for example.

bye, Dirk
 Quote

Status: offline

spatz4000

Forum User
Junior
Registered: 07/14/06
Posts: 25
So if I leave what is in the lib-common.php but use ( and extend ) it in lib-custom.php, I should be okay?

Quote by Dirk: You could remove the code, but then you'd have to remember to do that after the next Geeklog update, too.

Why not try to make your code compatible with Geeklog's? Set the $_USER['theme'] variable, for example.

bye, Dirk
 Quote

All times are EST. The time is now 01:43 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content