UBB.Dev
I have the following snippet of code I used at the top of a few pages, and this is no longer working. Do I need to modify it with the new U_Number changes?

<?
require ("main.inc.php");
$userob = new user;
$user = $userob -> authenticate("U_StyleSheet");
$name = $user['U_Username'];

if (!$fstyle) {
$fstyle = $user['U_StyleSheet'];
if ( (!$fstyle) || ($fstyle == "usedefault") ) {
$fstyle = $theme['stylesheet'];
}
}
$stylesheet = "{$config['styledir']}/$fstyle.css";
?>
Looks like that should work.
$fstyle isn't set in the code you posted. You will need something like this:

<?
require ("main.inc.php");
$userob = new user;
$user = $userob -> authenticate(); // stylesheets are added to every auth call automatically
$fstyle = $user['U_StyleSheet'];

if ( empty($fstyle) || $fstyle == "usedefault" ) {
$fstyle = $theme['stylesheet'];
}
$stylesheet = "{$config['styledir']}/$fstyle.css";
?>
Ahh... a new member of the Eagle Eye club. Must have to be named "Dave" to join that club.
LoL that or the fact I'm wide awake.. LoL
© UBB.Developers