Hej
I was wondering if it was possible to change my board logo when changing stylesheet. I want to use another logo when using dark stylesheets as ubbthreads_dark and DarkRounded. Here's my little modification done in /includes/header.php
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top:8px;margin-bottom:0px">
<tr>
<td>
<?php
$stylesheet = "{$config['BASE_URL']}/styles/{$style_array['css']}";
$DarkRounded = "{$config['BASE_URL']}/styles/DarkRounded_12345678.css";
$ubbthreads_dark = "{$config['BASE_URL']}/styles/ubbthreads_dark_12345678.css";
if(($stylesheet == $DarkRounded) || ($stylesheet == $ubbthreads_dark)) {
echo "<img src="/images/lightlogo.gif" width="280px" height="190px" alt="lightlogo" onclick="location.href='/yourforum/ubbthreads.php'" />";
}
else {
echo "<img src="/images/logo.gif" width="280px" height="190px" alt="logo" onclick="location.href='/yourforum/ubbthreads.php'" />";
}
?>
the details about your stylesheets can be viewed by the 'view source' in your browser.
If you editing/updating your styles, the stylesheets timestamp are changed and you have to add the new timestamp. If you dont want to edit header.php when edit/update styles, you can remove the timestamp from the stylesheets in /admin/doupdatestyle.php:
edit:
$now = time();
$css_name = "{$_POST['style_name']}_{$now}.css";
to:
$css_name = "{$_POST['style_name']}.css";
Be aware that this can cause some mess, if using stylesheets with the same name!