Get started with PHP-Fusion

Start a New Thread

Users Participated

  • dimki
    Post made: 1
  • JosephHH
    Post made: 1

Related Threads

Duplicate articles infusion
updated 7 months ago
Problem Newsletters_v501 Infusion
updated 2 years ago

  1. PHP-Fusion Support Forums
  2. General Addon and Modification Support
  3. Panels and Infusions

Youtube Infusion

Help and support for problems with infusions and panels

1 Reply 393 Views Last Updated on 2 months ago

JosephHH


Newbie

#1

Posted 3 months ago

I am currently having a problem with a Youtube infusion.

Basically, on my forum part of my PHP Fusion site, whenever someone clicks the "youtube" button and puts the URL in between the brackets, rather than actually show the video, it tries to get you to download a .swf file. This hasn't always happened. It just started happening out of the blue, with no explanation.

It happens in Chrome but not in Firefox. I've tried updating Chrome, but no luck.

Anyone have a clue what this could be?

Merged on Mar 12 2017 at 15:18:29:
Just want to test...



Works fine on THIS forum, but not mine, and I haven't changed a thing.
Edited by JosephHH on 12-03-2017 15:18

Posts: 4

Joined: 01/03/2014

dimki


Senior Member

#2

Posted 3 months ago

It happens to me in movile version auto download last > LKsDv-5CB9w <

http://www.hellas...read_id=33

AND THIS NEW

Code Gist: Download source  

Deprecation Notice
The deprecation of the YouTube ActionScript 3.0 Player API, also known as the YouTube Flash API (AS3), was announced on January 27, 2015. YouTube Flash <object> embeds have also been deprecated. See the deprecation policy for more information. Please migrate your applications to the IFrame API, which can intelligently use whichever embedded player HTML (<video>) or Flash (<object>) the client supports.



https://developer..._reference

bbcode


Code Gist: Download source  

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: youtube_bbcode_include.php
| Author: Wooya
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

add_to_head("<style type='text/css'>
.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 80%;
  height: 75%;
  border: 0;
}
.embed-responsive-16by9 {
  padding-bottom: 56.25%;

margin-bottom: -15%;
}

</style>");

$text = preg_replace('#\[youtube\](http:|https:)?(\/\/www.youtube\.com\/watch\?v=|\/\/youtu\.be\/)?(.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><div class="embed-responsive embed-responsive-16by9"><iframe class="embed-responsive-item" src="http://www.youtube.com/v/\3"></iframe></div>', $text);
?>


problem solved probleme no iframe must embed

below normally whose will responsible youtube video


Code Gist: Download source  

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: youtube_bbcode_include.php
| Author: Wooya
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }


add_to_head("<style type='text/css'>
.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 80%;
  height: 75%;
  border: 0;
}
.embed-responsive-16by9 {
  padding-bottom: 56.25%;

margin-bottom: -15%;
}

</style>");

$text = preg_replace('#\[youtube\](http:|https:)?(\/\/www.youtube\.com\/watch\?v=|\/\/youtu\.be\/)?(.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><div class="embed-responsive embed-responsive-16by9"><embed class="embed-responsive-item" src="http://www.youtube.com/v/\3"></embed></div>', $text);
?>

Edited by dimki on 14-03-2017 23:11

Posts: 264

Joined: 29/04/2011

Jump to Forum:
10 users are online
0 member and 10 guests