Forum Activity for @paul

paul
@paul
08/04/14 09:21:21AM
4,335 posts

JrCore_list order with multiple facters


Using Jamroom

You know, I now remember us talking about this a few months ago.
For MySong's (and my) benefits, what was the sub-query we need to put as the jrCore_list search parameter to do this?
paul
@paul
08/04/14 09:07:12AM
4,335 posts

JrCore_list order with multiple facters


Using Jamroom

Unfortunately the way that DataStores work make this not possible because, as you say, if a field doesn't exist for a DS item, the item cannot be listed by that field.
A way around this would be a custom module that 'listened' for new DS items being created and added in the rating fields, preset to zero. Fairly simple to do!!
paul
@paul
08/03/14 05:53:33AM
4,335 posts

Polls Module issue


Design and Skin Customization

Have voted - It seemed to work ok.
paul
@paul
08/03/14 04:55:25AM
4,335 posts

Polls Module issue


Design and Skin Customization

The poll module remembers the voters' IP addresses as well as user names.
Try logging in as a different user on a friends PC, or on your phone via 3G, say (i.e. not via your own router).
hth
Pa
paul
@paul
08/01/14 01:21:09PM
4,335 posts

Changing from newest videos to newest youtube videos


Design and Skin Customization

Its pretty basic html. If it doesn't work we're all screwed lol
Maybe CSS is overriding things. Take out the class option and maybe the style in the surrounding div
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.
  389