Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PB Usergroup Choice on registration Details »»
PB Usergroup Choice on registration
Version: 1.00, by RLShare RLShare is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.2 Rating:
Released: 07-22-2008 Last Update: 07-22-2008 Installs: 78
Uses Plugins
 
No support by the author.

What does it do?
Allows a user to be assigned to a certain usergroup based on a drop down menu at registration time.

How is it different from the one posted a couple of days ago by Viet:
Well,
1. This one will work with email verification. So you can still require email verification for all new users and they will be assigned to the appropriate usergroup after their email has been verified.
2. It will automatically draw in the usergroup names for the ids instead of having you type out both the usergroup ID's and usergroup names.

Installation:
1. Import the product
2. Go to AdminCP->vbulletin Options->Vbulletin Options->PB Usergroup Choice on Register
and set up the options the way you want...

Notes:
Will add 1 query when showing the registration form.
Will add 1 more query to the processing of a registration if VB is set up for every user having to verify email addresses.

Fixed:
Forgot table prefix in one call to the database causing database error.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-20-2008, 11:16 AM
d-wiz d-wiz is offline
 
Join Date: Jun 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The members of my groups do not recieve the welcome message on the board?
Reply With Quote
  #23  
Old 08-22-2008, 11:15 PM
iBaker's Avatar
iBaker iBaker is offline
 
Join Date: Oct 2006
Location: Melbourne, Australia
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 08-26-2008, 09:30 PM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 09-06-2008, 11:35 PM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod exactly what I was looking for. Installed and works great! Thanks
Reply With Quote
  #26  
Old 09-17-2008, 11:46 AM
Thamelas Thamelas is offline
 
Join Date: Aug 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #27  
Old 09-17-2008, 12:25 PM
dengbej's Avatar
dengbej dengbej is offline
 
Join Date: Aug 2008
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.i made male and female.
Reply With Quote
  #28  
Old 09-17-2008, 01:25 PM
Savage702 Savage702 is offline
 
Join Date: Sep 2007
Location: Las Vegas, NV
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 10-11-2008, 05:21 PM
Bilderback's Avatar
Bilderback Bilderback is offline
 
Join Date: Sep 2007
Location: Illinois
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 02-28-2009, 07:58 AM
soundboy's Avatar
soundboy soundboy is offline
 
Join Date: Jul 2008
Location: Australia
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work for vBulletin 3.6.7? I need this exact mod for vb3.6
Reply With Quote
  #31  
Old 03-11-2009, 11:50 AM
coffee's Avatar
coffee coffee is offline
 
Join Date: Oct 2002
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Savage702 View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04443 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete