Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 07:00 am EST
Geeklog Forums
Different Header, or different theme per topic
Dirk
There already exists a feature request for this, but in the meantime, here is an idea (untested!) for a hack to accomplish this:
In lib-common.php in function COM_siteHeader, the URL for the stylesheet to use is set like this:
$header->set_var('css_url', $_CONF['layout_url'] . '/style.css');
You could change this to switch stylesheets based on the current topic like this:
if (!empty ($topic)) {
$header->set_var('css_url', $_CONF['layout_url'] . '/' . $topic . '.css');
} else {
$header->set_var('css_url', $_CONF['layout_url'] . '/style.css');
}
You would then need one stylesheet per topic that has the same name as the topic ID you gave your topics in the Admin topic editor.
Hope that helps (and works ...)
bye, Dirk
ironfeather
------
my geeklog discussion is at:
http://ironfeather.com/cgi-bin/bbs/ik...ct=SF;f=20
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content