Forum Activity for @paul

paul
@paul
04/03/14 11:49:28PM
4,335 posts

Planning out this module... (?)


Jamroom Developers

The jrChainedSelect module might help here, maybe not directly as its designed for use with the Form Designer, but keep it in mind.
Alternatively, what you want is still doable when developing a module. When building a form field you can specify a javascript call in the parent select field that will populate a child select.
paul
@paul
04/03/14 11:04:26AM
4,335 posts

Planning out this module... (?)


Jamroom Developers

Not sure, but I think you might be able to create a 'multi' select_and_text field already.
If not, it could easily be emulated with a normal multi-select field and an associated text field, then build the comma separated list in the form save function.
In fact, that might be more flexible as users could then select multiple options and a new one all in one go.
paul
@paul
04/03/14 10:35:29AM
4,335 posts

Planning out this module... (?)


Jamroom Developers

Could the 'module_categories' DS field be a comma separated list - songs,videos,images
You could then still search for specific categories with the IN operator
paul
@paul
04/03/14 06:43:05AM
4,335 posts

JrSeamless will not work


Installation and Configuration

Take out the jrImage_display bit.
Do one thing at a time.
Get just the titles showing first, then carefully add in other stuff, one piece at a time!!
paul
@paul
04/03/14 06:19:12AM
4,335 posts

JrSeamless will not work


Installation and Configuration

Just paste my code above into your index_video.tpl template, then in the template that has the jrSeamless_list call, replace that call with {jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created DESC" limit="16" template="index_video.tpl"}
Have you tried that?
paul
@paul
04/03/14 05:30:50AM
4,335 posts

JrSeamless will not work


Installation and Configuration

So you're asking what your index_video.tpl should look like?
Start with something like -
{if isset($_items)}
    {foreach from=$_items item="item"}
        {if $item.seamless_module_name == "jrVideo"}
            {* Show the video details *}
            Video Title: {$item.video_title}<br>
        {elseif $item.seamless_module_name == "jrYouTube"}
            {* Show the youtube details *}
            YouTube Title: {$item.youtube_title}<br>
        {/if}
    {/foreach}
{/if}
then build on that.
Add in a {debug} to see what item variables you have to play with.
Look at the video and youtube module item_list and item_detail templates to see how they do it.
hth
Pa
paul
@paul
04/03/14 04:45:52AM
4,335 posts

JrSeamless will not work


Installation and Configuration

Where you have

{jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created DESC" require_image="video_image" limit="16" template="index_video.tpl"}

replace it with

{jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created DESC" limit="16"}

then view the page to see a mix of video and youtube items.

Hint - Set your cache time to 0 (zero) when developing templates so as to see any changes immediately.
paul
@paul
04/03/14 04:18:58AM
4,335 posts

JrSeamless will not work


Installation and Configuration

jrSeamless is returning items from different datastores so there are going to be a mix of different 'prefixes' for the item variables, in this case 'video' and 'youtube'. Any template used with jrSeamless is going to need some conditional statements to handle the different prefixes -
{if isset($_items)}
    {foreach from=$_items item="item"}
        {if $item.seamless_module_name == "jrVideo"}
            {* Show the video details *}
        {elseif $item.seamless_module_name == "jrYouTube"}
            {* Show the youtube details *}
        {/if}
    {/foreach}
{/if}

Initially, try -
{jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created DESC" limit="16""}
This will use the default jrSeamless template and confirm that you are getting items to display. You can then start work on your custom template.
hth
Pa
updated by @paul: 04/03/14 04:19:35AM
paul
@paul
04/03/14 02:05:03AM
4,335 posts

Action Feeds For Audio Plays


Design and Skin Customization

It might be that there are no Tracer items to list.
Wrap the above code in the skin header and footer include calls to see if there is really an error, or just nothing to show.
hth
Pa
paul
@paul
04/02/14 01:37:27PM
4,335 posts

Which way...


The Greenroom

Not my stack. Thought it was yours. Doesn't work anyway - I tried it last night.
The bar is over there, behind the stack and rusty drum kit. Its that long flat thing covered with damp towels, empty glasses and pumps offering dubious delights.
  401