vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - PB Usergroup Choice on registration (https://vborg.vbsupport.ru/showthread.php?t=186076)

d-wiz 08-20-2008 11:16 AM

The members of my groups do not recieve the welcome message on the board?

iBaker 08-22-2008 11:15 PM

Unfortunately I have had to uninstall this mod - it really is a great idea but I need it to put the user into a secondary usergroup NOT their primary one

Trana 08-26-2008 09:30 PM

If anyone can complete some simple mods to this hack including the following:

addition of user to secondary group
ability to specify multiple groups via checkboxes

Please PM me. I'd be willing to pay.

Thanks.

Greek76 09-06-2008 11:35 PM

Great mod exactly what I was looking for. Installed and works great! Thanks

Thamelas 09-17-2008 11:46 AM

Agreed. This is exactly what I am looking for...just one problem.

I need to put people in Secondary Usergroups. Not Primary Usergroups. How can this be implimented?

dengbej 09-17-2008 12:25 PM

Thanks.i made male and female.

Savage702 09-17-2008 01:25 PM

This is great... have been looking for this too, but like others have said, I need this to add people to a secondary usergroup, not a primary.

Bilderback 10-11-2008 05:21 PM

Sorry, I also had to uninstall this Mod since it only works for Public usergroups.
I have Usergroup Leaders assigned which moderate any requests and this Mod
bypasses any Leader moderation and adds them automatically.
Wonderful concept though.
Hopefully future release will have more options.

soundboy 02-28-2009 07:58 AM

Will this work for vBulletin 3.6.7? I need this exact mod for vb3.6 :(

coffee 03-11-2009 11:50 AM

Quote:

Originally Posted by Savage702 (Post 1624089)
I need this to add people to a secondary usergroup, not a primary.

I'm using it on a 3.8.1_PL1 installation for secondary usergroups, I had to do the next:

1- Find and delete this code block:
PHP Code:

        <plugin active="1" executionorder="5">
            <
title>pb_usergroupchoice_ifemail</title>
            <
hookname>register_addmember_complete</hookname>
            <
phpcode><![CDATA[if($vbulletin->options['verifyemail']){
$vbulletin->input->clean_gpc('p''accounttype',TYPE_INT);

$accountusergroupid=$vbulletin->GPC['accounttype'];
$pb_usergroup_ids=explode(" ",$vbulletin->options['pb_usergroupchoice_ids']);
if(
in_array($accountusergroupid,$pb_usergroup_ids)){
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "useractivation SET usergroupid = '".$accountusergroupid."' WHERE activationid = '".$activateid."' LIMIT 1 ");
}
}]]></
phpcode>
        </
plugin

2- Find this line:
PHP Code:

$userdata->set('usergroupid'$accountusergroupid); 

3- Replace it with:
PHP Code:

$userdata->set('membergroupids'$accountusergroupid); 

Hope that will solve your problem :)

Edit: Make sure you force group selection, so that new members are directed automatically.


All times are GMT. The time now is 02:15 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.01105 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete