vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatically add to secondary usergroup(s) upon registration? (https://vborg.vbsupport.ru/showthread.php?t=64265)

Cyricx 04-23-2004 02:32 AM

Automatically add to secondary usergroup(s) upon registration?
 
I'm trying to figure out how I can automatcially add people to secondary usergroups when they register.

The reason for this is that I want them to be able to disable viewing for specific forums. The best way I've come up with to do that is to have the individual forums I want them to be able to disable to only be viewable by a specific usergroup.

When someone has been a member of a usergroup, they can leave and join it at their whim.

So, I'm just needing to figure out a way to add them to the secondary usergroups upon registration :)

Anyone know how to write this mod? or what code lines I might be needing to locate to hack it in myself?

Cyricx 04-25-2004 12:20 AM

Bump :)

Noone else think this would be useful?

Anub1s 04-27-2004 04:05 AM

y also think this will be very usefull, but looks like no soby likes the idea ;_;

cocjh1 04-13-2005 05:18 PM

I would like this hack please.

Basically want to automatically add new members into a secondary usergroup.

I've looked in register.php are found the following at Line 286 (v3.0.7): -
PHP Code:

// assign user to group 3 if email needs verification
    
if ($vboptions['verifyemail'])
    {
        
$newusergroupid 3;
    }
    else
    {
        if (
$vboptions['moderatenewmembers'] OR $_POST['coppauser'])
        {
            
$newusergroupid 4;
        }
        else
        {
            
$newusergroupid 2;
        }
    } 

This seems to be the place to set the secondary usergroup access but I don't know how.

Any ideas?

C:

macwiz 09-16-2007 06:17 PM

I am also interested in this - but with the new members join request being put into the queue for the usergroup leader to approve / deny.


All times are GMT. The time now is 01:46 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.01066 seconds
  • Memory Usage 1,720KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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