Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
FAQ: Different Styles for Different Forums
Edit: This method was outdated after the addition of body IDs. Check out a better way to do this at Runboard Extra.
After coming across Alpha Centauri's hack, I immediately came up with the following idea of using remote style sheets to skin each forum differently.
For this to work, you must have your own website that allows you to remotely link files from their server.
[Custom Language Set]
location_forumlink:
<a href="%1">%2</a><br /><link rel="stylesheet" href="http://sample.com/%2.css" />
Here you would simply name various css files the same as the forums, upload them to your website, and change sample.com/ to the correct path. The %2 in the above location_forumlink string will take on the name of each forum, causing it to point to it's corresponding style sheet.
I tried this on a test board, and it worked beautifully in IE, FF, and NS, even with a space in the css filename. I don't have Opera to test it in, so I can't guarantee that it'll work in that browser. If someone can test it in Opera and let me know if it works, please do!
Edited to add link because I just ran across Alpha's post again.
Last revised by Lesigner Girl, 9/2/2010, 2:27 pm
|
1/23/2006, 2:48 am
|
Link to this post
PM Lesigner Girl
Read Blog
|
The Mooseman
Citizen
Registered: 03-2005
Province: Looking for my brain...
Posts: 592
Karma: 8 (+8/-0)
|
ReplyQuote
|
|
Re: Different Styles for Different Forums
Neat, but if the server goes down, so does your layout
--- ~ Quickly, I must hurry, for there go my people and I am their leader ~
|
5/18/2006, 8:22 am
|
Link to this post
PM The Mooseman
|
Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: Different Styles for Different Forums
This is true, which is another reason to never settle for less than a 99.9% uptime guarantee with your web host.
|
5/18/2006, 8:42 am
|
Link to this post
PM Lesigner Girl
Read Blog
|
The Mooseman
Citizen
Registered: 03-2005
Province: Looking for my brain...
Posts: 592
Karma: 8 (+8/-0)
|
ReplyQuote
|
|
Re: Different Styles for Different Forums
Just remember to pay your electrical bills
--- ~ Quickly, I must hurry, for there go my people and I am their leader ~
|
5/18/2006, 9:07 am
|
Link to this post
PM The Mooseman
|
Lesigner Girl
Minerva
Head of Runboard staff
Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
|
ReplyQuote
|
|
Re: Different Styles for Different Forums
My electric bill doesn't affect my hosting.
|
5/19/2006, 3:01 am
|
Link to this post
PM Lesigner Girl
Read Blog
|