PDA

View Full Version : How to Logout users using specific variables in specific zones?


Rafa-el
08-08-2010, 05:32 PM
Hello,

I want to logout my users after they login BUT if they're in the usergroup (by example) the non verified email or are the in moderation queue.

The easier way that I see was to change the phrases and add links to the logout buttons but didn't work.. Well, we can't add specific variable names inside the phrases by example the logout hash variable, etc.

Is there a way to add a login button without templates? I mean using phrases?

And is there a way to force the logout of the users if they're in a specific zone and are in a usergroup?

I've a plugin but didn't work...

if ($vbulletin->userinfo['userid'] AND (THIS_SCRIPT == "forumdisplay" || THIS_SCRIPT == "login") AND is_member_of($vbulletin->userinfo, 3,4,6)) {
require_once(DIR . '/includes/functions_login.php');
process_logout();
) ;
}

This at the login_process don't make the people login in any place...

Any help/idea?

--------------- Added 1281366443 at 1281366443 ---------------

Anyone?