|
|
Joined: Mar 2000
Posts: 528
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 528 |
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"; ?>
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Looks like that should work.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
$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"; ?>
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Ahh... a new member of the Eagle Eye club. Must have to be named "Dave" to join that club.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
LoL that or the fact I'm wide awake.. LoL
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|