News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Create Seemless Skins - Same Forums different themes

Started by rakedrop, November 27, 2005, 05:40:10 PM

Previous topic - Next topic

rakedrop

I want to create a shared forum where the theme is different for each website that uses it.
Its very important that the users can't access other themes.
The content of each forum would be the same (posts going to all forums, shared members etc)

Example of domains
firstwebsite.com
secondwebsite.com
thirdwebsite.com

Its acceptable to me if they all use another domain such as:
globalforumsite.com/forums/firstwebsite/index.php
globalforumsite.com/forums/secondwebsite/index.php
globalforumsite.com/forums/thirdwebsite/index.php

I have limited knowledge of PHP.. but I'm okay at figuring stuff out..
I've played around some and can not accomplish what I am looking for. I always end up with a way for people to get back to the old theme.

Any advice on accomplishing my goal is greatly appreciated.
Thanks.

Grudge

Personally, I would hard code the themes per website into the loadTheme function in Load.php. So you have all the different themes installed, and in that function you do something like:


if (strpos($_SERVER['REQUEST_URI'], 'www.yourfirstsite') !== false)
  $ID_THEME = 3;
else...

I'm only a half geek really...

rakedrop


Sheepy

Add the code in index.php, and extend / change to suit your need.

Elmacik

Quote from: Grudge on November 27, 2005, 06:04:42 PM
Personally, I would hard code the themes per website into the loadTheme function in Load.php. So you have all the different themes installed, and in that function you do something like:


if (strpos($_SERVER['REQUEST_URI'], 'www.yourfirstsite') !== false)
  $ID_THEME = 3;
else...



is !== really right?
Home of Elmacik

Sheepy

#5
Yes.  !== make sure it's really not false instead of not zero (or not null, or not empty string, etc.).

Advertisement: