vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to mass invite members to a social group? (https://vborg.vbsupport.ru/showthread.php?t=263949)

Alfa1 05-20-2011 08:33 PM

How to mass invite members to a social group?
 
How do I mass-invite a list of userids to a social group?

Lets say that I want to invite 62,482,511,1061,554,287,1030,930,1272,1346,1224,61 4,1396,440,1645,1684,2080,1727 ,1995,135,2618,2026,1739,2470,2510,2706,1813,2713, 2694,1207,2283,2582,2577,1859, 1180,3219,1454,2719,3023,2988,2271,3630,462,2395,3 513,313,1239,2700,3565,3891,20 18,2949,2368,1871,1497,0,1526,2253,3701,4405,1647, 5144,4777,130,1789,2659,7309,2 142,3423,2931,8782,8595,3281,4226,4205,9255,9942,2 099,10197,9337,10467,5464,1219 ,3375,10747,10273,9858,10907,3001,3832,8785,4427,1 0891,11147,11202,12319,4910,11 835,8452,12389,4333,12959,10463,12514,10625,13393, 2066,12073,7928,10473,12621,11 170,15020,10135,8345,14376,15602,61534,13984,9048, 15996,14571,12696,2401,16275,7 857,201,14677,17196,17329,2484,15599,2310,13477,16 327,2594,11876,4317,7858,17870 ,18535,1,5733,1964,19272,18693,9708,465,20616,1782 1,17654,9404,7303,14475,9654,2 3425,18880,17237,22663,27390,25941,16576,3426,4969 ,17182,18275,18000,8356,22976, 9113,11649,2199,28893,96,19330,2860,19948,22129,16 987,13609,23889,13861,31870,20 093,9974,13183,1234,18821,33984,19152,26643,4216,1 7626,22509,194

to socialgroupid 249

How do I do that?

kh99 05-21-2011 02:10 PM

I think I'd make a custom script by copying the code from group.php that starts with if ($_POST['do'] == 'sendinvite'), and changing it as needed.

BTW, I saw your thread about getting a comma separated list of user ids. If this is the only reason you needed that, you could easliy make the script read a space-separated list and solve that problem at the same time.


All times are GMT. The time now is 05:59 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.01589 seconds
  • Memory Usage 1,704KB
  • 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
  • (2)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