vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User's can revert to 'Registered' (https://vborg.vbsupport.ru/showthread.php?t=51866)

Tenpit 04-20-2003 09:03 AM

User's can revert to 'Registered'
 
Many apologies if this hack has already been written, i did try searching for it, but could find nothing.

On my board i have use the hack that allows moderators to change usergroups, each moderator of their own clan forum is able to change the group of members of their group and the standard 'Registered' group only.

If a forum member changes clan, they have to request from their moderator to change their group back to 'Registered' so that the moderator of the new clan forums can change their group to the new clan's one.

The ability for users to move themselves into the 'Registered' group would be perfect. It should obviously not work if they are in a Banned or unregistered usergroup, maybe make it so only members of certain groups can use it, and hopefully it could be as simple as clicking a link and moving into the 'Registered' group.

Would this be possible? Would anyone be willing to have a go at it, would be much appreciated :)


Thanks
Tenpit

Tenpit 04-30-2003 11:55 AM

Am i allowed to *bump* ?

filburt1 04-30-2003 12:07 PM

[sql]
UPDATE user SET usergroupid = 2 WHERE userid = $bbuserinfo['userid'];
[/sql]
...is the query you can use, if you want to try to write it yourself.

Brad 04-30-2003 12:18 PM

1 Attachment(s)
Upload this to the forums directory and link it, sould do the trick.

Also, add a new template named redirect_gourpupdated and fill it with the text you want to display when it redirects.


All times are GMT. The time now is 09:02 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.00906 seconds
  • Memory Usage 1,708KB
  • 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
  • (4)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