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] bb code doesn't work

Asked Modified Viewed 8,904 times
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
asked
Member

hi! the code does not work :D

it just converts youtube links to: "YouTube Video"

example on my site: http://www.alienantfans.com/php/websi...post_10942
Edited by stranded on 22-06-2008 05:38,
0 replies

12 posts

N
NobNob
N
NobNob 10
Saludos.

Javier Esteban [NobNob]
PHP-Fusion en Español
  • Member, joined since
  • Contributed 77 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

You need to put the ID of the video between the youtube tags.

Example: [*youtube]INyo5ctzmGo[*/youtube]

(Obviously without *)
0 replies
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Member

thanks
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
answered
Member

What i did was edit the BBcode of youtube and replace it with the old youtube infusion/mod code, that works better and posts anything thats flash not only youtube.
0 replies
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Member

I was going to do that but seriously I don't want to have so many mods, because after every update it's just too much work.
0 replies
N
NobNob
N
NobNob 10
Saludos.

Javier Esteban [NobNob]
PHP-Fusion en Español
  • Member, joined since
  • Contributed 77 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

Quote

stranded wrote:
I was going to do that but seriously I don't want to have so many mods, because after every update it's just too much work.


You'r welcome Stranded. And you'r right, I agree.
Edited by NobNob on 22-06-2008 20:33,
0 replies
T
Triski
T
Triski 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

would it be possible to implement both versions. editing approximately 50 posts with youtube links is a bit annoying.
0 replies
K
kneekoo
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
answered
Senior Member

But what's wrong with the Flash BB code? We got one of that too. Look for it and give it a try.
0 replies
J
Jay
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
answered
Member

The flash is crap...it doesnt even work for me or im doing something wrong, i dont need it, the old utube code does everything for me

Here is the code for my new youtube_bbcode_include.php

youtube_bbcode_include.php

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://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"); }

$text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<strong>'.$locale['bb_youtube'].'</strong><br /><object width="425" height="350"><embed src="\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>', $text);
?>


I don't about u guys but i prefer this code than the original because this one posts anything flash, not only youtube, wats the button having one button for google, utube, yahoo, vsocial, ifilms, revver, break, etc, when u can use this one?
Edited by Jay on 25-06-2008 13:05,
0 replies
T
Triski
T
Triski 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

it doesn't work for youtube links.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

NO, trust me, the Youtube BBCode that is in V7 does work you just add the video ID in between the tags NOT THE FULL URL.

The Video ID is usually the 11 digits at the end of the URL after v=

eg. You Would NOT put
http://uk.youtube.com/watch?v=RjxeE002ZYw


You would only place RjxeE002ZYw between the tags.
0 replies
T
Triski
T
Triski 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

yeah, but as i already said. it is kinda annoying to edit all existing posts, which are based on the old youtube (already posted) code.
Edited by Triski on 25-06-2008 18:20,
0 replies
W
Wooya
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
answered
Senior Member

BBCodes v7 system is modular... create own bbcode which will parse whole URL instead of youtube ID and that's all...
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 7 members

7 participants

W
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
K
K
  • Senior Member, joined since
  • Contributed 289 posts on the community forums.
  • Started 12 threads in the forums
  • Answered 1 question
N
N
NobNob 10
Saludos.

Javier Esteban [NobNob]
PHP-Fusion en Español
  • Member, joined since
  • Contributed 77 posts on the community forums.
  • Started 2 threads in the forums
S
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
J
J
Jay 10
  • Member, joined since
  • Contributed 170 posts on the community forums.
  • Started 57 threads in the forums
T
T
Triski 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet