Many themes in a website

A

Anonymous

Guest
Hi There!

After the visit to many websites, I wonder how to make a website has got many themes.
I mean I can change the look of my website with different themes.

So Are there any techniques to do it? I don't know how to do it by myself.

Hope all of you can solve this problem for me.
Thanks in advance,

Makara Kao
 
Hi Makara Kao,

I have heared about it but never got the chance to work on it. I think this can be done easily using Object oriented programming.
 
This is made available after using or developing your own templating engine. That way you are able to change themes by simply changing one of the argument for one user or several users.

I made my own, and believe, easy to use engine that has such a feature.
There are even some good articles about how to make one at devshed.com

php-vikas is right: you need to know OOP to be able to build such an engine.
Its pretty basic but still requires some brain and knowledge
 
Thank all of you for the reply.

If you know, could you give the url of that article at devshed?
I have searched it, but can't find the article I want.

Thanks in advance

Makara Kao
 
Thank all of you for the reply.

If you know, could you give the url of that article at devshed?
I have searched it, but can't find the article I want.

Thanks in advance

Makara Kao
 
if you are good at CSS, then make your website just with DIVS and change the CSS... and see the wonderful effect..
 
I also need to make site like different themes. Please provide some good links of articles.
 
A template engine is important, mainly, by separating the code from the interface to easily modify/upgrade/change the website.
Is a very good solution, however i recomend the CSS/JS technic for this case.

Here you have a great tutorial on how to make/use different themes/layouts using just CSS and JavaScript.
Alternative Style: Working With Alternate Style Sheets
 
i have one more solution, and here is it:

1- Design your page simply.
2- Add the keyword "class" in ech tag you could chage its color.
3- Write multi css pages for this page, each css should have a different style(i mean font color, links color, tables backgrounds colors, and so on..).
4- make a dropdown to allow user chage the loaded css file.
5- one more prof. trick is to make a database table which contains the user name and his last selected style to loaded it automatically next visit.
that's all
 
Or do it the "your way" way. ;0)

I mean you can have formatting options for things like border for data tables, font style, color themes, header graphics, navigation themes, and have it where you can match each option in any combination of other combinations. True overall CSS format would be the same but with the right ammount of options for enough areas in the webpage could make 1000's of different ways to look at it.
 
Back
Top