vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - [Chris] Mass User Upgrade (https://vborg.vbsupport.ru/showthread.php?t=292302)

Christos Teriakis 11-30-2012 11:00 PM

[Chris] Mass User Upgrade
 
Mass Usere Upgrade
by ChrisTERiS

This is a minimod, asked from a Member in the community, and I thought that maybe it will be helpful to other members, that's why I'm posting it here.

1.- What it does
  1. Mass Upgarde a selection of users to a specific usergroup
  2. You have the ability to choose between updating the main usergroup, or adding the new usergroup in the user's additional usergroups
  3. Even if wasn't on the original request, I added a feature to rollback an upgrade in case that you did something wrong.
2.- Installation
  1. Download and unzip the file UpgradeUsers.zip
  2. Upload all files from upload folder to your forum installation.
  3. Import the product-upgradeusers.xml
  4. Click on Upgrade Users menu option and start working.
Enjoy it
Chris

PS- If you find it useful I'll appreciate if you Like my Facebook page. Thank you.

faisaly.com 12-01-2012 10:34 AM

think you forgot something Chris?

Christos Teriakis 12-01-2012 10:40 AM

ehhh??........ Unless that I lost my mind, I can swear that I've uploaded 1 file and 3 screenshots. My apologies...

Christos Teriakis 12-01-2012 10:43 AM

I don't think that it was something wrong from my side. When I tried to re-upload the file, the upload folder was the one that I had the files in. So, for sure I've uploaded them. In any case, now everything is ok.

Chris

faisaly.com 12-01-2012 12:51 PM

yup showing now, thank you

EasyEazy 12-01-2012 03:28 PM

Hi Chris. Upgraded from the version you gave me earlier and got this error when adding members to a test usergroup.

Users were added to the group however I got the following database error. Also it was not added to the history page so I couldn't roll it back.

PHP Code:


Invalid SQL
:
INSERT INTO vbupgradeusers
                            SET usernames 
'3,26,1,24',
                                
usergroupid '34',
                                
usergroup 'testing',
                                
upgradeat '1354379164',
                                
primarygroup '0';

MySQL Error   Unknown column 'primarygroup' in 'field list'
Error Number  1054
Request Date  
SaturdayDecember 1st 2012 04:26:03 PM
Error Date    
SaturdayDecember 1st 2012 04:26:04 PM
Script        
: *****************************upgradeusers_admin.php?do=upgrade
Referrer      
: ****************************upgradeusers_admin.php?do=upgrade&action=insert 


Christos Teriakis 12-01-2012 04:52 PM

Ochh sorry. I forgo that there was someone who has installed this mod before releasing. There are 2 ways to solve it.
1.- To uninstall the previous one and make a new installation
2.- If you're familiar on using phpMyAdmin connect to database and add to the table:
...prefix..upgradeuser a field:
Name: primarygroup
Type: TINYINT
Size: 1
Default value: 0

Chris

EasyEazy 12-01-2012 07:35 PM

Quote:

Originally Posted by ChrisTERiS (Post 2387356)
Ochh sorry. I forgo that there was someone who has installed this mod before releasing. There are 2 ways to solve it.
1.- To uninstall the previous one and make a new installation
2.- If you're familiar on using phpMyAdmin connect to database and add to the table:
...prefix..upgradeuser a field:
Name: primarygroup
Type: TINYINT
Size: 1
Default value: 0

Chris

Uninstalled and reinstalled and its working fine. Thanks for this modification.

EasyEazy 12-04-2012 07:11 PM

Request of possible Chris

I know you have done a roll back feature for this but would it be possible to have an option to empty a usergroup as well. I don't want to delete the group just remove all those in that group.

Thanks in advance

XGC Viper XI 05-04-2013 08:45 PM

I install this on our test site. I encounter two issues. Once I added the user to a new secondary group, the usergroup rank image did not display on their profile. Also, when selecting users, this test site has about 50,000 members. It was extremely slow and lagged a lot. Therefore, this would not work on our actual site that has about 70,000 members. I have few suggestions.

1) Add another option to select users by usergroup (both primary and secondary), then display only the user from that usergroup.

2) When promoting or moving members into another usergroup, provide an option to remove them from the usergroup that was selected in suggestion 1. That way when we move them to one usergroup, we can take them out of the originating usergroup.

3) Regarding the undos, once it has been done and is never to be undone, can you add an option to delete from history? Other wise the list would get extremely long for us very quick.

If this is possible, this would make this mode extremely useful.

THanks
Viper


All times are GMT. The time now is 09:05 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.04097 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete