| View previous topic :: View next topic |
| Author |
Message |
Natman3400
Joined: 10 Oct 2009 Posts: 7
|
Posted: Sat Oct 10, 2009 9:01 am Youtube tag for bbcode help. |
|
|
|
I am trying to make a youtube tag for my site-. But it keeps screwing up the post it's in. Is there any way i can fix this?
P.S. My site it www.team-vector.co.cc
P.P.S. An example is on the bottem of
http://team-vector.co.cc/./viewtopic.php?f=4&t=10&p=61#p61
P.P.P.S.
The html I am using is:
<div style="text-align: center; margin: auto"><object type="application/x-shockwave-flash" style="width:450px; height:366px;" data="http://www.youtube.com/v/{TEXT}">
<param name="movie" value="http://www.youtube.com/v/{TEXT}" />
</object><div style="font-size: 0.8em">
And the bbcode is:
[youtube]{TEXT}[/youtube] |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4289 Location: MS
|
Posted: Sat Oct 10, 2009 9:31 am |
|
|
|
| Since you are Admin and editing the HTML directly, you can not use bbCode on your pages. If you need to insert a YouTube video, copy/paste the media code they give you for the video. If they have it styled in its own container, you can position it using the inline style attributes. |
|
Natman3400
Joined: 10 Oct 2009 Posts: 7
|
Posted: Sat Oct 10, 2009 9:37 am |
|
|
|
| Oh I'm using phpbb3 so i cant put html into posts. I am making a bbcode for my members to embed you tube videos. How ever it screws with the post no matter what html i use as the base for th bbcode. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4289 Location: MS
|
Posted: Sat Oct 10, 2009 4:34 pm |
|
|
|
Thought you were admin and was adding that to the page. You CAN do the HTML code, but not in a post unless you turn HTML on as admin. bbCode is very restrictive as to what it can do. I haven't checked, but don't think there are bbCode tags that would allow posting of a video in a post. You could post the media code for a copy/paste though.
Last edited by PayneLess Designs on Mon Oct 12, 2009 5:36 am; edited 1 time in total |
|
Natman3400
Joined: 10 Oct 2009 Posts: 7
|
Posted: Sun Oct 11, 2009 9:37 am |
|
|
|
Phpbb3(Note: This forum uses PhpBB2) does not allow for use of html in posts period. BBcode is a way to make html easier to use by shortening it. When one makes a custom BBcode they provide the usage using tokens such as {TEXT} and than the html for the bbcode. For example the [img] tag would be [img}{URL}[/img] and the html input box would be:
<img src={URL}></img>
I fixed the bad formating problem by using:
[youtube]{URL}[/youtube]
=
<embed src="{TEXT}" height="344" width="425"></embed>
No i would like some help wit limiting the tag
First: i want the tag not to work if the url is a nn you tube url
Second: youtube urls are in the format (normal)www.youtube.com/watch?v={video code}
but the thing i need to embeed is at
youtube.com/v/{video code}
Is tere a way i can have my clients put in
[youtube]{Normal url}[/youtube]
and have the html take out the video code and embbed
youtube.com/v/{video code}
when they put in
www.youtube.com/watch?v={video code}? |
|
Natman3400
Joined: 10 Oct 2009 Posts: 7
|
|
Natman3400
Joined: 10 Oct 2009 Posts: 7
|
Posted: Mon Oct 12, 2009 6:37 am |
|
|
|
| never mind, i fixed it |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4289 Location: MS
|
Posted: Mon Oct 12, 2009 11:29 am |
|
|
|
Terrific! Had your post pending to get back to, but that is good news. If you would, can you post the fix here for anyone else who may have been following this thread? Everyone is here to learn...even me.  |
|
aristana
Joined: 24 Oct 2009 Posts: 2
|
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4289 Location: MS
|
|
|