Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
jmchoose question
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 01/10/09 16:11 
I think its time for a module cat now lol
k on jmchoose if i am using a form field how would i enter this I am having problems having it show up also I am not sure if this is the reason i will probably test this after this message now that I think about it.
I didnt want this Form field to show up in the artist profile page so i put it as admin only and selected artist.
jmChoose($language['jdTest'][5],'test_selectoption','$BAND_SELECTION',$_rep['test_selectoption']);

in the form area of the module what would be the correct way to write this out.


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


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

Posted: 01/10/09 16:21 
Make sure you check this page out:

http://www.jamroom.net/Function_jmChoose

the '$BAND_SELECTION' needs to be an array of data with key => value pairs for the "value" of the option, and the option text. Check out my comment on this page as well - you might be able to reuse a txt file you already have for $BAND_SELECTION:

http://www.jamroom.net/Function_jmSelect


_________________
kyle[at]jamroom.net

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

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 01/10/09 16:27 

smith.kyle:
Make sure you check this page out:

http://www.jamroom.net/Function_jmChoose

the '$BAND_SELECTION' needs to be an array of data with key => value pairs for the "value" of the option, and the option text. Check out my comment on this page as well - you might be able to reuse a txt file you already have for $BAND_SELECTION:

http://www.jamroom.net/Function_jmSelect
\
This is where I am at on this page already it helped me in the input but im it doesnt help to tell me what wach one of those areas actually mean


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


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

Posted: 01/10/09 16:30 
Sorry, I think I'm not understanding your question - are you looking for what those functions do? or what the parameters do?


_________________
kyle[at]jamroom.net

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

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 01/10/09 16:38 

smith.kyle:
Sorry, I think I'm not understanding your question - are you looking for what those functions do? or what the parameters do?


Sorry for confusing you I am looking for how would i write out the function I guess I want to use a custom form select option but its not working yet if you can show me how that is done and maybe explain the different areas to me
jmChoose($language['jdTest'][5],'test_selectoption','$BAND_SELECTION',$_rep['test_selectoption']);
jmChoose (string $text, string $name, array $data, [string $selected = ''],

what is the $data for what goes there string selected what goes there
if someone can just break this down as how that this works for me

so i did take out the band_selection and put
'name' but how do i put the form filed in place


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...

Last edited by jamesd116 on 01/10/09 16:49; edited 1 time in total
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 01/10/09 16:46 
Maybe this may be easier to explain it this way

jmInput($language['jrYouTube'][4],'youtube_video_id','text',$_rep['youtube_video_id']);

The first part before the comma I know its going to be my language string
The second part the you tube video id is this where its going to go into the db because the words are in there twice so what is the reason its there twice
Third part text I know this is the type of file its going to be text gives box file gives upload i havent tried the others yet
fourth what is the $_rep for with the second database option

Also if you do a file upload how do you tell where to place the file at
hopefully this helps explain what im looking for better


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 01/10/09 16:53 
Actually im thinking select would be better thanks for that and i just noticed your comment on the bottom let me try and work with this and see if i cn get this to work now


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 01/10/09 16:55 
tahts what i needed ti worked like a dream thanks Kyle


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
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.