YouTube BBCode »  Show posts from    to     

Icy Phoenix


phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - YouTube BBCode



JHOSMAN [ Mon 07 Apr, 2008 23:52 ]
Post subject: YouTube BBCode
Go to ACP->Post->BBcode

IN BBcode:

Code: [Hide]
  1. [youtube]{TEXT}[/youtube]  


In HTML:

Code: [Hide]
  1. <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>  


In the Line of BBcode this:

Code: [Hide]
  1. Example of use: [youtube]wassffsf[/youtube]  


Mighty Gorgon [ Thu 10 Apr, 2008 01:18 ]
Post subject: Re: YouTube BBCode
Thanks for sharing.


Limun [ Sun 13 Apr, 2008 18:06 ]
Post subject: Re: YouTube BBCode
JHOSMAN wrote: [View Post]
Go to ACP->Post->BBcode

IN BBcode:

Code: [Hide]
  1. [youtube]{TEXT}[/youtube]  


In HTML:

Code: [Hide]
  1. <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>  


In the Line of BBcode this:

Code: [Hide]
  1. Example of use: [youtube]wassffsf[/youtube]  


i made what u say...all in ACP
i see button , but i got a blank page

yutob1

yutob2

do you know why ?

thanks JHOSMAN


JHOSMAN [ Sun 13 Apr, 2008 18:12 ]
Post subject: Re: YouTube BBCode
Please insert the ID is the apple of the video here are an example of how to find the ID of the videos ...

http://youtube.kokforos.com

Check what is there in BLUE


Limun [ Sun 13 Apr, 2008 19:50 ]
Post subject: Re: YouTube BBCode
JHOSMAN wrote: [View Post]
Please insert the ID is the apple of the video here are an example of how to find the ID of the videos ...

http://youtube.kokforos.com

Check what is there in BLUE


thank you


ihitf13anddied [ Fri 12 Sep, 2008 08:52 ]
Post subject: Re: YouTube BBCode
YouTube BBCode Best Method!


Hello!

This bbcode snippet here will allow your users to paste the WHOLE YOUTUBE LINK. I use this on my phpbb3 forums over at www.aintnobullshit.com and it works great!


BBcode usage:
Code: [Hide]
  1. [youtube]http://www.youtube.com/watch?v={TEXT}[/youtube] 


HTML Replacement:
Code: [Hide]
  1. <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> 



This is a much easier method than having the users copy and paste a small ID #.......and this method even works if you add the "&feature=related" thing on the end, too.


Happy phpbbing!
~f13


Mighty Gorgon [ Thu 18 Sep, 2008 23:10 ]
Post subject: Re: YouTube BBCode
Thanks for sharing.


zaneeta [ Fri 23 Oct, 2009 11:08 ]
Post subject: Re: YouTube BBCode
How do youtube videos get removed and have sound taken off? I just want to know HOW and WHY youtube videos get removed. Like they'll say either: this video has been removed due to terms of violation, or youtube will delete the sound of the video. How does this happen??? I don't get what they mean when they say that you have property not recognized by wmg, or something like that, or why they remove your video due to terms of violation. Does it get removed right away or at any random time?


Joshua203 [ Fri 23 Oct, 2009 18:52 ]
Post subject: Re: YouTube BBCode
i guess this happens when/if someone files a complaint/removal notice because it is copyright protected material?


channelasian [ Fri 29 Jan, 2010 13:53 ]
Post subject: Re: YouTube BBCode
ihitf13anddied wrote: [View Post]
YouTube BBCode Best Method!


Hello!

This bbcode snippet here will allow your users to paste the WHOLE YOUTUBE LINK. I use this on my phpbb3 forums over at www.aintnobullshit.com and it works great!


BBcode usage:
Code: [Hide]
  1. [youtube]http://www.youtube.com/watch?v={TEXT}[/youtube] 


HTML Replacement:
Code: [Hide]
  1. <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> 



This is a much easier method than having the users copy and paste a small ID #.......and this method even works if you add the "&feature=related" thing on the end, too.


Happy phpbbing!
~f13


Thanks alot man.!! It works great with me.


Joshua203 [ Tue 02 Feb, 2010 00:30 ]
Post subject: Re: YouTube BBCode
looking at this youtube code closely (maybe too close?? ) i noticed this throws w3c errors on the pages it is used (6 i think)

so i started messing with this, so far i have this:
Code: [Hide] [Select]
<div id="utube{SIMPLETEXT}"></div>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/flashfix.js"></script>
<script type="text/javascript">
var fo = new FlashObject("http://www.youtube.com/v/{SIMPLETEXT}", "mymovie", "425", "350","7");
fo.addParam("wmode", "transparent");
fo.addVariable("tab", getQueryParamValue("tab"));
fo.write("utube{SIMPLETEXT}");
</script>

wich throws me no error UNLESS someone would post the same video on the same page (because the video's simpletext gives the div id its name) so i actually need another or a better variable to give the div a unique id, it would be great if the user would not have to type anything extra to get it (just like it does now)

any ideas anyone?


antoraa [ Tue 02 Feb, 2010 10:38 ]
Post subject: Re: YouTube BBCode
How to access Youtube and other video streaming sites? The college blocked access to various sites on it's network but I've seen a few people able to stream from sites like Youtube. Accessing Youtube is not possible much less begin streaming. Is there a way to go around this?


Joshua203 [ Tue 02 Feb, 2010 11:59 ]
Post subject: Re: YouTube BBCode
i was actually hoping for a great tip on my previous question

your college is probably blocking utube because the students dont know what's on or off topic

but since your question is here allready... yes it's possible, try google for it or try proxy or even google for proxy?


Mighty Gorgon [ Thu 04 Feb, 2010 00:46 ]
Post subject: Re: YouTube BBCode
It's not easy if you don't want to add PHP in template.

You can add an easy fix by adding the post_id var for example (the problem is when 2 videos are posted within the same post).

You could use video ID, but that could lead to security issues and we don't want that...


Joshua203 [ Thu 04 Feb, 2010 02:03 ]
Post subject: Re: YouTube BBCode
this may be a silly question but thats because i don t understand the why of the security leak (no i agree we don t want that ...lol), but what if i combine the post_id var (put it in the place where it now says utube) and the video id (like now)?
would that be any safer?

sorry if i sound stupid but i m obviously in over my head

PS ..i m also not sure how to use the post_id but i ll look into this and have some tries

thnx


Mighty Gorgon [ Fri 05 Feb, 2010 11:44 ]
Post subject: Re: YouTube BBCode
I'm not sure if it is fully correct and safe at the same time... but you can have a try.

Code: [Hide] [Select]
<div id="utube{SIMPLETEXT}{postrow.POST_ID}"></div>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/flashfix.js"></script>
<script type="text/javascript">
var fo = new FlashObject("http://www.youtube.com/v/{SIMPLETEXT}", "mymovie", "425", "350","7");
fo.addParam("wmode", "transparent");
fo.addVariable("tab", getQueryParamValue("tab"));
fo.write("utube{SIMPLETEXT}{postrow.POST_ID}");
</script>


Joshua203 [ Fri 05 Feb, 2010 13:06 ]
Post subject: Re: YouTube BBCode
thanks MG, i was so happy that i tried this immediately but what i was afraid of is exactly what it does...

{postrow.POST_ID} is not accepted in bbcode replacements, it is just not replaced so it still looks like {postrow.POST_ID} after making a post and viewing the source of the page

as far as i know it will accept anything from the language directory but that would be just about all it would accept? i hope not

thanks for the heads up sofar though


Mighty Gorgon [ Fri 05 Feb, 2010 14:58 ]
Post subject: Re: YouTube BBCode
And what about using PHP switch in template?

http://area51.phpbb.com/phpBB/viewtopic.php?f=26&t=29448

Code: [Hide] [Select]
<!-- PHP -->mt_rand(100000, 999999);<!-- ENDPHP -->


This will generate a random number you can attach to your ID.


Joshua203 [ Fri 05 Feb, 2010 15:28 ]
Post subject: Re: YouTube BBCode
wow if that would work i ld be in seventh heaven

i m not sure how but i will try, see what it it will bring and report back (hopefully with a positive answer )

would be great if this works .. it would only leave me with one similar (but more complicated to me) bug hunt


Mighty Gorgon [ Fri 05 Feb, 2010 16:12 ]
Post subject: Re: YouTube BBCode
He he he... we will sort it out...


Joshua203 [ Thu 11 Feb, 2010 17:31 ]
Post subject: Re: YouTube BBCode
just for your info... i haven t forgotten about this and i will get back on this one (i just got distracted)


Mighty Gorgon [ Sun 14 Feb, 2010 12:20 ]
Post subject: Re: YouTube BBCode
Joshua203 wrote: [View Post]
(i just got distracted)


He he he... then close YouTube and go back coding!


Joshua203 [ Sun 14 Feb, 2010 14:09 ]
Post subject: Re: YouTube BBCode
rotfl_01


St0ney [ Fri 23 Nov, 2012 17:26 ]
Post subject: Re: YouTube BBCode
Also if you add (" allowfullscreen="true" )

This will allow the Board member to view the Video Full Screen on the Forum.
instead of going to "YouTube" for that Option.


Like So.

Code: [Hide] [Select]
<object width="425" height="350"><param name="movie" value="h**p://***.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="h**p://***.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" " allowfullscreen="true" wmode="transparent" width="425" height="350"></embed></object>


St0ney [ Sat 24 Nov, 2012 21:50 ]
Post subject: Re: YouTube BBCode
This is What I actually Use for the YouTube BBC Code. (My Post above was a addon to what was posted.)

This BBC code
a) Will center the Video in the Post
b) Allows Full Screen View
c) Make video Larger - width="640" height="385



BBCode usage:

Code: [Hide] [Select]
[youtube]http://www.youtube.com/watch?v={IDENTIFIER}[/youtube]



HTML replacement: (Changed Thanks MG)

Code: [Hide] [Select]
<div style="margin: 0 auto; text-align: center;"><br><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></div><br />



Help line:

Code: [Hide] [Select]
[youtube]http://www.youtube.com/watch?v=_Zh5mXvkaMk[/youtube]



St0ney


Mighty Gorgon [ Sun 25 Nov, 2012 11:20 ]
Post subject: Re: YouTube BBCode
Many thanks for sharing this tip.

Anyway I would suggest not to use the tag CENTER as it has been discouraged.

When I need to center some content I always use a DIV:

Code: [Hide] [Select]
<div style="margin: 0 auto; text-align: center;">YOURCONTENT</div>



Also make sure you close properly BR whether you add it => <br />


St0ney [ Sun 25 Nov, 2012 17:19 ]
Post subject: Re: YouTube BBCode
Thanks MG - Changed the Code above and on my Board.

I'll need to look at the code on my board, I'm sure I have a ton of <CENTER> Tags.
I'm a old HTML guy, so I'm not up to date on proper php coding.


Joshua203 [ Mon 26 Nov, 2012 22:24 ]
Post subject: Re: YouTube BBCode
Thanks St0ney,

I will certainly give this one a try


Mighty Gorgon [ Mon 26 Nov, 2012 22:59 ]
Post subject: Re: YouTube BBCode
St0ney wrote: [View Post]
I'm a old HTML guy, so I'm not up to date on proper php coding.

Don't worry... HTML is changing day by day... it's impossible to be always up to date.

You can refer to this link to check your code against rules: http://validator.w3.org/

You don't have to be 100% compliant, but the most you can fix, the better it is... and you can reasonably expect that most browsers will display your site properly.




Powered by Icy Phoenix