vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Expire a User Account on a given day (https://vborg.vbsupport.ru/showthread.php?t=222281)

JulianPerry 09-02-2009 07:11 AM

Expire a User Account on a given day
 
I have integrated vBulletin with another system, the users sign up to an account which then programmatically creates the relevant user account in vBulletin, creates the cookies whenever they sign in to the other system and all log outs reroute back to the site. This all works fine.

What I am having an issue with is expiring accounts, when the user signs up for an account on the other system it is valid for 1 year only, after that time the account becomes invalid and is no longer usable. I need to do the same thing in vBulletin and from what I can tell there is no concept of an account being valid or invalid based on a date.

Any advice on how to do that, ideally when the account is created (set a date in the future to expire), or worst case in bulk once a day, i.e. a bulk extract of expired users which I then feed in to vBulletin. Also ideally this needs to be an automatic process rather than manual.

Paul M 09-02-2009 09:06 AM

What exactly do you want to happen to an "expired" account in vbulletin ?

JulianPerry 09-02-2009 12:26 PM

I want the user not to be able to log in, but I don't want necessarily to delete the user.

I assume I could place them in the banned user group but they are not banned and therefore the associated messages are not valid.

Marco van Herwaarden 09-03-2009 09:07 AM

Then place them in another usergroup without access.


All times are GMT. The time now is 11:49 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.00961 seconds
  • Memory Usage 1,707KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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