PDA

View Full Version : How to logout new registrations? Is my Plugin Bad?


Rafa-el
08-08-2010, 03:24 PM
Hi,

I'm creating a plugin to logout new registrations but isn't working properly, well was working fine but I don't know what happen 'cause isn't logout the new registrations.

Here's the plugin:
require_once(DIR . '/includes/functions_login.php');
process_logout();

Very simple, and added at the register_start hook. What happen? Is ok or is bad?

Thanks.

Agathadaimon
08-08-2010, 03:27 PM
Do screenshots ?

Rafa-el
08-08-2010, 03:34 PM
Do screenshots ?

Screenshots of?

That plugin info doesn't logout the new user registrations.

By example here's the process that I have before (before what I don't know 'cause stop working by himself)
- After clicking the register button the message will be the Thank for registering...
After that the thing was be easy 'cause will redirect to the index page and the people can fill the login form.

The problem is that I have enabled the email verification and also the new user moderations so it creates a loop for new users. (I've also a script to redirect the logged in users to a specific forum via header requests)

So that's the main issue...

Is that plugin right?

Agathadaimon
08-08-2010, 03:37 PM
Get certified mail from the new membership would guess ?

Rafa-el
08-08-2010, 03:48 PM
Get certified mail from the new membership would guess ?

I don't think so, was working fine... Is weird.

Do you know something to logout the users using another hook?

Agathadaimon
08-08-2010, 03:50 PM
I don't think so, was working fine... Is weird.

Do you know something to logout the users using another hook?

I know you do not have such a plug-in

Rafa-el
08-08-2010, 04:00 PM
I know you do not have such a plug-in

Sorry?

--------------- Added 1281287225 at 1281287225 ---------------

Ok, I've linked the hook to register_addmember_complete and works good now, but I've the loop error at the email verification zones.

I will try to add the plugin into that hooks.