solved url to a specific signup quota

izhmel
@izhmel
4 years ago
1,323 posts
Is there a way to give the url to a specific signup quota ?
for example artist signup , fan


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 06/22/21 06:20:48PM
douglas
@douglas
4 years ago
2,790 posts
Yes, add quota_id=X to the end of the URL, ie.

/user/signup/quota_id=X

Where X is the ID of the quota you want to sign up to.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
izhmel
@izhmel
4 years ago
1,323 posts
https://www.dubmusic.com/user/signup/quota_id=44

shows the other quota signup that have to be checked.
I don't want the other quotas to show


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 09/14/20 04:09:53PM
paul
@paul
4 years ago
4,326 posts
If you use the template signup page option, as described in one of your other topics, you can remove quota option field and add the quota_id to the target url in the template as Douglas described above.
What I would suggest is editing the template to ask for the quota first, then when selected refresh the page with the option to show the appropriate signup page.
This is pretty straightforward to do but let's us know if you want us to check it out and we'll quote you.
hth


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,323 posts
paul:
If you use the template signup page option, as described in one of your other topics, you can remove quota option field and add the quota_id to the target url in the template as Douglas described above.
What I would suggest is editing the template to ask for the quota first, then when selected refresh the page with the option to show the appropriate signup page.
This is pretty straightforward to do but let's us know if you want us to check it out and we'll quote you.
hth

Please do


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,326 posts
Two hours work, so $150
Let us know if you want to go ahead with this and we'll send you a custom invoice.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,323 posts
please let me know how will it work exactly


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,326 posts
The signup page would initially show just buttons, one for each signup quota, with the quota name on each button. Upon clicking on a button the page would refresh with the signup form, but with no select quota option. Upon filling the form in and clicking submit, the account will be created as usual and the profile will be in the quota originally selected.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,323 posts
paul:
The signup page would initially show just buttons, one for each signup quota, with the quota name on each button. Upon clicking on a button the page would refresh with the signup form, but with no select quota option. Upon filling the form in and clicking submit, the account will be created as usual and the profile will be in the quota originally selected.
whenever I create a new quota, will it create a new button ?
will the social media signup will also be on the page ?
Can you make the buttons with different colors , or allow the user to choose button look under /core/skin_admin/images/skin=jrXDubMusic or anywhere else to upload the button ?

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,326 posts
Quote: whenever I create a new quota, will it create a new button ?

If you create a new 'signup' quota, yes.

Quote: will the social media signup will also be on the page ?

I don't think the OneAll module social media buttons allow quota selection.

Quote: Can you make the buttons with different colors , or allow the user to choose button look under /core/skin_admin/images/skin=jrXDubMusic or anywhere else to upload the button ?

Button colour could be a admin choice. Why would you want users to choose the colour?

Just another thought on this topic - Why don't you just allow your users to change their quota theirselves, should they have signed up to the wrong one? - ACP=>Profiles=>Profile=>Global=>Allow Quota Changes


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,323 posts
If you allow users to change quota , then they will be able to access modules I font want the to have i.e. the audio module


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
4 years ago
4,326 posts
They will only be allowed to change between quotas that are available at signup, so this is no different to the options you gave them then.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,323 posts
paul:
The signup page would initially show just buttons, one for each signup quota, with the quota name on each button. Upon clicking on a button the page would refresh with the signup form, but with no select quota option. Upon filling the form in and clicking submit, the account will be created as usual and the profile will be in the quota originally selected.

I created the two button linking to the to signup page with "/quota_id=X" at the end of the url,( https://www.dubmusic.com//user_signup_q)

But if I remove the quota selection from the template when submit I have an error "invalid quota selected".
Also, oneall social login buttons donĀ“t work properly.

If templates are not active and I use the standard signup form but without the quota selection control: a) using oneall buttons users are sent to quota_id=2, no matter what the end of the url (/quota_id=X) states.
b) when filling the form and submit "Invalid quota selection" error shows when trying to submit.

Thanks in advance for your help!
zip
user_signup.zip  •  2KB




--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 10/29/20 10:43:32AM
paul
@paul
4 years ago
4,326 posts
I suggest you enable the 'template' signup and login forms in the User module. You can then edit the user_signup.tpl template to accept URL quota_id values.

Set line 30 onwards of the template to look like this -
                {jrProfile_get_signup_quota assign="quotas"}
                {if jrCore_checktype($_post.quota_id, 'number_nz')}
                	{* Quota ID on URL *}
                    <input id="quota_id" name="quota_id" value="{$_post.quota_id}" type="hidden">
                {elseif is_numeric($quotas)}
                    {* We only have 1 signup quota - no need to show select option *}
                    <input id="quota_id" name="quota_id" value="{$quotas}" type="hidden">
                {/if}
The remove or comment out the quota select code at about line 57

I've just tried this on my test site and it works fine.


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
4 years ago
1,323 posts
Excellent!! Thank you.
I tryed that and it works nicely when filling up the form; but oneall social login buttons open the window but don't redirect and the signup process gets truncated.
Is there a way for this buttons to work with the widget? I adapted the code from the standard signup form, lines 76 to 81 in user_signup.tpl


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 10/29/20 11:14:39AM
izhmel
@izhmel
4 years ago
1,323 posts
Still... OneAll social login buttons open the window but don't redirect and the signup process gets truncated.
Is there a way for these buttons to work with the widget? (lines 76 to 81 in user_signup.tpl)


--
The Scientist
dubmusic.com
Thanks for any assistance.

Tags