JrSeamless will not work

alt=
@danne
10 years ago
31 posts
Hi,
I have installed jrSeamless but it dosen´t work I have this code,
{jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created DESC" require_image="video_image" limit="16" template="index_video.tpl"}

The videos isn´t found
//Danny
updated by @danne: 05/09/14 05:16:27PM
alt=
@danne
10 years ago
31 posts
This is my website http://www.jamron.sofsweden.com/
It´s under "Nya Videos"

//Danny
michael
@michael
10 years ago
7,744 posts
Whats the code content of template="index_video.tpl"
alt=
@danne
10 years ago
31 posts
Hi,
Here it is,
//Danny

{if isset($_items)}
{foreach from=$_items item="item"}

{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._item_id size="small" crop="auto" alt=$item.video_title title=$item.video_title class="top_rank" width=80}
{$item.video_title|truncate:24}
{$item.video_album|truncate:24}


{/foreach}
{/if}
paul
@paul
10 years ago
4,331 posts
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


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 04/03/14 04:19:35AM
alt=
@danne
10 years ago
31 posts
Hi again,
Sorry but I don´t understand were I shall place the code you have written, I am not so good at this as you understand:)

//Danny
paul
@paul
10 years ago
4,331 posts
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 Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
Hi,
Now it works, but I gave you the wrong template this is the index_video.tpl

{if isset($_items)}
{foreach from=$_items item="item"}

{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._item_id size="medium" crop="auto"
alt=$item.video_title title=$item.video_title width=71}
{/foreach}

{/if}

Where do I put the code you gave me

//Danny
paul
@paul
10 years ago
4,331 posts
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 Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
Hi again,

I can not make it work, could you help me with code for index_video.tpl, I tried to put the code in diffrent places but it will not work, shit (sorry frustrated)
//Danny
paul
@paul
10 years ago
4,331 posts
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 Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
I have past it like this, and t looks like this, http://www.jamron.sofsweden.com/

{if isset($_items)}
{foreach from=$_items item="item"}
{if $item.seamless_module_name == "jrVideo"}
{* Show the video details *}
Video Title: {$item.video_title}
{elseif $item.seamless_module_name == "jrYouTube"}
{* Show the youtube details *}
YouTube Title: {$item.youtube_title}
{/if}



{jrCore_module_function function="jrImage_display" module="jrVideo,jrYouTube" type="video_image" item_id=$item._item_id size="medium" crop="auto" alt=$item.video_title title=$item.video_title width=71}

{/foreach}

{/if}
paul
@paul
10 years ago
4,331 posts
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 Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
{if isset($_items)}
{foreach from=$_items item="item"}
{if $item.seamless_module_name == "jrVideo"}
{* Show the video details *}
Video Title: {$item.video_title}
{elseif $item.seamless_module_name == "jrYouTube"}
{* Show the youtube details *}
YouTube Title: {$item.youtube_title}
{/if}

This fell out when i copy the code----------------------------------------------

div class="index_video">
alt=
@danne
10 years ago
31 posts
div class="index_video" a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.video_title_url}"
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
You can use bbcode in a forum post to make the code show:
<div class="index_video">

Put your code between [code and [/code (with an ending ] on each code tag)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 04/03/14 07:30:58AM
alt=
@danne
10 years ago
31 posts
Hi,
I tried every way and I can´t get it to work I just understand what I doing wrong.

//Danny
brian
@brian
10 years ago
10,148 posts
Can you post the exact code you are using so we can try it here? Make sure and place it in code BBCode tags - i.e.

[ code ]

your code here

[ /code ]

but have NO spaces between the []'s the word code.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@danne
10 years ago
31 posts
Hi, Thank you:)

This is my index_video.tpl

{if isset($_items)}
{foreach from=$_items item="item"}
[ ]
{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._item_id size="medium" crop="auto" alt=$item.audio_title title=$item.video_title width=71}
{/foreach}
{/if}
alt=
@danne
10 years ago
31 posts
I don´t know what I´m doing wrong, but this code shall be inside the [ ]

div class="index_video"> a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.video_title_url}"
brian
@brian
10 years ago
10,148 posts
I don't see any code tags in your post - did you place your code between code tags? Why don't you just email at to me at brian [at] jamroom [dot] net and I will place it in your post for you.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
douglas
@douglas
10 years ago
2,793 posts
It should look something like this image:
bbcode_code.jpg
bbcode_code.jpg  •  39KB




--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 04/03/14 09:26:38AM
brian
@brian
10 years ago
10,148 posts
I just got your email and am testing it here. First issue is that the jrSeemless_list parameter is "modules" - not "module". However, I am seeing an SQL error coming from the module (which should not happen) so I am checking it out and will let you know what I find.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Sorry for the late followup here - Paul has identified an issue with the module and we will get a fix out asap.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@danne
10 years ago
31 posts
Ok, Thanks
brian
@brian
10 years ago
10,148 posts
I've updated the module in the Marketplace - let us know if you see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@danne
10 years ago
31 posts
Hi,

It still dosen´t work, have I installed jrSeamless wrong perhaps I installed it directly from the marketplace and I made it active nothing else.

//Danny
paul
@paul
10 years ago
4,331 posts
Create a skin template file called seamless_test.tpl and put this code in it -
{jrCore_include template="header.tpl"}

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

{jrCore_include template="footer.tpl"}

Run http://www.jamron.sofsweden.com/seamless_test

What do you get? A list of 10 videos? If so, jrSeamless is installed ok and you then need to progress with installing the code snippets given above into your templates to make Youtube/Video items display as you want them to.
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
Hi Paul,Seamless works if I do it like this but as soon as I link it to index_audio or index_video it dosen´t work.
Check out on my website www.jamron.sofsweden.com
The code for the index_audio or video is this:
{if isset($_items)}
  {foreach from=$_items item="item"}
  <div class="index_audio"> <a href="{$jamroom_url}/{$item.profile_url}/{$_params.module_url}/{$item._item_id}/{$item.audio_title_url}">{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="medium" crop="auto" alt=$item.audio_title title=$item.audio_title width=100}</a> </div>
{/foreach}
{/if} <br clear="all" />

//Danny
paul
@paul
10 years ago
4,331 posts
That code is for displaying audio items. I thought you were after videos and youtubes?
With respect, from all your previous posts, I don't think you are understanding how Jamroom templates work and how you need to modify them to use jrSeamless.
Please explain exactly what you are trying to do, and what skin you are using.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
Hi,
Ok, first I´m using Maestro and no I don´t understand Jamroom (Yet).
The reason I´want to use Seamless is that I want the videos that are uploaded or linked from Youtube to appear under the headline "Nya Videos" and the same regarding the Audio uploaded and soundcloud under the headline "Ny Musik".
As you can see on my site I have used Seamless for "Nya Videos" and the original code on "Ny Musik"

//Danny
alt=
@danne
10 years ago
31 posts
Hi,
Did you understand what I mean, I am Swedish so my english explonations can be hard to uderstand:)

//Danny
paul
@paul
10 years ago
4,331 posts
Sorry for the delay.
Maestro is a third party skin that we don't support so I cannot tell you off hand which templates would need modifying.
Email your Admin and FTP logins to me at paul [at] motagator [det] net and I'll take a look and try to point you in the right direction.
Pa


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
10 years ago
4,331 posts
OK - Check it out now and see what I've done with your index_audio.tpl and index_video.tpl templates in order to make them work with jrSeamless.
Cheers
Pa


--
Paul Asher - JR Developer and System Import Specialist
alt=
@danne
10 years ago
31 posts
Hi Paul,
Thanks it works fine, very good:)
Just one thing, the uploaded videos or audios dosent´t work, the linking is ok but the player don´t work.

//Danny

Tags