Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
The first docs I want to read: Jamroom5 docs suggestion list
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 08/12/13 07:13 

Douglas:

SteveX:
That sounds cool. Views alone might not be the best way to go with it, might be best to let the developer arbitrate as to which ones are the relevant faq and which ones are just being gamed by numpties. But you know that already Brian.

@Douglas - are you updating your faq module for jr5?


Although you could probably use the jrAparna module to create a FAQ module fairly quick, the jrDocs module would also work well as a FAQ module, so I really didn't see a need to create a FAQ module.

Do we need a FAQ module for JR5?


I don't think so - the Docs module will work just fine.

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
phdemaret



Joined: 02 Aug 2013
Posts: 49

Posted: 08/27/13 23:26 
Hello All,

"The first docs I want to read: Jamroom5 docs suggestion list" :

Template Functions
with basic exemples

{jrCore_list}
with basic exemples

Also
jrCore_page_display();
jrCore_form_validate($_post);
....
Very Happy

Thanks,
Ph.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 08/28/13 09:27 
Anything at all to do with validation, one paragraph would probably do.


_________________
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
smith.kyle
CodeSmith


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

Posted: 08/28/13 10:49 
Is there going to be a full fledged function reference again? Or are they going to be in each module section?

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/28/13 16:40 

SteveX:
Anything at all to do with validation, one paragraph would probably do.


To tide you over. There are a couple of 'validate' locations. One is the "checktypes" which is the validation system for the form fields created in, for example, the config.php files that look like this


Code
   // Block MP3 Downloads
    $_tmp = array(
        'name'     => 'block_download',
        'default'  => 'on',
        'type'     => 'checkbox',
        'validate' => 'onoff',
        'required' => 'on',
        'label'    => 'block MP3 downloads',
        'help'     => 'By default MP3 files are blocked from being downloaded via the "download" URL, and are only playable in the site audio players. Uncheck this option to allow download of MP3 files',
        'order'    => 1
    );
    jrCore_register_setting('jrAudio',$_tmp);


That one has the 'validate' => 'onoff'. This is the checktype form of validation. The options you have are easy to see if you open the file:
/modules/jrCore/lib/checktype.php

It will have all the core defined checktypes in it as individual functions. (modules can define their own checktypes too.)

For me the easyest way to get there and look at that file is
* ctrl+shift+alt+n in phpstorm "search for symbol" and type 'onoff'.
That will get me to the checktype.php file, then
* ctrl+shift+- will squish the functions down to where there is only the function definitions and explanations.


So then you can use any of those checktypes for the 'validate' = portion of the form fields.

---------------
Ill get the custom checktype validation explanation out with the docs, but if the options above dont cut it, please say and Ill write a bit on adding your own type of validation. an example of this would be "function jrAudio_form_field_audio_validate()"


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


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 08/28/13 16:50 

smith.kyle:
Is there going to be a full fledged function reference again? Or are they going to be in each module section?

Kyle


Each module developer will have their own profile once jamroom.net gets changed over to running JR5. Each developer will be responsible for their own docs.

Making a list of all the functions wasn't something on my radar. Probably because I didn't use that much in JR4. And now with JR5 + phpstorm, you can type 'jrCore' then use ctrl+space to autocomplete, then do ctrl+q for extra info and get all the docblock for the function as you are coding it. Saves going to the docs at all.

Looks like this:


You can do the same for anything. so if you wanted a jrAudio function 'jrAudio' ctrl+space then ctrl+q and you have all the jrAudio functions in front of you. Docs built into the editor automatically.


_________________
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: 08/29/13 10:56 
Ok cool - eclipse will do the same thing. Thanks!

Kyle


_________________
kyle[at]jamroom.net

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

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



Joined: 17 Jan 2013
Posts: 21

Posted: 09/07/13 04:49 
As a new user to Jamroom I would really love some Docs to work with. Still trying to get my head around the tpl's etc. Any idea on how long till we have some documentation?

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 09/07/13 09:01 

ba9801:
As a new user to Jamroom I would really love some Docs to work with. Still trying to get my head around the tpl's etc. Any idea on how long till we have some documentation?


Very soon - I would say in the next week or so we will be opening up the new Jamroom.net for beta testing - that will let us get feedback from everyone before we throw the switch on it.

We're almost there Smile

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

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