Code: Select all
[youtube]DEkmq7JIE50[/youtube]
Code: Select all
[youtube]DEkmq7JIE50[/youtube]
[youtube][/youtube]
which I shall therefore use from here onward (that is to say, for all new posts).[video][/video]
. In the posts, all videos appear with this structure:Code: Select all
[video]http://www.youtube.com/watch?v=TQNt2iwnpjY[/video]
Code: Select all
[video]https://www.youtube.com/watch?v=TQNt2iwnpjY[/video]
[video][/video]
BBCode was:Code: Select all
[video]{TEXT}[/video]
Code: Select all
<script type="text/javascript" src="video.php?link={TEXT}"></script>
video.php
file which I had to upload the root of my forum.[video][/video]
where the full URL of the video is included (e.g. http://www.youtube.com/watch?v=TQNt2iwnpjY
).video.php
file could be modified?OK, thanks! Where is the proper place on this forum to upload this video.php file and request a kind and knowledgeable soul to modify it?JoshyPHP wrote:Yes, you'll need to modify that video.php file. That's not the first time I read about it but I don't know what extension/MOD this is from. You'll probably see some YouTube-related markup that you'll need to modify to use the proper iframe rather than a Flash object.
Code: Select all
array('/youtube\.com.*v=([^&]*)/i', '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{ID_VIDEO}"></param><embed src="http://www.youtube.com/v/{ID_VIDEO}" type="application/x-shockwave-flash" width="425" height="344"></embed></object>'),
This BBCode is/was very useful because it was a kind of "universal" BBCode (with the help of the video.php file).Lumpy Burgertushie wrote: not sure why you were using that php file to begin with. all it does is create the same bbcode that you could have created yourself in your admin panel. that is the same one that is now broken.
Code: Select all
array('/youtube\.com.*v=([^&]*)/i', '<iframe width="640" height="360" src="https://www.youtube.com/embed/{ID_VIDEO}" frameborder="0" allowfullscreen></iframe>'),
Hello,baller1234 wrote:use STK to reparse your topics.
But with no result in old posts.JoshyPHP wrote:That one.
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
Code: Select all
<iframe width="640" height="360" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
Code: Select all
http://www.youtube.com/
Code: Select all
https://www.youtube.com/
Code: Select all
http://domain.com/stk
Great - many thanks! I've modified my video.php file according to your instructions, and all my old youtube videos are displaying once more!Majyk Oyster wrote:For those who want to use video.php, replace old code with this (line 15) :
Code: Select all
array('/youtube\.com.*v=([^&]*)/i', '<iframe width="640" height="360" src="https://www.youtube.com/embed/{ID_VIDEO}" frameborder="0" allowfullscreen></iframe>'),
baller1234 wrote:replace all
toCode: Select all
http://www.youtube.com/
with phpmyadminCode: Select all
https://www.youtube.com/
then download https://www.phpbb.com/support/stk/
and put the complete folder it in your root dir (where your config.php is)
Then browse to the stk..
Go toCode: Select all
http://domain.com/stk
and click tab admin tools and then choose reparse bbcode
For my old topics, and using phpmyadmin as you told me, I think that I shuld replace:JoshyPHP wrote:That one.
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
Code: Select all
<iframe width="640" height="360" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
Code: Select all
http://www.youtube.com/
Code: Select all
[youtube]{IDENTIFIER}[/youtube]
There should be no reason to use phpMyAdmin to change anything in the database as there would be no point in doing so as you found out. If you update your BBCode definition through the ACP, as has been instructed, then it should work just fine right out of the box, unless you're not running 3.0 or 3.1.Puntadelanza wrote:For my old topics, and using phpmyadmin as you told me, I think that I shuld replace:for nothing.... as in this line:Code: Select all
http://www.youtube.com/
you put only the identifier of the video with no url....Code: Select all
[youtube]{IDENTIFIER}[/youtube]
I'm right?