vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to logout new registrations? Is my Plugin Bad? (https://vborg.vbsupport.ru/showthread.php?t=248210)

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

How to logout new registrations? Is my Plugin Bad?
 
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:
PHP Code:

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

Quote:

Originally Posted by Agathadaimon (Post 2080906)
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

Quote:

Originally Posted by Agathadaimon (Post 2080913)
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

Quote:

Originally Posted by Rafa-el (Post 2080919)
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

Quote:

Originally Posted by Agathadaimon (Post 2080920)
I know you do not have such a plug-in

Sorry?

--------------- Added [DATE]1281287225[/DATE] at [TIME]1281287225[/TIME] ---------------

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.


All times are GMT. The time now is 02:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01107 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete