Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
assign value to custom band form field at signup.
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/13/09 23:41 
Is there anyway to assign a value to a 'Band Custom Form Field' on the signup page?

To add to a 'User Custom Form Field' its as easy as assigning the field name to the input, but the same thing does not seam to work for the band custom form field.

Custom form field: user_ar_rep
<input type="text" name="user_ar_rep"......... WORKS.

Custom form field: band_ar_rep
<input type="text" name="band_ar_rep"......... doesn't work.

Even thought they're both created when a new Artist is created. Is there a work around?


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 07/14/09 12:35 
It should work with any band custom form fields, as long as they aren't admin only.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/14/09 18:41 
Aha! it is admin only! (but so is the user custom form field and it gets input.)

I got around the immediate problem with some well overly too complicated SQL queries (and sub queries). But ill know for future.

Thanks Kyle.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 07/14/09 21:42 
Hmm...it shouldn't allow user custom form fields that are admin-only - I'll check it out.

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/14/09 22:34 
no, dont check it out. Smile I do want it to work like that.

There are times that you want the user to be able to input something at the signup, but then not let them have access to that data later. if its marked as 'admin only' then it wont appear in their control panel. Which is exactly how it should work.

My interpretation of 'admin only' is that the option to change it is not there in the users cp account info.

what is the official interpretation of 'admin only'


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 07/14/09 23:01 
Well, since user and band custom form fields are the only admin-only available custom form fields used somewhere other than the control panel, I'm not quite sure, lol. I'll check it out though and see exactly what's happening in each case.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 07/19/09 12:55 
As it turns out, it looks like it was possible to insert user custom form fields on signup, but not band custom form fields on signup. The band custom form fields are inserted a different way than the user ones are in the signup form. I've changed it so that, while they aren't inserted using the same functions, it's now standard that band and user admin custom form fields will _not_ be inserted on signup (sorry, I know it now doesn't work how you want it to, but it's standard now so that admin custom form fields really are admin-only).

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/20/09 16:55 
AAAAHHH NOOOOOO!

sometimes better not to say anything eh.

Right o, here is the problem i have now. I just created a custom module that asks the question at signup:
"who is your representative?": USER INPUT BOX

The value in the input box is processed and after processing the into custom form user field the representative's user_id is entered.

There is no way this type of value can be displayed in the users control panel for alteration

Code
representative_id: 12


With them having the option to change it. Hiding it by CSS is one option, but not a pretty one.

SUGGESTION: Have a setting between 'Admin only' and 'public', maybe 'private' where it can be set, but not changed by the user.

This 'private' setting would be helpful to collect data at signup that you dont want to have alterable. Good for stuff like:
"How did you hear about us":
* google
* yahoo
* email link
* banner advert

dont really want that type of stuff to show in the users control panel.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 07/20/09 17:09 
What you could do is set the user custom form field as you want it (as a regular, non-admin-only input field), and then add the form field name to your form.cfg file so that it won't show in their control panel, but you could still insert it on signup.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/20/09 17:37 
fair enough. Smile


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.