Topic: individual forums have their own skins?
is there a plug-in or mod for this?
if not, that'd be quite cool
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → individual forums have their own skins?
is there a plug-in or mod for this?
if not, that'd be quite cool
Nope. Also, that would be a hellish waste of bandwidth.
Edit: Btw, this is the wrong section. A mod isn't a plugin.
Nope. Also, that would be a hellish waste of bandwidth.
Edit: Btw, this is the wrong section. A mod isn't a plugin.
its not a waste of bandwidth on vbulletin though?
vBulletin by itself is a waste of bandwidth.
vBulletin by itself is a waste of bandwidth.
mkay well thank you
but still, i'm not understanding how if 1 forum had different colors thats a waste of bandwidth?
im sure someone else out there would want this too
Now, to answer the question:
In header.php, change
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
to
<link rel="stylesheet" type="text/css" href="style/<?php echo (isset($forum_style) ? $forum_style : $pun_user['style']).'.css' ?>" />
And then on your pages you can define, before loading header.php, the style like so:
$forum_style = 'Oxygen';
For example, in viewforum.php you could do the following:
find
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
add after
switch($id)
{
case 1:
$forum_style = 'Oxygen';
break;
case 6:
$forum_style = 'Cobalt';
break;
}
This would use the Oxygen style for the forum with ID 1 and the Cobalt style for the forum with iD 6.
thank you
hmm...very nice idea. I think I shall try this.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → individual forums have their own skins?
Powered by PunBB, supported by Informer Technologies, Inc.