Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Youtube Infusion

Asked Modified Viewed 2,708 times
J
JosephHH
J
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

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...

[youtube]https://www.youtube.com/watch?v=1JrApvotk34[/youtube]

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

1 post

D
dimki
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

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

http://www.hellasplus.com/forum/viewt...read_id=33

AND THIS NEW

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://developers.google.com/youtube..._reference

bbcode


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion 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


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion 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,
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

D
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
J
J
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet