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



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

Posted: 08/26/09 09:09 
Brian sorry disreguard this part of the question in the support the easy questiopns i should be asking here.
1) In a module jmYesNo can someone tell me how to do this in the schema i klnow its not int or varchar so what would I use for the schema
2) start and End date I am using and the start date obviously is current time stamp how would ui do this for the form and the schema for end date lets say maybe +30 days to expire
Thanks James


_________________
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: 08/26/09 18:12 
any help with the end date


_________________
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: 08/26/09 19:50 
Check out how Jamroom does it in the content.php script.

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: 08/26/09 20:11 

jamesd116:
1) In a module jmYesNo can someone tell me how to do this in the schema i klnow its not int or varchar so what would I use for the schema


you can use any of these. just pick one that will be easy to validate.
if you used INT(1) then 0 is off and 1 is on or 0 is NO and 1 is yes.
if you use varchar(3) then you could use 'yes' and 'no'

you could even use ENUM('yes', 'no') it only matters how you want to access it from the php that will determine which is best to use.


_________________
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.