Recent Topics

1 Feb 03, 2008 16:23    

Hi All,

I'm very new to b2evolution, and php in general, so please go easy on me ;)

Using the 2.1 beta release.

Basically, I'm working on a plugin that will allow us to authenticate across a few different subdomains (for discussion's sake, blog.mysite.com and main.mysite.com).

I've got the login part working alright by hooking into the AlternateAuthentication event. This also allows me to auto-create a user if they exist in our "master" database but not b2e's database (I haven't yet figured out how to set the user's Group, but I will track that down).

My main question for right now is, is there any event I can hook into that will allow me to redirect users to main.mysite.com if they're not logged in, and try to do something that requires them to be logged in. I guess I would like to be able to do this if the "login" links that appear in various places are clicked as well (but I plan to try and conceal those eventually). I"m trying to do this without hacking any of the b2 source files, if at all possible.

Any advice would be greatly appreciated.

Thanks,

Alex


Form is loading...