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.
Sign In
Not a member yet? Click here to register.

YouTube Videos Not Showing Anymore

I use v7.02.07 and haven't had a problem until recently. People were able to make posts in the forum and use the YouTube embedder to post a video and normally it worked fine. Until just a few days ago. Now when you read the post, the video doesn't show up anymore no matter what video it is. All it shows now is is a black space below where the video is supposed to be showing. Is there an issue somewhere that I need to know about? How do I fix this?
I don't know how to fix your problem, but just tested on my V7.02.07 site by adding a video and it's working fine:

https://www.wildhaggis.net

Mike
i think


for bbcode youtube
go..
includes + bbcode

go...
youtube_bbcode_include


no iframe to embed

CodeDownload  


$text = preg_replace('#\[youtube\](http:|https:)?(\/\/www.youtube\.com\/watch\?v=|\/\/youtu\.be\/)?(.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><embed width="425" height="350" src="http://www.youtube.com/v/\3" frameborder="0"></embed>', $text);
?>





for mobile

https://www.php-fusion.co.uk/forum/viewthread.php?thread_id=38354&pid=201728#post_201728
Thanks dimki. That did the trick. I still don't understand why it quit working though. I didn't change anything and it just quit working on it's own. Working now though.
problem its from google Player API no from phpfusion , but who will make upgrading bbcode in version 7 2 people involved v9 version For some years not involved anybody and will take a long time to 9 version to be stable 100%

https://developers.google.com/youtube..._reference

Quote

will take a long time to 9 version to be stable 100%

It has taken a long time and the result is that our Core is very close if not already 100% stable most reports now is mostley minor stuff about the updated Infusions. If we only released Core it would be simple. Not much left now tho !
Yeah, my Youtube videos has disappeared to :|.
I did not understand :|
Ty..your solution did work for me also...:G
play in chrome google mobile play, :G
in mozila play mobile play, :G
explora microsoft play in moblle no play , :G :x
opera ? :|
Try this in youtube_bbcode_include.php
CodeDownload  
$text = preg_replace('#\[youtube\](http:|https:)?(\/\/www.youtube\.com\/watch\?v=|\/\/youtu\.be\/)?(.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><iframe width="560" height="315" src="https://www.youtube.com/embed/\3" style="border:0" allowfullscreen></iframe>', $text);

Quote

Try this in youtube_bbcode_include.php
CodeDownload  
$text = preg_replace('#\[youtube\](http:|https:)?(\/\/www.youtube\.com\/watch\?v=|\/\/youtu\.be\/)?(.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><iframe width="560" height="315" src="https://www.youtube.com/embed/\3" style="border:0" allowfullscreen></iframe>', $text);


- by Wanabo



super play all thanks this
CodeDownload  
https://www.youtube.com/embed/\3




CodeDownload  
<?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'>

.flexible-container {  position: relative;  padding-bottom: 56.25%; padding-top: 30px;
 height: 0; overflow: hidden;  margin-bottom: -50px;  }
 
.flexible-container iframe,   
.flexible-container object, 
.flexible-container embed {  position: absolute;  top: 0; left: 0; width: 80%; height: 80%;  }

</style>");

$text = preg_replace('#\[youtube\](http:|https:)?(\/\/www.youtube\.com\/watch\?v=|\/\/youtu\.be\/)?(.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><div class="flexible-container"><iframe width="560" height="315" src="https://www.youtube.com/embed/\3" style="border:0" allowfullscreen></iframe></div>', $text);


?>

Thread Information
Author
Replies
12 posts
Views
2,279 times
Last Post
Last updated on 3 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, wildhaggis, Wanabo, SnakeEye, dimki, Sladdaren