Welcome, Guest. Please Login or Register.
May 17, 2024, 03:48:07 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  Varying Css sheets « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Varying Css sheets  (Read 1951 times)
ping
Noobie
*
Posts: 6


WWW
Varying Css sheets
« on: September 10, 2003, 11:21:32 AM »
Reply with quote

I think I figured out a possible way to make the different boards have different layouts. Because the url becomes blah.blah.blah/index.php?board=1, is there not a way to then say if board=1, use one.css, and if board=2, use two.css, etc? This would rock if it's possible! Any thoughts?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Varying Css sheets
« Reply #1 on: September 11, 2003, 03:25:24 PM »
Reply with quote

you can edit template.php like this:<?php
global $board;
if (
$board == || $board == 2)
    echo 
'  <link rel="stylesheet" type="text/css" href="style1.css" />';
else if (
$board == 3)
    echo 
'  <link rel="stylesheet" type="text/css" href="style2.css" />';
else
    echo 
'  <link rel="stylesheet" type="text/css" href="style3.css" />';
?>
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
ping
Noobie
*
Posts: 6


WWW
Re:Varying Css sheets
« Reply #2 on: September 11, 2003, 04:36:26 PM »
Reply with quote

That's about what I did. Go me! *flexes fledgling PHP muscles* Now I just have to decide what colors I want. *does backflips*
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Varying Css sheets « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.011 seconds with 16 queries.