Get started with PHP-Fusion

Start a New Thread

Users Participated

  • wildhaggis
    Post made: 1
  • Falk
    Post made: 1
  • Wanabo
    Post made: 1
  • SnakeEye
    Post made: 2
  • dimki
    Post made: 5
  • Sladdaren
    Post made: 2

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Content Administration

YouTube Videos Not Showing Anymore

This forum is for questions regarding the addition of content to your site

11 Replies 189 Views Last Updated on 12 hours ago

SnakeEye


Junior Member

#1

Posted 6 days ago

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?

Posts: 29

Joined: 22/01/2011

wildhaggis


Junior Member

#2

Posted 6 days ago

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

Mike

Posts: 38

Joined: 07/06/2005

dimki


Senior Member

#3

Posted 6 days ago

i think


for bbcode youtube
go..
includes + bbcode

go...
youtube_bbcode_include


no iframe to embed

Code Gist: Download source  



$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.p...ost_201728

Posts: 262

Joined: 29/04/2011

SnakeEye


Junior Member

#4

Posted 6 days ago

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.
Edited by SnakeEye on 17-03-2017 21:04

Posts: 29

Joined: 22/01/2011

dimki


Senior Member

#5

Posted 6 days ago

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://developer..._reference

Posts: 262

Joined: 29/04/2011

Falk


Super Admin

#6

Posted 5 days ago

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 !

Posts: 3550

Joined: 27/09/2005

Sladdaren


Junior Member

#7

Posted 3 days ago

Yeah, my Youtube videos has disappeared to Frown.

Posts: 17

Joined: 26/11/2013

dimki


Senior Member

#8

Posted 3 days ago

I did not understand Frown
Edited by dimki on 20-03-2017 21:02

Posts: 262

Joined: 29/04/2011

Sladdaren


Junior Member

#9

Posted 2 days ago

Ty..your solution did work for me also...Good

Posts: 17

Joined: 26/11/2013

dimki


Senior Member

#10

Posted 2 days ago

play in chrome google mobile play, Good
in mozila play mobile play, Good
explora microsoft play in moblle no play , Good Bad
opera ? Frown

Posts: 262

Joined: 29/04/2011

Wanabo


Senior Member

#11

Posted 15 hours ago

Try this in youtube_bbcode_include.php
Code Gist: Download source  

$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);

pHp-Fusion.Org, mods to enhance php-fusion.
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.

Posts: 488

Joined: 06/02/2006

dimki


Senior Member

#12

Posted 12 hours ago

Try this in youtube_bbcode_include.php
Code Gist: Download source  

$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
Code Gist: Download source  

https://www.youtube.com/embed/\3



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

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


?>

Posts: 262

Joined: 29/04/2011

Jump to Forum:
8 users are online
1 member and 7 guests

Micha0009