vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Move user to a random usergroup when he clicks on a button/link (https://vborg.vbsupport.ru/showthread.php?t=191222)

Saint_ago 09-18-2008 04:26 PM

Move user to a random usergroup when he clicks on a button/link
 
Hi there.

In my board we have some kind of game battles, where the users are able to enlist to it. Doing so, it needs to be moved randomly to one of the 2 (or more) usergroups available (like armies - Allies and Axis, something like that), with different access and permissions.

So i need a hack where the users click on an "enlist" link and/or button, and they're automatically and randomly moved to one of these groups.

Is there possible?

Keeps as simple as possible, but if you want to make some "welcome message" saying to the user that he was enlisted and moved to defined group or army, and some listing thing like reports or % of members added in each group, it's okay also!

Thanks in advance.

Ps.: something like this: https://vborg.vbsupport.ru/showthrea...ndom+Usergroup but instead of moving to usergroup when registering, moving while the user (already registered) clicks on a button or link. And of course, works on a 3.7 vbulletin. :)

Saint_ago 10-03-2008 06:04 PM

Up. Anyone could help me?

:)


All times are GMT. The time now is 12:00 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.02446 seconds
  • Memory Usage 1,707KB
  • 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