Forum Activity for @paul

paul
@paul
09/22/14 01:38:42PM
4,335 posts

Changing "Newest Audio" to "newest SounCloud Tracks" in jrElastic Theme


Using Jamroom

It really depends on where you want it to show. For example, if you want sound clouds after the audios -

{* Newest Audio Block *}
            {if jrCore_module_is_active('jrAudio')}
            <div class="block">
                <div class="title">
                    <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="11" default="newest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="13" default="audio"}</h2>
                    {jrCore_module_url module="jrAudio" assign="audio_murl"}
                    <div class="title-more"><a href="{$jamroom_url}/{$audio_murl}">{jrCore_lang skin=$_conf.jrCore_active_skin id="22" default="all"}</a></div>
                </div>
                <div class="block_content">
                    <div class="item">
                        {jrCore_list module="jrAudio" order_by="_created desc" template="index_list_audio.tpl" limit="5" require_image="audio_image"}
                    </div>
                </div>
            </div>
            {/if}

{* Newest SoundCloud tracks*}
            {if jrCore_module_is_active('jrSoundCloud')}
            <div class="block">
                <div class="title">
                    <h2>SoundCloud tracks</h2>
                    {jrCore_module_url module="jrSoundCloud" assign="SoundCloud_murl"}
                    <div class="title-more"><a href="{$jamroom_url}/{$SoundCloud_murl}">{jrCore_lang skin=$_conf.jrCore_active_skin id="22" default="all"}</a></div>
                </div>
                <div class="block_content">
                    <div class="item">
                        {jrCore_list module="jrSoundCloud" order_by="_created desc" template="index_list_soundclouds.tpl" limit="5"}
                    </div>
                </div>
            </div>
            {/if}

        </div>

        <div class="col6">
paul
@paul
09/22/14 12:53:06PM
4,335 posts

Changing "Newest Audio" to "newest SounCloud Tracks" in jrElastic Theme


Using Jamroom

Take a look at the jrElastic index.tpl file. You'll see blocks with classes of 'col3', 'col6', then 'col3' again. These are the three columns, left to right.
Look what's inside those 'col' blocks and you'll see other blocks of code that are fairly easily identifiable as the item blocks you see in each column. Just move these item block code sections, in their entirety, to the columns where you want them.
Pa
paul
@paul
09/22/14 07:54:46AM
4,335 posts

Changing "Newest Audio" to "newest SounCloud Tracks" in jrElastic Theme


Using Jamroom

Very easy ;-)
Basically just change all instances of 'jrYouTube' to 'jrSoundCloud' and all instances of 'youtube' to 'soundcloud'.
hth
Pa
paul
@paul
09/21/14 02:04:52AM
4,335 posts

Help! Changing Web Host Just To Run Genosis!


Jamroom Hosting

It depends on what sort of 'stuff' you have on your existing server, of course, but moving it to a new host is basically downloading it to your PC, then uploading it to its new home. You should then be able 'point' your domain name to the new host via its DNS settings.
If you go with Arvixe, part of the package is a new domain name. Alternatively, you can ask them to transfer your existing domain to their safe keeping. Do this if your domain is registered with your existing host and you want to sever all ties with them ;-)
updated by @paul: 12/29/14 09:23:55AM
paul
@paul
09/21/14 01:23:32AM
4,335 posts

like_status For Audio Tracks Not Showing


Design and Skin Customization

Just checked the code - $like_status is passed to the template that creates the button. So is it that template you are modifying?
Otherwise $like_status doesn't exist in other templates.
paul
@paul
09/21/14 01:20:01AM
4,335 posts

like_status For Audio Tracks Not Showing


Design and Skin Customization

Where is your $like_status coming from? Its not part of the jrLike datastore as standard. Are you creating it as a custom variable in your template, or as a custom field in the datastore?
paul
@paul
09/20/14 06:31:32AM
4,335 posts

Jr Seamless function ,order_by wildcards


Design and Skin Customization

Now that's interesting. Have just looked at the sound cloud module code and there's a listener in there to change "soundcloud_file_stream_count" to "soundcloud_stream_count" on module verify functions. Its the same with the youtube and vimeo modules as well.
Not sure when that was introduced but can see why its been done as these modules are not 'file' based.
I think it would be best if I changed the jrSeamless module to handle wildcards better. I'll put it on my todo list and hopefully get it sorted in the next couple of days.
Thanks
paul
@paul
09/19/14 11:39:30PM
4,335 posts

Jr Seamless function ,order_by wildcards


Design and Skin Customization

I've just modded a template to use -

{jrSeamless_list modules="jrAudio,jrSoundCloud" order_by="*_file_stream_count NUMERICAL_DESC" pagebreak=20 template="songs_row.tpl" page=$_post.p}

and it works ok. The site is fully up to date with the latest Core and modules.

I think that in jrSeamless the wildcard only acts on the module prefix. Could that be the issue?
paul
@paul
09/18/14 05:03:24AM
4,335 posts

how can i insert new {key, value} pair to existing table?


Jamroom Developers

User the jrCore_db_update_item function -

jrCore_db_update_item('YourModuleName', 'TheDataStoreItemID', 'Key/ValueArray');

So you might have code like this -

jrCore_db_update_item('xxMyModule', $_rt['_item_id'], array('module_status'=>1));

hth
Pa
  383