I coded around a bit and made a little mod
make a file called "style.php" put the code below in it and put it on your forum root.
<?php
If (isset($_POST['style_sent']) && $_POST['style_sent'] == 1)
{
$pun_root = './';
include($pun_root.'include/common.php');
$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];
echo '<link rel="stylesheet" type="text/css" href="'.$pun_root.'style/'.$style.'.css">';
$id = $cur_user['id'];
$db->query('UPDATE '.$db->prefix.'users SET style=\''.addslashes($_POST['style']).'\' WHERE id='.$id) or error('Unable to update style', __FILE__, __LINE__, $db->error());
redirect($pun_root.'hem.php', 'Sida redigerad, vänta...');
}
?>
<tr>
<td><br><b>Style</b>
<form method="post" action="<?php echo $pun_root; ?>style.php">
<input type="hidden" name="style_sent" value="1">
<select name="style">
<?php
$d = dir($pun_root.'style');
while (($entry = $d->read()) !== false)
{
if (substr($entry, strlen($entry)-4) == '.css')
$styles[] = substr($entry, 0, strlen($entry)-4);
}
$d->close();
while (list(, $temp) = @each($styles))
{
if ($user['style'] == $temp)
echo "\t\t\t\t\t".'<option value="'.$temp.'" selected>'.str_replace('_', ' ', $temp).'</option>'."\n";
else
echo "\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n";
}
?>
</select>  <input type="submit" value="Change">
</form>
</td>
</tr>
Then include it wherever you like on your forum using:
<?php include($pun_root.'style.php'); ?>
Most of the code is "borrowed" from profile.php...
Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation - Oscar Wilde