Jump to content


How to let visitors choose the theme they want to see.


2 replies to this topic

#1 MumtazG38

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 02 February 2008 - 11:30 AM

I want to be able to not only change my website theme as I please, but I also want to make it possible for the visitors to my site to choose how and in whice theme or design version they would like to veiw the website.

I have a basic html code and have designed several themes. I have an index.html file and a file named fervore.html ( the 2nd template/theme). I have made a clickable menu for people to choose which theme they would like to view but I do not know how to achieve this. As, index.html is the default webpage always....how do I maintain the same content but with different looks. I know a "little" php includes....but thats certainly not enough.

I want to make it possible to have interchangeable themes that remain as the visitor selected, on each page they view untill they come back to my site at a later time, or decide to change the theme. Sort of like a forum theme, how you can select the one you like and veiw the forum in that way, keeping the same content.

EXAMPLE: Aethereality.Net. Look under Menu>Themes.....it gives you the option to choose which theme you would like to view the site in. I would like to create something like that, but a bit more versatile.

I would be very grateful for any help...thanx in advance.

Edited by MumtazG38, 03 February 2008 - 12:00 PM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 04 February 2008 - 07:24 PM

It's really at lot easier than it sounds to do this, but what you specifically want requires a good understanding of PHP.

I'm of course assuming you would be interested in something like:
http://www.spoono.com/

Of which, they have a "similar" tutorial at:
http://www.spoono.com/javascript/tutorials...orial.php?id=18

#3 communiti.ch

    Young Padawan

  • Members
  • Pip
  • 52 posts

Posted 06 February 2008 - 02:07 PM

That website(Aethereality.Net) has a complete template engine.
To make your own template engine could take a lot of time, and a lot of understanding of php.
I suggest you to make different .css to change the look of the website, and not the structure.
It is really easy. You just need to learn how to create cookies ^^





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users