IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Shifting From 1 Skin To Another?

, how does it work?


leiaah
no avatar
Super Member
*********
Group: Members
Posts: 436
Joined: 21-January 05
From: Koronadal City, Philippines
Member No.: 3,358



Post #1 post Apr 19 2005, 05:14 AM
I was wondering how you can change the appearance of your site. Some sites I've visited allow visitors to select a different theme that they like. Sometimes the picture in the banner changes and the color of the text. I noticed that the page has the same filename and doesn't refresh or direct you to a page with a different name and theme.

Was this made with a script? I'm really interested in doing something like this for my site.

If you don't understand me, you can go visit this site. Thes skins menu is at the right side (below the search, above the polls)
http://www.mugglenet.com
Go to the top of the page
+Quote Post
whyme
no avatar
Privileged Member
*********
Group: Members
Posts: 661
Joined: 10-January 05
Member No.: 3,189



Post #2 post Apr 19 2005, 06:31 AM
Actaully, it is only CSS modification, here's an example of a site that does that.

http://mikeindustries.com/blog/

Although mugglenet uses PHP to create this effect, it is not nessasary to use it.

What it is is that the webmaster makes two or more pages, each with a different CSS coding i.e.:

index.html ->style1.css
index2.html -> style2.css

You link to each index page, and the user can select what theme they want.

Then if you're really keen, you can add a bit of PHP magic to make things a bit more easier. I've got a script that does that.

This will be very confusing if you don't know CSS, so I'll help you create a CSS layout and PHP coding for you if you want. PM me for more details.

Hope this helps,

-whyme
Go to the top of the page
+Quote Post
odomike
no avatar
Core2Q-QX6800
***********
Group: [HOSTED]
Posts: 1,093
Joined: 3-August 04
From: Nigeria
Member No.: 569



Post #3 post Apr 19 2005, 02:49 PM
Hmmm...not bad I must say. But that sorta thing isnt appropriate for my kinda site. You can have alook at my site here www.odowebdesigns.uni.cc. My site is more or less a professional website solely meant for the purpose of business and webmaster help and adding this kinda thing in there will surely make it look childish and I dont want it to be that way.

Not bad still. I think it will look much better on gaming sites,
Go to the top of the page
+Quote Post
bjrn
no avatar
Super Member
*********
Group: Members
Posts: 378
Joined: 8-January 05
Member No.: 3,174



Post #4 post Apr 22 2005, 05:07 PM
QUOTE(whyme @ Apr 19 2005, 07:31 AM)
Actaully, it is only CSS modification, here's an example of a site that does that.

http://mikeindustries.com/blog/

Although mugglenet uses PHP to create this effect, it is not nessasary to use it.

What it is is that the webmaster makes two or more pages, each with a different CSS coding i.e.:

index.html ->style1.css
index2.html -> style2.css

Yeah, what Mugglenet does is use PHP so they don't have to make index1.html->css1.css, index2.html->css2.css and so on, but instead change the HTML imporsting the stylesheet to get the chosen stylesheet.

I've done the same on my site [url=http://bjrn.trap17.com/] mainly to see what would be a good way to make it. And I thought it was pretty fun to do. Besides it teaches you that using CSS for positioning instead of tables is very handy (since you can change the whole look of the site with one stylesheet, instead of having to change the HTML itself). smile.gif
Go to the top of the page
+Quote Post
spacemonkey
no avatar
Member [Level 2]
*****
Group: Members
Posts: 76
Joined: 2-March 05
From: USA
Member No.: 4,110



Post #5 post May 4 2005, 02:43 AM
You don't need PHP to avoid making multiple HTML documents. Javascript and CSS are all that is required.

Use a Javascript and a form on the site to let the user select a style and process a correct stylesheet based on the user's selection. Quite simple, really. You can even create a cookie with Javascript that will remember the user's choice for a specified amount of time.

Very simple, yet effective mechanism for any website.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   1 jacob 571 19th June 2004 - 09:14 AM
Last post by: OpaQue
No New Posts   13 odomike 1,039 29th September 2004 - 01:11 AM
Last post by: odomike
No New Posts 13 Kagome Higurashi 1,043 19th October 2008 - 05:36 AM
Last post by: iGuest-Jamie
No New Posts   4 zip_mc 340 21st October 2004 - 02:18 PM
Last post by: zip_mc
No new 32 googlue 1,793 7th November 2004 - 03:36 PM
Last post by: jjhou
No New Posts 3 Moneymaker 347 9th November 2004 - 12:00 AM
Last post by: Triple X
No New Posts 4 spawn_syxx9 506 21st December 2004 - 11:56 PM
Last post by: Mr. Cheeky
No New Posts   2 gta 302 13th November 2004 - 03:53 PM
Last post by: Bash
No New Posts   4 Becca 2,783 19th June 2008 - 07:45 PM
Last post by: ckcomputerstallahassee
No New Posts   3 bishoujo 277 27th September 2008 - 03:05 PM
Last post by: Ethanw89
No New Posts   9 odomike 499 22nd December 2004 - 11:11 PM
Last post by: cragllo
No New Posts 7 farsiscript 493 14th June 2006 - 10:45 AM
Last post by: OpaQue
No New Posts   10 itsmyard 2,036 25th June 2007 - 02:18 PM
Last post by: zyf
No New Posts 4 Anita 448 11th February 2005 - 06:57 PM
Last post by: grrlfromoz
No new   33 arcanistherogue 6,415 1st October 2006 - 08:46 AM
Last post by: hts


 



RSS Open Discussion Time is now: 8th January 2009 - 09:51 AM