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
  #32  
Old 03-11-2009, 06:44 PM
HaS?R HaS?R is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.Nice Mod.
Reply With Quote
  #33  
Old 04-26-2009, 03:19 AM
Mum Mum is offline
 
Join Date: Jun 2006
Location: New Zealand
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone worked out how to do it for multiple groups?

I would also like to do it for changes on the profile edit page as well, not just upon registration.
Reply With Quote
  #34  
Old 06-08-2009, 01:31 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any way this can be modified to allow users to join a social group?:erm:
Reply With Quote
  #35  
Old 06-12-2009, 05:45 AM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ryancooper View Post
any way this can be modified to allow users to join a social group?:erm:
that would be a killer!

-
I have a custom made script from a year ago. This is great for me when upgrading to 3.8.x series.
Reply With Quote
  #36  
Old 07-15-2009, 03:20 PM
ukchat ukchat is offline
 
Join Date: Jul 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod seemed at first glance to do exactly what we wanted, then we realised that it was bypassing the registered users group, and making it the primary group they joined.
We then read further and saw coffees mod of the mod which bypassed adding them to the primary user group but for us it didnt add them into the secondary user group either, although this option was given to join. any ideas?

ideally we would like for users requests to join to be submitted to the group leaders rather than being directly injected into the chosen group, has anyone made this work yet?
Reply With Quote
  #37  
Old 07-24-2009, 11:19 AM
coffee's Avatar
coffee coffee is offline
 
Join Date: Oct 2002
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All I did was that I wrote here from before ..

But also forced new registrations to select one group; in my case: Male OR Female.
Reply With Quote
  #38  
Old 08-25-2009, 11:11 AM
garyion garyion is offline
 
Join Date: Jan 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I needed (as everybody of course) the user choice to be put in a secondary group, which is the field "membergroupids".
the usergroupid is a one value field and it's meant to have usergroup id's from 1 to 9 (standard users, admin, moderators, registered etc..) which is "2" as default registration.

I modified the "if not email" script to write "2" in usergroupid and the user choice in the membergroupids.
that might work fine..

the problem is when you are using email verification.. (of course, everybody does).
the user is temporarily registered in a "useractivation" table and the userchoice goes into the usergroupid of the useractivation table.
when the activation is completed from the email link the membergroupids "hack" is lost again. so if you want to modify it as you did for the if-not-email script you can't!

I am a fan of this plugin, I currently have it installed, but I would recommend some vBulletin official user to clarify what should be done and what should not by plugins like this.
I'm afraid I'll have to uninstall it before launching my board, I don't want to have to manually modify the usergroup memberships of every user once it's up and running.

cheers mates
Reply With Quote
  #39  
Old 09-01-2009, 10:52 AM
garyion garyion is offline
 
Join Date: Jan 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I think I sorted out the scripts and now I have this plugin adding the usergroup choice on the memberships (secondary usergroup) instead of the primary usergroup (that is defaulted to "2")

change the part of the ifnotemail script to:

Code:
$userdata->set('usergroupid', 2);
$userdata->set('membergroupids', $accountusergroupid);
(obviously only the userdata set line)

and then add a plugin into the same product with hook location:
"register_addmember_process"

and paste inside this:

Code:
if($vbulletin->options['verifyemail']){
  $vbulletin->input->clean_gpc('p', 'accounttype',TYPE_INT); 
  $accountusergroupid=$vbulletin->GPC['accounttype']; 
  $userdata->set('membergroupids', $accountusergroupid);
}

and in the end change the ifemail script, the SQL query has to become like this:

Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "useractivation SET usergroupid = 2 WHERE activationid = '".$activateid."' LIMIT 1 ");

I'm actually using it for another pourpose but the principle is the same..
I'll keep an eye on this thread for any questions.

Cheers
Reply With Quote
  #40  
Old 09-20-2009, 07:07 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job, it works!
Reply With Quote
  #41  
Old 09-23-2009, 03:45 PM
songoibiza songoibiza is offline
 
Join Date: Dec 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks !
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 01:32 PM.


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.04787 seconds
  • Memory Usage 2,308KB
  • 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_code
  • (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