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)

beleebala 03-28-2010 02:08 PM

Would it work on the new VBB4? This is such a great mod!

Bobbo 04-06-2010 01:16 PM

This is interesting. I'm doing something like this in vb4. Did anyone ever figure out how to support selecting multiple groups? I'm trying to figure out what the code would be to assign more than a single usergroupid or membergroupids at a time.

Bobbo

Artes_Marciales 04-06-2010 05:38 PM

Quote:

Originally Posted by garyion (Post 1877696)
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

does not work for me : S
Please. You can upload the edited file?
Thanks!

bwhite 05-27-2010 02:13 AM

We need this for VB4!

ShackMaster 12-22-2010 09:12 PM

Anyone tried this in 4.1 yet?

ShackMaster 12-23-2010 02:00 AM

I can verify that it does not work in 4.1

Quote:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: pb_usergroupchoice_field in [path]/includes/functions.php on line 4055

Parse error: syntax error, unexpected T_VARIABLE in /includes/class_core.php(4414) : eval()'d code on line 276

royg 03-13-2011 06:31 AM

I'm really interested in having this mod work on my board, and would be willing to pay to have it upgraded to v4.1.x.

Any chance of this happening? :rolleyes:

AFemaleProdigy 03-28-2011 03:23 AM

I really would like to use this for vb4 too. Tried to install and got the same error.

temsamane 04-02-2012 08:19 PM

i need this for vb 4

Tyran1 04-17-2012 01:23 AM

Thanks works with 3.8.7 PL2

bchertov 04-17-2012 05:20 PM

I'd be happy to kick-in to have this re-developed for VB4!

FTG LIQUID CL 06-01-2012 01:41 AM

i need this for 4.1.12

Tyran1 02-05-2013 04:10 PM

Update to vB 5???

vBarsiv 02-12-2013 03:27 AM

this good. thank you

orionpk2 03-11-2013 09:48 PM

good job, but there is a solution parecidad for 4.2?

Thanks

phalanxents 02-28-2016 04:18 PM

I have custom user groups, which users choose on registration.

However, it automatically defaults to "Junior Member" until I update user titles and ranks.
Obviously I'm not going to be online all the time to be able to do that.

Is there anything I can do where it will automatically update their usergroup once registered? It will update fine after I update user titles and ranks


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

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.02341 seconds
  • Memory Usage 1,752KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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