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 tags not working

Asked Modified Viewed 5,564 times
I
Insomnia
I
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

Hello all,

I have been trying to post a youtube video on my front page but the youtube tags don't work. I have them enabled in the admin section and when I test it in the admin section it works fine...any idea why it won't work on main page?

Here is the page you can see at the bottom where I tried to embed the video http://www.l2insomnia.com/news.php

Here is the whole you tube address for the video http://www.youtube.com/watch?v=Bif99zZ6TaA
0 replies

7 posts

S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Hi there.

It's not possible to use PHP in the news. But I have made a very little but smart code for you so you can show the video in a center-element.

If you want it here you go:
$name = "See this video"; // Name for Panel
$video_id = "[youtube]Bif99zZ6TaA[/youtube]"; // YouTube Video Id

opentable($name);
echo "<center>".parseubb($video_id)."</center>";
closetable();

- just change the YouTube Video Id if you want other movies.:
Bif99zZ6TaA

- and the name for the Panel:
See this video

Enjoy!
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

parseubb($video_id,'youtube')


much better
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Hi PolarFox.

I see no different on the element adding the 'youtube' to the parseubb-function.

What does this do to the better ?
0 replies
H
Harly
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
answered
Senior Member

@Insomnia I've just noticed, that your copyright notice is not correct - your using the old copyright notice for V6, and that's wrong, when your site is running V7.
So please correct this asap. See this page for further information: http://www.php-fusion.co.uk/viewpage....?page_id=6
Or look at the default theme Gillette's footer to see an example of, how it should be written.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

I think, it will be faster, check the parseubb() func in the core-file.
Isn't it?
0 replies
— 9 months later —
B
BlackDragon
B
http://www.bolja-buducnost.com.ba My best PHP-Fusion design.
  • Member, joined since
  • Contributed 88 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Why you write code like that, just try this code:

opentable("Watch this video");
  echo "<center>
<iframe width='520' height='315' src='http://www.youtube.com/embed/wYtjFvh-5AQ' frameborder='0' allowfullscreen></iframe>
</center>";
closetable();
0 replies
— 3 months later —
R
roslensaub
R
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Quote

smokeman wrote:

Hi there.

It's not possible to use PHP in the news. But I have made a very little but smart code for you so you can show the video in a center-element.

If you want it here you go:
$name = "See this video"; // Name for Panel
$video_id = "[youtube]Bif99zZ6TaA[/youtube]"; // YouTube Video Id

opentable($name);
echo "<center>".parseubb($video_id)."</center>";
closetable();

- just change the YouTube Video Id if you want other movies.:
Bif99zZ6TaA

- and the name for the Panel:
See this video

Enjoy!


Hi smokeman, how to set the size. can we do that? i want it small so i can put it in the left panel. can u help me
0 replies

Labels

None yet

Statistics

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

6 participants

S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
H
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
I
I
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
B
B
http://www.bolja-buducnost.com.ba My best PHP-Fusion design.
  • Member, joined since
  • Contributed 88 posts on the community forums.
  • Started 14 threads in the forums
R
R
  • Newbie, joined since
  • Contributed 2 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