Forum Activity for @paul

paul
@paul
08/01/14 01:00:51PM
4,335 posts

Changing from newest videos to newest youtube videos


Design and Skin Customization

Put width and height options in the YouTube img tag and adjust their values to suit -
<img src="{$item.youtube_artwork_url}" width="100px" height="100px" alt="{$item.youtube_title|jrCore_entity_string}" class="iloutline img_scale">

updated by @paul: 08/01/14 01:01:41PM
paul
@paul
08/01/14 04:27:06AM
4,335 posts

Changing from newest videos to newest youtube videos


Design and Skin Customization

In the jrElastic index.tpl file, find this bit of code -
            {* Newest Videos Block *}
            {if jrCore_module_is_active('jrVideo')}
            <div class="block">
                <div class="title">
                    <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="11" default="newest"}&nbsp;{jrCore_lang skin=$_conf.jrCore_active_skin id="14" default="videos"}</h2>
                    {jrCore_module_url module="jrVideo" assign="video_murl"}
                    <div class="title-more"><a href="{$jamroom_url}/{$video_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="jrVideo" order_by="_created desc" template="index_list_videos.tpl" limit="5" require_image="video_image"}
                    </div>
                </div>
            </div>
            {/if}
and change it to -
            {* Newest Youtube Videos Block *}
            {if jrCore_module_is_active('jrYouTube')}
            <div class="block">
                <div class="title">
                    <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="11" default="newest"}&nbsp;{jrCore_lang module="jrYouTube" id="40" default="YouTube"}&nbsp;{jrCore_lang skin=$_conf.jrCore_active_skin id="14" default="videos"}</h2>
                    {jrCore_module_url module="jrYouTube" assign="youtube_murl"}
                    <div class="title-more"><a href="{$jamroom_url}/{$youtube_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="jrYouTube" order_by="_created desc" template="index_list_youtubes.tpl" limit="5"}
                    </div>
                </div>
            </div>
            {/if}
Then, copy index_list_videos.tpl to index_list_youtubes.tpl, and edit it to -
{if isset($_items)}
    {foreach from=$_items item="item"}
    <div style="display:table">
        <div style="display:table-cell">
            <a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.youtube_title_url}"><img src="{$item.youtube_artwork_url}" alt="{$item.youtube_title|jrCore_entity_string}" class="iloutline img_scale"></a>
        </div>
        <div class="p5" style="display:table-cell;vertical-align:middle">
            <a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.youtube_title_url}" class="media_title">{$item.youtube_title}</a>
        </div>
    </div>
    {/foreach}
{/if}
hth
Pa
paul
@paul
07/30/14 06:07:18AM
4,335 posts

JrCore_list order with multiple facters


Using Jamroom

A custom module could listen for jrRating calls and add in a 'weighted' rating value based on a pre-defined rule using total number of ratings and their values.
Just a thought :-)
paul
@paul
07/30/14 05:11:02AM
4,335 posts

How do I show different things for different profiles?


Design and Skin Customization

Ah yes - You did say 'specific user' ;-)
The Douglas solution is probably better in that case.
paul
@paul
07/30/14 05:05:01AM
4,335 posts

How do I show different things for different profiles?


Design and Skin Customization

Probably the easiest way is to allocate the 'profile groups' separate quotas, then use the $profile_quota_id variable in the templates to show the different options -
{if $profile_quota_id == 1}
Do This
{elseif $profile_quota_id == 2}
Do That
{else}
Do the Other
{/if}
Put a {debug} in the template first to make sure $profile_quota_id is a valid variable for the template. It might be part of the $_items array if the template you want to modify is a 'row' template.
hth
Pa
paul
@paul
07/27/14 11:38:41PM
4,335 posts

mp3 sales without signup


Using Jamroom

jrFoxyCart
paul
@paul
07/25/14 12:35:48PM
4,335 posts

Sorting the $_items array according some field


Jamroom Developers

Check that there is a datastore field called 'venues_title'. Are you sure its not 'venue_title', say, or you've not named it something else in your custom module?
Maybe try taking out the ASC bit. It should default to that anyway.
If all else fails, give me access to your site via a support ticket and I'll check it out for you.
Pa
paul
@paul
07/25/14 08:59:32AM
4,335 posts

Sorting the $_items array according some field


Jamroom Developers

Not sure if its the issue but try taking out the two spaces between venues_title and ASC. Leave just one space.
If its still the same, how is it not working? No results at all, or not in the specified order?
paul
@paul
07/25/14 07:16:23AM
4,335 posts

Sorting the $_items array according some field


Jamroom Developers

That looks like the code of the 'item_list' that the jrCore_list calls.
Assuming that this is a Venue module following the conventional JR module structure, the jrCore_list call that you need to modify will be in the /templates/item_index.tpl file.
  389