Thanks, Andy!
That helps in my strive to simplify the whole thing. In my aim to make everything very well thought through and practical for different types of users, I have actually over-complexified things and now I am working on the reduction to “the max”, so to speak.
But if the forum is part of a members area and I want those emails to be used, that the forum sends out, how would this work, if let’s say there is no login form directly for the forum if a user accesses it and is not logged in yet?
Because people click a link and want to post a reply …
and if they are not logged in, for now, they just get to see a login form because at the moment is it the members area in which the forum can be found.
Would I have to setup a general forwarding to a login page when users access the forum without being logged in?
Right now I have setup a login redirect like this:
http://pastebin.com/1GRLRi2L
I am wondering if I would just use this kinda logic for users who are not logged in and trying to access the forum.
So something like this:
function wOw_login_redirect( $redirect_to, $request, $user ) {
if (is_user_logged_in() == TRUE && strpos($request, 'forum') == TRUE ) {
return $request;
} else {
return ... what ever login page ... ;
}
}
add_filter( 'login_redirect', 'wOw_login_redirect', 10, 3 );
Do you think the solution could be that simple?
But when I think about taking the forum public, which we want to do soon, than this won’t work because I want people and search engines to access the content of the forum and only if they want to post, they need to login.
It is actually most interesting for now to think about how that would work best.
So to let you know, the forum will not be part of the members area anymore in a few days from now. Sorry if this is confusing but I am basically dealing with both scenarios, because right now it still is but as soon as possible I want to open it up for the public – people to read and be able to register.