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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2014, 10:09 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vb Usergroups

I want to make some changes to usergroups and permissions.

I had four usergroups. Newbies > Members > Senior members > VIP Members.

I want to change to Newbies > Members > Senior members.

I edited the promotions too. Now how do I shift the VIP members to Senior members group? When I try to delete VIP members usergroup it says "All members of this usergroup will revert to the Newbie group."

As I mentioned I edited the promotions too, so will the system adjust the users itself and allocate the current users according to the new promotion settings? E.g, I changed promotions from Newbies to Members from 10 posts to 25 posts. So the users that have more than 10 posts were Members, but according to the new promotion settings users with even 24 posts should be in Newbies. So the users that have less than 25 posts, will they automatically be moved back to Newbies or do I have to do something for that?
Reply With Quote
  #2  
Old 11-29-2014, 10:12 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No the promotion system won't demote users. But you can use Move/Prune users (under Users in the admincp) to move everyone back to Newbies, then run the promotion scheduled task.
Reply With Quote
Благодарность от:
Max Taxable
  #3  
Old 11-29-2014, 10:45 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
No the promotion system won't demote users. But you can use Move/Prune users (under Users in the admincp) to move everyone back to Newbies, then run the promotion scheduled task.
Can you instruct me step by step on how to move everyone back to Newbies and then update all the users into their usergroups based on new promotion settings?

Step by step instructions please.

Just FYI, there are around 70k users.
Reply With Quote
  #4  
Old 11-30-2014, 08:02 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, 70k users. I'm not sure how it will work with that many. I haven't done it with that many. I also haven't done it on a live forum. It will probably work, but you might want to close it first to avoid users seeing themselves in the wrong group, and to make it go faster.

Anyway, you would do this:

1) In the admincp, go to Users > Prune / Move Users
2) For the usergroup, select the group you are moving users *from*
3) Enter 0 for "Has not logged on for x days"
4) Press 'Find'
5) Look at the list to make sure it looks like the users you want to move, then scroll to the bottom and select the "Move" radio buttton, and the group you want to move them to, and press "Go'.
6) You can repeat steps 1 to 4 to make sure no users are found in the old group.

and repeat the above if you have another group to move.

But as I said I've never tried moving 70k users this way, so I don't know if that will be a problem. If there's a limit on the users is shows in the list, you may have to do the above multiple times.

Anyway, once that's done, you would then go to the Scheduled Task manager, find the "User Promotions" task, and press the "Run Now" button on the right. That should promote all eligible users to the correct group.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #5  
Old 11-30-2014, 09:22 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, 70k, I wonder if it would be better to do this via a query? I would be willing to bet, trying to do 70k will not work, you might have to do them 1000 at a time, depending on the server.
Reply With Quote
  #6  
Old 12-02-2014, 07:21 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Hmmm, 70k, I wonder if it would be better to do this via a query? I would be willing to bet, trying to do 70k will not work, you might have to do them 1000 at a time, depending on the server.
I think it would be quicker to run two queries. One to move users from the VIP group with less than 25 posts to Newbies, then one to move the rest to Senior. I can't remember if "posts" or "postcount" is in the user table so the following might not work. Also I'm quite tired and have a feeling my syntax is off Also I haven't actually fiddled around with any coding since ummm Nov 2012 I think.

Code:
UPDATE user SET usergroupid = newbiesusergroupidhere WHERE posts <=24
Then
Code:
UPDATE user SET usergroupid = seniorusergroupidhere WHERE posts >whateverpostcountpromotestoseniorgrouphere
Reply With Quote
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 12:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07077 seconds
  • Memory Usage 2,218KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete