Forum Activity for @michael

michael
@michael
06/06/14 09:33:18PM
7,832 posts

How daily maintenance execute


Jamroom Developers

It fires when the site is opened after the period has expired. So you can fire it by having cron open the webpage once per day.

The code for it is at the bottom of router.php which controls the routing system if you want to see whats happening.

/modules/jrCore/router.php
michael
@michael
06/06/14 07:39:39PM
7,832 posts

Aparna clone module - arrange items


Jamroom Help

Yup, its addictive. I'm working on a new one now too.
michael
@michael
06/06/14 04:53:46PM
7,832 posts

Aparna clone module - arrange items


Jamroom Help

Thanks for making an effort.

I've duplicated your module here and the correct changes are:
/modules/i2Channels/templates/item_index.tpl

use this code for the list:
{jrCore_list module="i2Channels" profile_id=$_profile_id order_by="channels_display_order numerical_asc" pagebreak="8" page=$_post.p pager=true}

-----------
in a module:
/modules/i2Channels/templates/index.tpl

is the list that shows up at:
yoursite.com/channels/

and
/modules/i2Channels/templates/index_index.tpl

is the list that shows up at:
yoursite.com/(profile name)/channels/
michael
@michael
06/05/14 05:18:25PM
7,832 posts

Aparna clone module - arrange items


Jamroom Help

datastore data is ultimately in the database, so you have many options as to how you can view it:
* via the datastore browser of the module
* via phpmyadmin
* via a {debug} in the template.

Whichever way you like.

change the order via the system you put in place, then see how the datastore of each item changes after that.

I would expect order_by="channels_display_order numerical_desc" to work given what your wrote above. (provided that channels_display_order changes after using the arrange items feature.)
michael
@michael
06/05/14 04:07:25PM
7,832 posts

Aparna clone module - arrange items


Jamroom Help

Yeah, its the order in your index.tpl page.

It will be something like:
{jrCore_list module="i2Channels" order_by="_created numerical_desc"........}

change that order_by to "channels_display_order numerical_asc".

Not sure if that key is right or not. Take a look in the datastore to find the right key for your module.
michael
@michael
06/03/14 12:22:03AM
7,832 posts

Vimeo


Using Jamroom

There's some instructions on this forum thread:

"Where may I find the following on vimeo and soundcloud."
http://www.jamroom.net/the-jamroom-network/forum/installation-and-configuration/9034/where-may-i-find-the-following-on-vimeo-and-soundcloud
michael
@michael
06/02/14 10:43:21PM
7,832 posts

Union and Join in Jamroom


Jamroom Developers

too much to guess at, need more info.
michael
@michael
06/02/14 09:54:29PM
7,832 posts

Union and Join in Jamroom


Jamroom Developers

Standard database tables can be used instead of using a datastore if you like.

There are some examples of this in the code. One example from the jrChainedSelect module:
    $tbl = jrCore_db_table_name('jrChainedSelect', 'sets');
    $req = "SELECT * FROM {$tbl} WHERE set_id = {$sid} LIMIT 1";
    $_rt = jrCore_db_query($req, 'SINGLE');

so you can build tables and join them however you like.

The concept of the datastore is that you dont need to define database structure. And that any other modules can add to your modules data if they need to.

So there really shouldn't bee a need for a union or a join, the data should just be there in the datastore.

One example of this is the jrTags module that allows users to tag items like an audio item.

As well as storing the tags in its own datastore for look up, it also writes the tag directly to the datastore of the jrAudio module.

So when someone gets a list of audio items, the tags just come back as part of the item.

------
If your wanting to add your (something) into the results for an item list lookup, you can use the 'events' and 'listeners' system to listen for when that/those item(s) are requested and inject whatever you want to add in when the results are returned.
michael
@michael
06/02/14 05:37:22PM
7,832 posts

Admnister a Jamroom site $


Using Jamroom

in the file /skins/jrNova/vimeo_videos.tpl look for the div just below class="menu_active" called class="inner".

It will have an {if} section that looks for "by_newest"/"by_rating" etc.

That section is either missing a {jrCore_list} function, or the {jrCore_list} function is looking for vimeo videos that have been added to the system but not finding any.
  690