vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   New Feature "User Group" Expire (https://vborg.vbsupport.ru/showthread.php?t=50972)

MagNaMan 03-29-2003 09:03 PM

New Feature "User Group" Expire
 
Hi ALL

What I'm looking for is expire feature.

Two Fields would need to be added to user database
"Expire_Date" and "Expire_to_group"

When setting up new user, set "User Group", Set "Expire_to_date" and "Expire_to_group"

Every time user visits site, expire date is checked against
current date, if current date <= expire date then "User Group" is changed to value of "Expire_to_group"

Anyone up to the task?

MagNaMan

MagNaMan 03-29-2003 10:36 PM

Does anyone know if something like this already exists?

trafix 03-29-2003 11:10 PM

hmmm, i wouldnt mind this hack either......i dont know if i can build it but

MagNaMan 03-30-2003 01:01 AM

well here's sql code to create extra fields

alter table `user`
add column usergroupexpire date not null default '00/00/00' after usergroupid,
add column usergroupexpireid int(5) unsigned not null default 0 after usergroupexire, type=myISAM

MagNaMan 03-31-2003 01:40 AM

When a person first visits bulletin, where is the best place to put code to check?

And change usergroup, etc before completing login

trafix 03-31-2003 01:59 AM

I was thinking more along the line of a premium paid usergroup, when the 12 month period has expired then they will be automaticly downgraded to a lower level (admin set) usergroup. that way i dont have to keep checking manually....maybe an auto pm to member and admin informing them of the downgrade would also be an advantage.

MagNaMan 03-31-2003 02:03 AM

Yep.. Quit reading my mind :)

MagNaMan 04-01-2003 10:20 PM

So anyone got an idea where I can place code?

I need to know where is a good place to put it. I'm assuming where cookies are read or something like that.

trafix 04-03-2003 06:57 AM

ive got an idea where to put the code ..... but no idae how to code it.....

trafix 04-06-2003 04:23 AM

I can start this hack...

Requires a new column in user table called memexpire

When a member is shifted to the nominated premium user group the date of upgrade will be added to this column.....thats the easy part......

However I have no idea how to code the script to automaticly down grade them at the end of a 12 month period and pm'ing both the member and the admin upon this action.

Not sure but would it be better to add date plus 12 months upon upgradeing to the memexpire column.....not sure how this is done either but when i get time i will have a play with some coding.


All times are GMT. The time now is 01:37 AM.

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.03095 seconds
  • Memory Usage 1,722KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete