SOLVED - Change default Account Type on sign up page

MAD
MAD
@madc
11 years ago
600 posts
How do I change the default account type in the drop down box on the sign up page.
I want the Default to be MEMBERS which has an ID of 3
At the moment it displays ARTISTS id of 1


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/12/14 03:20:08AM
MAD
MAD
@madc
11 years ago
600 posts
Attached is my settings under the user_profile module
Caches cleared etc it still shows Artists?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/10/13 07:57:19PM
michael
@michael
11 years ago
7,718 posts
This has been fixed for the next version. If you want to add the change yourself, here is the code:

  // Show Signup Options
    if (isset($_opt) && is_array($_opt) && count($_opt) > 1) {
        $_tmp = array(
            'name'     => 'quota_id',
            'label'    => 59,
            'help'     => 60,
            'type'     => 'select',
            'options'  => 'jrProfile_get_signup_quotas',
            'validate' => 'number_nz'
        );
        jrCore_form_field_create($_tmp);
    }

above is what it is now, change it to:
  // Show Signup Options
    if (isset($_opt) && is_array($_opt) && count($_opt) > 1) {
        $_tmp = array(
            'name'     => 'quota_id',
            'label'    => 59,
            'help'     => 60,
            'default'  => $_conf['jrProfile_default_quota_id'],
            'type'     => 'select',
            'options'  => 'jrProfile_get_signup_quotas',
            'validate' => 'number_nz'
        );
        jrCore_form_field_create($_tmp);
    }

Its just this line thats added:
'default'  => $_conf['jrProfile_default_quota_id'],

its in:
/modules/jrUser/index.php around line 720 ish
MAD
MAD
@madc
11 years ago
600 posts
Yep That Worked @michael. Thanks for that ! :D


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,148 posts
This has been fixed in the User Account module version 1.1.4 which I've just pushed out to the Marketplace.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags