Forum Activity for @michael

michael
@michael
07/27/16 05:33:22PM
7,832 posts

youtube embed


Jamroom Developers

Cool, I re-read the docs on on {capture} they were a bit unclear, so I've tried to clarify them. refresh that page now.
michael
@michael
07/27/16 05:02:40PM
7,832 posts

youtube embed


Jamroom Developers

Strumelia:....
"If you know the youtube video you want, you can just ask for it"
-Maybe he's trying to always have the LATEST video from a particular user showing somewhere on his site aside from on their profile- as opposed to embedding one certain video from that user? He did mention 'latest video'.....

Yup, nice one, you're onto it :) . But before we can jump to the complex we first need to get the simple working.

In order to make that code I posted above show the latest video all that needs doing is to replace the 31 with the variable that contains the number of the latest video.

Ah, but how do we get that........ A: It depends on where we are. Maybe that info is available in the {debug} like @paul suggested, but it only will be if we're in some sort of {jrCore_list} like @ultrajam suggested.

Now that we know the full question: "I'm trying to have the latest imported youtube video from the users profile embedded in the profile_index."

We need to add in a way to get the latest video's item_id

{capture assign="template"}
{literal}
    {if isset($_items) && is_array($_items)}
        {foreach $_items as $item}
            {jrYouTube_embed type="iframe" item_id=$item._item_id auto_play=false width="100%"}
        {/foreach}
    {/if}
{/literal}
{/capture}
{jrCore_list module="jrYouTube" order_by="_created desc" search1="profile_id = $profile_id" template=$template limit=1}

The {capture} in the code is to avoid having to add another file to the file system, there are docs on it here:

Docs: "HowTo: use {capture} to avoid using another file for {jrCore_list} calls"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1637/howto-use-capture-to-avoid-using-another-file-for-jrcore-list-calls
michael
@michael
07/27/16 01:58:00AM
7,832 posts

What are YOUR first steps in setting up a Jamroom site?


Using Jamroom

There is no set order in which you HAVE to setup jamroom, so i'm curious. If you were to setup a new jamroom site, what order would you do things in?

Feedback please. :)
updated by @michael: 11/03/16 09:45:35PM
michael
@michael
07/26/16 05:30:24PM
7,832 posts

Question concerning recent updates


Design and Skin Customization

There are 2 locations where the TinyMCE editor are defined, make sure they are both the same.
/modules/jrCore/templates/form_editor.tpl
/modules/jrSiteBuilder/templates/form_editor.tpl
michael
@michael
07/26/16 05:25:33PM
7,832 posts

youtube embed


Jamroom Developers

Where did you get that code from? It seams wrong. You're passing in the $_item_id, but then have an order_by="" field. That doesnt seam to make sense. it reads: "Get me this specific youtube video, then order it in reverse alphabetical order, but only get it if its from this specific profile."

The request doesn't make sense. If you know the youtube video you want, you can just ask for it
{jrYouTube_embed type="iframe" item_id=31 auto_play=false width="100%"}

Change the item_id to whatever item_id you want or pass in the $_item_id variable if that is a single number that corresponds to the number of the youtube item stored in the datastore.
michael
@michael
07/25/16 04:51:18PM
7,832 posts

Errors (beta version 5.4.0b2)


Using Jamroom

Thanks for the info @dim, we'll check it out. :)
michael
@michael
07/25/16 04:38:18PM
7,832 posts

Question concerning recent updates


Design and Skin Customization

Spellcheck should be coming in now from your browser because the context bar (that right click menu) is no longer on by default. This lets the browsers native spellchecker work.

Turn the spellchecker plugin off and the browsers native spellchecker should work.

Run the COMPARE tool on the form_editor.tpl template you're interested in. There is one for Site Builder and one for the Core. That will tell you what is different between the default version and your version.

Also HOW you did the change is important. If you're doing it via a skin override in the templates then you may need to copy the contents from the module again to your skins file to make sure it matches what was there before adding your changes back in.

The point though, is whichever version is active, make sure it matches all the things you want to turn on from the modules version of the file.

You cant have the context editor and the browser spellcheck active together though, this is a TinyMCE issue that we've yet to understand a solution for.
michael
@michael
07/25/16 04:31:55PM
7,832 posts

JrCore_list in email template


Jamroom Developers

You Rock! :)

Good on you for persisting and finding and fixing the problem, and most of all reporting back so others can use the info too.
michael
@michael
07/25/16 04:27:15PM
7,832 posts

Errors (beta version 5.4.0b2)


Using Jamroom

There's probably a ? mark to the right of that error message that contains more info. Could you paste that info here please.

jrCore_load_url is a function that goes and gets a web-address, so the issue is "Some module somewhere is trying to load a URL but failing". Why its failing will likely be in the extra info in that error log.
michael
@michael
07/24/16 08:00:25PM
7,832 posts

MP3 Player Broken


Using Jamroom

douglas:.....There is an issue with your Site Builder "Audio Player" widget, for some reason it will not load the audio, I just get a spinning loading image. It is the same of the other player widgets and I'm not sure what is going on there.
I've tried everything I can think of so I'll see if I can get on of the other guys to check it out....

After checking this out, I found what I think is the source of the issue. Something on your server is changing the text 'javascript' to 'rocketscript'.

This is unrelated to anything jamroom. The templates in your ACP still read javascript (which is a web scripting language, not sure what a 'rocketscript' is, first time i've seen it.)

--edit--
Looks related to "Cloud Flare"
http://stackoverflow.com/questions/9681032/why-is-wordpress-placing-text-rocketscript-instead-of-text-javascript-when-u

--edit edit--
Yeah, thats the problem. Need to add
 data-cfasync="false" 
to all the widget_(module name)_config_header.tpl to all the modules where this is an issue.

I've added it to your widget_youtube_config_header.tpl via the TEMPLATES editor in the ACP but you'll need to add it to the others not working, Audio, Video, Vimeo as its a server issue, not a jamroom issue and you might prefer to do it in template over-rides rather than the ACP. Your site, you can choose. :)
screenshot_rocketscript.png screenshot_rocketscript.png - 23KB

updated by @michael: 07/24/16 08:07:41PM
  375