Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-07-2015, 11:11 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah true I'm thinking they started off in the registered user group because that is where I always directed my subscriptions to when i had them on the site. I'm ok Yeah they go back to whatever group they were before hand.
Reply With Quote
  #12  
Old 01-07-2015, 11:14 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a good point, but if you add secondary groups instead of (or in addition to) changing the primary one I don't think it would be a problem. Anyway, it would be a good idea to run a test before setting it up.
Reply With Quote
Благодарность от:
HM666
  #13  
Old 01-07-2015, 11:16 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right, that is what I am saying, If I was in group A, bought a tier one subscription, it moves me to group B. Now I purchase a tier two subscription, it moves me to group C.

So I see one of two thing that are going to happen
1) When the tier one subscription runs out, it will move me back to group A.
2) If the above does not happen, then when the tier two subscription runs out, I get moved back to B.

That makes me purchasing a tier two subscription a lifetime member of group B, because the tier two subscription over rode my group, that I came from.
Reply With Quote
  #14  
Old 01-07-2015, 11:42 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow that made me dizzy lol. I guess as Kevin said the only way to know for sure is to try it out and see what happens.
Reply With Quote
  #15  
Old 01-07-2015, 11:44 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what happens when a subscription is going to run out.

An email is sent to the subscriber 3 days before expiry via the Subscriptions Scheduled Task. Provided that's running OK, then the emails will be generated.

At expiry, the same scheduled task removes users from any usergroups that they were moved/added to when they took out the subscription and puts them back where they were.
Reply With Quote
  #16  
Old 01-08-2015, 05:26 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is what I said above lol. They go back to the usergroup they started in before they did the subscription. ....don't they? lol
Reply With Quote
  #17  
Old 01-08-2015, 03:14 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
Wow that made me dizzy lol. I guess as Kevin said the only way to know for sure is to try it out and see what happens.
Well, I don't know if I'd go that far, but it certainly seems like it would be a good idea to test after setting it up and make sure it works as expected. But to each his own. Some people prefer to wing it and just hope there aren't any problems.
Reply With Quote
Благодарность от:
HM666
  #18  
Old 01-08-2015, 03:22 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's true Kevin, but when I do something, I don't think as a developer, I think as a end user. I try to thing of all the possibilities that something might do something that I would not want, or would not expect it to do.

Now I suppose you could write up some code, that if I was to purchase the tier two subscription, when it is verified, update my tied one subscription to expire one day after the tier two subscription. That way the tier two expires, I go from group C back to group B, then a day later, I go back to group A.
Reply With Quote
  #19  
Old 01-08-2015, 03:38 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, I was just looking at the delete_user_subscription() function, and it looks like if the user's primary group is not the same one that was set by that (expiring) subscripton, then the primary usergroup isn't changed. There is some other logic, in that function and the build_user_subscription(), having to do with checking other active subscriptions before setting the usergroup, but I haven't worked it all out yet.

ETA: The answer seems to be (if everything is based on changing primary usergroups) that if you buy a tier 2 subscription after buying a tier 1, when tier 1 expires the user will stay in tier 2, then when tier 2 expires you will go back to tier 1 (and as Ozzy pointed out, it appears that it would be permanent unless some other arrangement is made to change it). So, like I said a few posts ago, if you use secondary groups to add the permissions, that should sidestep the issue. And as always, I recommend testing out whatever system you set up to make sure it works as you expect.
Reply With Quote
Благодарность от:
ozzy47
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:04 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.06930 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (3)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete