PDA

View Full Version : Forcing style on a usergroup


Zelda-King
28 Jan 2006, 19:47
This should be an EASY one;

I am trying to write a plugin using the global_start hook to administer the above affect.

This is the code I'm using;


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


There must be some really simple reason why that's not working. Any pointers?

filburt1
28 Jan 2006, 20:04
The hook probably fires after the style is already selected, in which case you'd manually have to edit files (lame).

BTW, don't use quotes when working with numeric values. You're treating them as strings.

Zelda-King
28 Jan 2006, 20:07
Thanks, I didn't know either of those facts.

I have got this running. I simply needed to use the style_fetch hook instead.

I used the following code;


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Capt. GannA
17 May 2006, 17:59
Thanks, I didn't know either of those facts.

I have got this running. I simply needed to use the style_fetch hook instead.

I used the following code;


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Where do I have to add this?

Nevermind, figured it out. Thanks :D