Log in

View Full Version : Different Style on Different Pages


Osterling
12-05-2006, 06:44 PM
I know you can change the style for different forums but for instances, I want a different style for the register page. Is there a way I can do this?

Adrian Schneider
12-05-2006, 06:52 PM
You can edit the $styleid variable in the style_fetch (or was that fetch_style) hook. Off the top of my head... if (THIS_SCRIPT == 'register')
{
$styleid = 2;
}

Osterling
12-05-2006, 07:04 PM
do i put that in the register.php file?

Adrian Schneider
12-05-2006, 07:05 PM
Create a new plugin using the style_fetch hook with the above code.

Osterling
12-05-2006, 07:17 PM
I created a new hook using style fetch... I named it register and for code I used
if (THIS_SCRIPT == 'register')
{
$styleid = 2;
}

and I have a style 2 but it doesn't change, any ideas?

Adrian Schneider
12-05-2006, 07:18 PM
When I get home tomorrow I will take a look for you. No code here. :(

Osterling
12-05-2006, 07:42 PM
When I get home tomorrow I will take a look for you. No code here. :(

Thank you

Osterling
12-06-2006, 08:23 PM
I hate to be a nag, but I still haven't figured it out. Could anyone help, please