Forum Activity for @michael

michael
@michael
03/09/15 02:32:19PM
7,839 posts

Best Demo Template for Development?


Design and Skin Customization

Hard to say because each skin has a different purpose. Genosis has a bunch of features, but those features are for creating Family ancestory websites so are un-related if your planning a music site.

Check out the demos and see if anything looks close to what your after and go from there.

The oinkba skins got ported to JR5 but its not a free upgrade. The prices of them came down from about $300 to $49 which is much more reasonable. They're nice skins for staring a music site on.

If you're comfortable editing code, then don't worry about integrating with Site Builder, its a system for those that don't want to look at code. You have more fine-grain control over building if you don't use it.
michael
@michael
03/09/15 02:26:16PM
7,839 posts

moving data from one module to another


Design and Skin Customization

First figure out how you want to move them. If you want to move them by you visiting a url, then you want a new view in the index file of your module.


eg:
function view_xxYourModule_somewhere($_post, $_user, $_conf)
{
fires when you visit the url
your-site.com/yourmodule/somewhere

If you want to fire the module once a day then use events and listeners to fire the module's function off when 'daily_maintenance' fires.

To do that, add the name of the function you want to fire into your modules _init() function, eg:

jrCore_register_event_listener('jrCore', 'daily_maintenance', 'jrPanel_daily_maintenance_listener');

is in the include.php file for the jrPanel module and it fires jrPanel_daily_maintenance_listener() once a day.

The next thing you need to do is to get the datastore items your interested in, so need to know which those are, then search for them.

To look for examples of searching for stuff inside a function search for '$_sp =' and that will show you other locations where modules are searching for stuff. It looks like this:
    $_sp = array(
        'search'   => array(
            "guestbook_owner_id = " . intval($_post['profile_id'])
        ),
        'order_by' => array(
            '_created' => 'DESC'
        ),
        'limit'    => 250
    );
    $_rt = jrCore_db_search_items('jrGuestBook', $_sp);
( example above ^ came from jrGuestBook )
That will give you all the found items inside $_rt['_items'] so then check that the array exists to make sure you have items, then itterate over them but change the prefix.

so:
if (isset($_rt) && is_array($_rt['_items'])) {
  $pfx = jrCore_db_get_prefix('xxDestinationModule'); //replace destination module with where you want to put the new info.
  foreach($_rt['_items'] as $item){
    $_sv[] = array(
    $pfx.'_title' = $item['whatever_title'],
    $pfx.'_description' = $item['whatever_description']
    ); // continue on with that with the fields your after.
  }
}

Then you have an array of items to either be created or updated. I think your after creating, so
jrCore_db_create_multiple_items('xxDestinationModule', $_sv);
should get the new stuff saved in the wanted datastore.
michael
@michael
03/09/15 02:01:02PM
7,839 posts

Date drop down showing date when not entered


Design and Skin Customization

There is no type. What type of form field is it?
michael
@michael
03/09/15 01:48:22PM
7,839 posts

Usign Site Builder features instead of default item_list.tpl


Using Jamroom

not particularly clear :) but I'll try.

You've set the menu url to 'articles'
NAME: Articles
URL: articles

and you cant use the Site Builder features on that page. You want to know why right?

The order of priority for a URL goes:
* does the skin have any templates named articles.tpl YES = use that. NO = check modules
* are there any modules that use /articles/ as their base YES = use that. NO = Site Builder
* does a page already exist in Site Builder for /articles YES = use that. NO = Create a new Site Builder page here.

So you probably already have a skin template in your active skin articles.tpl
updated by @michael: 03/09/15 01:48:59PM
michael
@michael
03/09/15 02:33:42AM
7,839 posts

Disabling User and Maintaining Their Content


Installation and Configuration

Yeah mate. I really do like it. My wife showed me a similar method for navigating the crazy crowded streets in Tokyo. Make the weirdest face you can and watch as the crowds that want to keep their distance part.
updated by @michael: 03/09/15 02:34:21AM
michael
@michael
03/09/15 02:08:06AM
7,839 posts

Jamroom.net code highlighter


Jamroom Developers

Took a look at this just now, unfortunately there isn't a great solution.

Currently we use 'smarty' mode from here:
http://codemirror.net/mode/index.html

If I change it to 'javascript' mode then it is formatted correctly, but anything that isn't javascript is just normal text, so smarty and html miss out on formatting.

If we go for 'htmlmixed' then the javascript comes out nicely and so does the HTML but the smarty is grey text. So the best option would be a 'smartymixed' option...... but....that option doesn't exist on the above page.

It does exist here though:
http://shimbamobile.com/wp-content/plugins/LayerSlider/static/codemirror/mode/smartymixed/

but.... it doesnt work as nicely as it should and doesn't fix the javascript comment issue.

So right now, I can't see a better option than what we have sorry. :(

--edit--
semi-related discussion on codemirror's github:
https://github.com/codemirror/CodeMirror/issues/2871
updated by @michael: 03/09/15 02:18:55AM
michael
@michael
03/09/15 01:20:49AM
7,839 posts

Disabling User and Maintaining Their Content


Installation and Configuration

derrickhand300:....My plan is to ....talk all retarded and slobber when I answer the lawyer call ....
:) classy! lol
michael
@michael
03/09/15 01:16:57AM
7,839 posts

Best Demo Template for Development?


Design and Skin Customization

I reckon start with jrSlate. Build the site builder system into your development process so those receiving the end product have more features.

The difference between that method and building something like ProJam is that you can package multiple uses for the same skin by adding multiple package files.

In a standard skin you build the code you want into the page templates.

In Site Builder you build a base holder container then create widgets via the Site Builder system and export that.

In each of the Widgets you can add a 'template' which will correspond to the template in the skin so you can build lists with different styles than just the default.

Or start with Elastic and put site builder into it then do that ^^. Probably the best general way to build a skin 'coz its easily customized by the end user.

The alternative is to build a skin for a specific purpose. "Music" "Video" "Photography" "???" .....
michael
@michael
03/09/15 01:11:14AM
7,839 posts

Jamroom Hosting is now live for everyone!


Jamroom Hosting

Yeah, it should be real easy to see. Here's a screenshot. Try logging out and back in again to see if its there.
screenshot_hosting.png screenshot_hosting.png - 171KB

updated by @michael: 03/09/15 01:11:42AM
michael
@michael
03/08/15 03:31:17PM
7,839 posts

"Jamroom Lists" -- and access to the JR Glossary


Suggestions

added 'jrCore_list' and 'datastore' to the glossary

"Glossary"
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/2568/glossary

Thanks.

If you have any other suggestions for the glossary, I'll get them added in.
  571