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



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

Posted: 05/22/09 10:56 
I have made it quite aways on this with a lot of trial and error but for 2 hours I have been trying to get the preselected option to work along with the help area
can you please tell me whats going wrong
I am seeing a white page when i add the selected
jmYesNo('Field Text','dbfield','This i think is supposed to be the help' [$selected = 'no']);

this is all going off of what I found in the functions page

jmYesNo (string $text, string $name, string $help, [string $selected = 'yes'])

it works with out the selected part as far as I can see to this point except for the help text


_________________
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
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 05/22/09 14:42 
You don't need the selected one, you can just miss it out, or just try 'no'. You would also need a comma before it.

Code
jmYesNo('KnowledgeBase Access','quota_kbase_access','If this is set to "yes", then profiles in this quota will be allowed to create KnowledgeBase Articles.',$quota['quota_kbase_access']);

It should look something like this.

$quota['quota_kbase_access'] will be the existing yes/no value, if any.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
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.