vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change Primary Group in UserCP (https://vborg.vbsupport.ru/showthread.php?t=164784)

raywjohnson 12-09-2007 09:58 PM

Change Primary Group in UserCP
 
Greetings!

I would like to have a plug-in that adds a function to the usercp that will allow the user to change their primary group to one that is defined in the settings (admincp). This way, the users can switch to a "temp" or "self" ban group anonymously.

Currently they have to make a request and the admins make the change and the restore them when the temp ban time is over (30 days).

There should be a "Are you sure?" dialog before that change takes effect. Also a PM to notify someone (per a setting) that this change is taking place.

Ideally this plugin would include a cron that will automatically change the primary group back after a specified time.

AdminCP settings:
Allowed Group ID: (id of group that can access the function in usercp)
Temp Group ID: (id of group to change to)
Days: (number of days the before auto switch back: to Allowed Group ID)
Notify: (id of person to get notified when a user changes group)

I think a mod like this could have many uses!

--RayJ


All times are GMT. The time now is 01:01 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.02012 seconds
  • Memory Usage 1,697KB
  • 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
  • (1)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