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


All times are GMT. The time now is 07:58 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.01635 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)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