php forum
php mysql forum
php mysql smarty
 
Topic Options
#233958 - 01/24/03 10:22 AM 6.2 - did it bust this Stylesheet integration code
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
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?<br /><br /><?<br />require ("main.inc.php");<br />$userob = new user;<br />$user = $userob -> authenticate("U_StyleSheet");<br />$name = $user['U_Username'];<br /><br />if (!$fstyle) {<br /> $fstyle = $user['U_StyleSheet'];<br /> if ( (!$fstyle) || ($fstyle == "usedefault") ) {<br /> $fstyle = $theme['stylesheet'];<br /> }<br />}<br />$stylesheet = "{$config['styledir']}/$fstyle.css";<br />?>

Top
#233959 - 01/24/03 10:27 PM Re: 6.2 - did it bust this Stylesheet integration code [Re: Intel -*RW*-]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Looks like that should work. <img src="/forum/images/graemlins/confused.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233960 - 01/24/03 11:31 PM Re: 6.2 - did it bust this Stylesheet integration code [Re: Intel -*RW*-]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
$fstyle isn't set in the code you posted. You will need something like this:<br /><br /><?<br />require ("main.inc.php");<br />$userob = new user;<br />$user = $userob -> authenticate(); // stylesheets are added to every auth call automatically<br />$fstyle = $user['U_StyleSheet'];<br /><br />if ( empty($fstyle) || $fstyle == "usedefault" ) {<br />$fstyle = $theme['stylesheet'];<br />}<br />$stylesheet = "{$config['styledir']}/$fstyle.css";<br />?>
_________________________
~Dave
ChattersOnline.com

Top
#233961 - 01/24/03 11:33 PM Re: 6.2 - did it bust this Stylesheet integration code [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ahh... a new member of the Eagle Eye club. Must have to be named "Dave" to join that club. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233962 - 01/24/03 11:40 PM Re: 6.2 - did it bust this Stylesheet integration code [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL that or the fact I'm wide awake.. LoL <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks