Welcome, Guest. Please Login or Register.
May 07, 2025, 05:44:53 PM
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  |  Mod Ideas and Creation  |  Different skins for different forums!!! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Different skins for different forums!!!  (Read 276 times)
JMusic
Noobie
*
Posts: 15


Go to BreakthruNetwork.com

Different skins for different forums!!!
« on: October 12, 2002, 03:52:03 AM »
Reply with quote

If there was a hack that allowed the admin to change the skin for each forum (instead of just one skin for the entire board) it would make yabbse the best forum software ever.  ;D ;D ;D
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Different skins for different forums!!!
« Reply #1 on: October 12, 2002, 04:04:16 AM »
Reply with quote

You could do this if you had different stylesheets. You would need to add another field to the yabbse_members table to store the users preference.
Logged
JMusic
Noobie
*
Posts: 15


Go to BreakthruNetwork.com

Re:Different skins for different forums!!!
« Reply #2 on: October 12, 2002, 05:54:07 AM »
Reply with quote

But I wouldn't want the user to be able to choose a theme.

I'd want it to be like:

Forum 1 - (has a blue skin)
Forum 2 - (has a red skin)
Forum 3 - (has a um... white skin? I dunno)

But you get the idea. Any way to do that?
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Different skins for different forums!!!
« Reply #3 on: October 12, 2002, 07:02:46 AM »
Reply with quote

Sure just add a check in template.php to see what page you are loading and based on that load a specific .css file.
Logged
JMusic
Noobie
*
Posts: 15


Go to BreakthruNetwork.com

Re:Different skins for different forums!!!
« Reply #4 on: October 12, 2002, 07:39:26 AM »
Reply with quote

That sound so easy... but unfortunately, the only command I understand in PHP is the include command!!  :D

Any chance someone could actually make this mod?  ;D ;D ;D
Logged
JMusic
Noobie
*
Posts: 15


Go to BreakthruNetwork.com

Re:Different skins for different forums!!!
« Reply #5 on: October 12, 2002, 06:20:18 PM »
Reply with quote

Hmm in my complete boardom at 4am today I decided to play around with the template and try to see if I could figure this out. Is that what you would have done?

<link rel='stylesheet' href='/community_images/sheet<?php echo $_GET["board"]?>.css' type='text/css'>
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Different skins for different forums!!!
« Reply #6 on: October 12, 2002, 06:59:30 PM »
Reply with quote

This might work, put it between <head> of course:

<?
global $board;
print " <link rel=\"stylesheet\" href=\"/community_images/sheet$board.css\" type=\"text/css\">\n";
?>

Then you would just need a stylesheet for every board#.
« Last Edit: October 12, 2002, 06:59:49 PM by Gobalopper » Logged
JMusic
Noobie
*
Posts: 15


Go to BreakthruNetwork.com

Re:Different skins for different forums!!!
« Reply #7 on: October 16, 2002, 12:44:40 AM »
Reply with quote

Yeah cool. That worked better than mine ahaha. Thanks.

Peace,
J
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Different skins for different forums!!! « 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.052 seconds with 21 queries.