Forum Activity for @paul

paul
@paul
04/06/14 06:36:58AM
4,335 posts

Latest profile youtube added used in a profile


Design and Skin Customization

MAD©:One last question, Does the jrYoutube module have any code to

hide suggested videos when the video finishes https://developers.google.com/youtube/player_parameters#rel

and

also to loop? https://developers.google.com/youtube/player_parameters#loop

Tricky one that. In short, no. Something would have to detect when the video had finished, but how would it know? If the streaming stopped, it might be just because it stuttered because of a slow connection.
I did once, for a client, do a YT playlist and start a timer based on the YT length in its data, then move on to the next one when timeout occurred. Again, not ideal as the timer may not be totally accurate, or the video may have took a bit of time to start, to have stuttered, so it'll get truncated.

Unless there's are easier trick to this that I'm missing?
paul
@paul
04/06/14 06:29:58AM
4,335 posts

JrSeamless will not work


Installation and Configuration

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
@paul
04/05/14 10:11:53AM
4,335 posts

Latest profile youtube added used in a profile


Design and Skin Customization

The URL you give is the URL to list ALL of a profile's youtubes. I thought this was sometime in the header?
I don't think my code is being run, or its erroring. assigning to 'htp_youtube.tpl' will not work as smarty will think that is an array. There's no reason why my assign to 'youtube_tpl' will not work, I do things like that all the time.
paul
@paul
04/05/14 08:01:21AM
4,335 posts

Latest profile youtube added used in a profile


Design and Skin Customization

    {capture name="template" assign="youtube_tpl"}
        {literal}
            {foreach $_items as $title => $item}
                {jrYouTube_embed type="iframe" width="100%" item=$item auto_play=true}
            {/foreach}
        {/literal}
    {/capture}
    {jrCore_list module="jrYouTube" order_by="_created numerical_desc" limit=1 search="_profile_id = `$_profile_id`" template=$youtube_tpl}
paul
@paul
04/05/14 07:48:12AM
4,335 posts

Latest profile youtube added used in a profile


Design and Skin Customization

jrYouTube_embed does need the youtube id to work. Your code isn't providing it.
paul
@paul
04/05/14 07:44:54AM
4,335 posts

jrCoreChainedSelect


Jamroom Developers

I'm actually just testing a Worldwide Country/State/City library I've just built for import to jrChainedSelect. If it works I'll make it available somewhere, but beware, there appears to be approximately 130,000 cities in the world so its a big file and takes a time to import.
Point me to the docs you refer to and I'll make sure they're up to date.
Thanks
Pa
paul
@paul
04/05/14 07:02:14AM
4,335 posts

Latest profile youtube added used in a profile


Design and Skin Customization

You've missed the {foreach from=$_items item="item"} loop out of the template -
{if isset($_items)}
{foreach from=$_items item="item"}
<div style="display: inline-block; width:100%">
    {jrYouTube_embed profile_id=$_profile_id item_id=$item._item_id type="iframe" width="100%" auto_play=true}
</div>
{/foreach}
{/if}

Alternatively, just put the embed call straight in the header template -

{jrYouTube_embed profile_id=$_profile_id item_id=x type="iframe" width="100%" auto_play=true}

where 'x' is the item_id of the youtube.
Pa
paul
@paul
04/04/14 03:00:43PM
4,335 posts

Using Jamroom on other sites.


Off Topic

Is games just a module to list, rate, comment on games? If so, Aparna again.
paul
@paul
04/04/14 02:28:17PM
4,335 posts

jrCoreChainedSelect


Jamroom Developers

I'm trying to build a country/state/city csv file from what we have that can be imported into the jrChainedSelect module.
Not sure if its possible yet, and it could end up pretty big. I have 148634 cities registered in the files!!
paul
@paul
04/04/14 02:03:44PM
4,335 posts

jrCoreChainedSelect


Jamroom Developers

Actually, that might be doable from what we have in those files. Let me check it out.
  399