PDA

View Full Version : Include problem.


Mhtml
12-18-2002, 01:42 AM
As a few of you will already know I'm developing my own mini forum app QUICKboard.

Now apparently VBulletin can actually change skins without writing to any files. How?

I can't figure out a way to do it other then have all of the skin variables in a database table which gets loaded everytime a page is loaded and since it is highly skinnable (being able to set dimensions classes) there are a lot of variables and such it will take longer to load the page on a slow server. I THINK!

Currently I have the forum changing skins by saving over a file containing the include. The file is included into the header and the include which is in the included file is loaded.

That include file is the file path of the skin config file for the skin.

Is there a better way of doing this rather than re-writting the Inc_skin_inc.inc file which I include?

Would the database version really be to slow?

raf
12-18-2002, 08:14 AM
maybe i'm completely off, buth, can't you store one value in a session.variable ( + let the include read the value and selcect the stuff (the other include) you need then (based on this value) ?

it means of coarse thatyou need an include for each different skin.

Buth maybey i'm just not making sense.

Famson3
12-18-2002, 10:47 AM
as a suggestion, why not place de include file in de global .asa file? Think dis will be a better option for u as it applies to every session. Or maybe i'm not making sense, or didnt get ur question right.

Mhtml
12-18-2002, 11:38 AM
Problem solved. I'm going completely database dependent.
I didn't want to have any clashes with file writing permissions.
The person would have to actually change code in the config file manually and I didn't want it that way.

By having it completly database dependent I can make it so when they download the application the user can be a total newbie and be able to customize the look because there are no fiel writing permissions to stop me from changing things....
It's all very complex but I have it figured out.,

whammy
12-19-2002, 12:51 AM
I think you have taken the right path, my friend. ;)