Embed youtube video at Match Report tab?

Status: under development
Branch: https://gitlab.com/joomleague/joomleague/tree/3.0.0

Moderator: And_One

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Embed youtube video at Match Report tab?

Postby zebil » Thu May 05, 2016 6:56 am

Hi,
I couldn't embed videos in match report tab at to the match detail page. Isn't it possible or should i do something extra at my Joomla page?

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Re: Embed youtube video at Match Report tab?

Postby zebil » Mon May 09, 2016 12:33 pm

Any suggestion?

Heart
Joomleague Core Developer
Joomleague Core Developer
Posts: 653
Joined: Fri Apr 23, 2010 10:27 am

Re: Embed youtube video at Match Report tab?

Postby Heart » Mon May 09, 2016 3:32 pm

So you want to embed a youtube video? Which should look like

Code: Select all

<iframe width="560" height="315" src="https://www.youtube.com/embed/xyz" frameborder="0" allowfullscreen></iframe>

Correct?!

Then you have to allow such "unsafe" html tag (iframe) with the following change(s):

1) Set the filter in file match.xml from "safehtml" to "raw" (same for "matchpreview" when you use videos there also)
2) Default joomla editor (TinyMCE) doesn't allow iframe too afaik so this iframe tag would be stripped although you made the change in above joomleage match.xml file. So you should change your editor in joomla admin to "Editor - None".

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Re: Embed youtube video at Match Report tab?

Postby zebil » Mon May 09, 2016 6:30 pm

It's worked! But choosing "Editor - None" is not usable :( Because when i want to edit an article at the site, i have to change the setting again to the TinyMCE. But it is better than having nothing! Thank you!

Heart
Joomleague Core Developer
Joomleague Core Developer
Posts: 653
Joined: Fri Apr 23, 2010 10:27 am

Re: Embed youtube video at Match Report tab?

Postby Heart » Tue May 10, 2016 6:49 am

When using JCE editor for example there is a toggle functionality above the JCE symbols so you can easily switch between no editor and JCE.

(Toggle button with TinyMCE isn't working that way, iframe gets deleted that way too)

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Re: Embed youtube video at Match Report tab?

Postby zebil » Wed May 11, 2016 10:20 pm

This is better! :thx:

User avatar
Lord_Helmchen
.
Posts: 45
Joined: Fri Aug 03, 2007 1:56 pm
Joomleague version: 2.0.x
Location: Germany
Contact:

Re: Embed youtube video at Match Report tab?

Postby Lord_Helmchen » Sat Jul 02, 2016 4:22 pm

You could also use a plugin like Allvideos (http://www.joomlaworks.net/extensions/free/allvideos).
Then you just need to add a code like {youtube}heu37ej3qs{/youtube}, {flv}batman_darknight{/flv} or {mp3}pixies_bonemachine{/mp3}
It is working, i tried it on my test site. Here you can see it http://test.helmut-mueller-online.de/in ... Itemid=592

zebil
.
Posts: 67
Joined: Thu Nov 20, 2008 9:50 am
Joomleague version: 2.0.x
Contact:

Re: Embed youtube video at Match Report tab?

Postby zebil » Fri Nov 11, 2016 11:45 pm

This solution is the best, thnx man!


Return to “3.0.22.57ae969-Blue (Joomla: 3.x)”

Who is online

Users browsing this forum: No registered users and 4 guests

cron