https://www.icyphoenix.com/viewtopic.php?f=32&t=4024 ----------------------------------- JHOSMAN Mon 07 Apr, 2008 23:52 YouTube BBCode ----------------------------------- [b]Go to ACP->Post->BBcode IN BBcode: [code][youtube]{TEXT}[/youtube] [/code] In HTML: [code] [/code] In the Line of BBcode this: [code]Example of use: [youtube]wassffsf[/youtube] [/code][/b] ----------------------------------- Mighty Gorgon Thu 10 Apr, 2008 01:18 Re: YouTube BBCode ----------------------------------- Thanks for sharing. ----------------------------------- Limun Sun 13 Apr, 2008 18:06 Re: YouTube BBCode ----------------------------------- [quote user="JHOSMAN" post="27450"][b]Go to ACP->Post->BBcode IN BBcode: [code][youtube]{TEXT}[/youtube] [/code] In HTML: [code] [/code] In the Line of BBcode this: [code]Example of use: [youtube]wassffsf[/youtube] [/code][/b][/quote] i made what u say...all in ACP i see button , but i got a blank page [img]http://www.icyphoenix.com/files/images/3336/yutob1.jpg[/img] [img]http://www.icyphoenix.com/files/images/3336/yutob2.jpg[/img] do you know why ? thanks JHOSMAN ----------------------------------- JHOSMAN Sun 13 Apr, 2008 18:12 Re: YouTube BBCode ----------------------------------- [b] :roll: Please insert the ID is the apple of the video here are an example of how to find the ID of the videos ... :arrow: http://youtube.kokforos.com Check what is there in BLUE[/b] ----------------------------------- Limun Sun 13 Apr, 2008 19:50 Re: YouTube BBCode ----------------------------------- [quote user="JHOSMAN" post="27662"][b] :roll: Please insert the ID is the apple of the video here are an example of how to find the ID of the videos ... :arrow: http://youtube.kokforos.com Check what is there in BLUE[/b][/quote] thank you :mrgreen: :oops: ----------------------------------- ihitf13anddied Fri 12 Sep, 2008 08:52 Re: YouTube BBCode ----------------------------------- [b]YouTube BBCode Best Method![/b] 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][youtube]http://www.youtube.com/watch?v={TEXT}[/youtube][/code] HTML Replacement: [code][/code] 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 Re: YouTube BBCode ----------------------------------- Thanks for sharing. :D ----------------------------------- zaneeta Fri 23 Oct, 2009 11:08 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 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 Re: YouTube BBCode ----------------------------------- [quote user="ihitf13anddied" post="31650"][b]YouTube BBCode Best Method![/b] 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][youtube]http://www.youtube.com/watch?v={TEXT}[/youtube][/code] HTML Replacement: [code][/code] 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[/quote] Thanks alot man.!! It works great with me. ----------------------------------- Joshua203 Tue 02 Feb, 2010 00:30 Re: YouTube BBCode ----------------------------------- looking at this youtube code closely (maybe too close?? :mrorange: ) 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 linenumbers=false]
[/code] 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? :idea: ----------------------------------- antoraa Tue 02 Feb, 2010 10:38 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 Re: YouTube BBCode ----------------------------------- i was actually hoping for a great tip on my previous question :oops: your college is probably blocking utube because the students dont know what's on or off topic :lol: :lol: :lol: but since your question is here allready... yes it's possible, try google for it or try proxy or even google for proxy? :mryellow: ----------------------------------- Mighty Gorgon Thu 04 Feb, 2010 00:46 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 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 :mryellow: 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 Re: YouTube BBCode ----------------------------------- I'm not sure if it is fully correct and safe at the same time... but you can have a try. [codeblock]
[/codeblock] ----------------------------------- Joshua203 Fri 05 Feb, 2010 13:06 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 :cry: 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 :cry: thanks for the heads up sofar though ----------------------------------- Mighty Gorgon Fri 05 Feb, 2010 14:58 Re: YouTube BBCode ----------------------------------- And what about using PHP switch in template? http://area51.phpbb.com/phpBB/viewtopic.php?f=26&t=29448 [codeblock]mt_rand(100000, 999999);[/codeblock] This will generate a random number you can attach to your ID. ----------------------------------- Joshua203 Fri 05 Feb, 2010 15:28 Re: YouTube BBCode ----------------------------------- wow if that would work i ld be in seventh heaven :P i m not sure how but i will try, see what it it will bring and report back (hopefully with a positive answer :mryellow: ) 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 Re: YouTube BBCode ----------------------------------- He he he... we will sort it out... ----------------------------------- Joshua203 Thu 11 Feb, 2010 17:31 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) :mryellow: ----------------------------------- Mighty Gorgon Sun 14 Feb, 2010 12:20 Re: YouTube BBCode ----------------------------------- [quote user="Joshua203" post="47736"](i just got distracted) :mryellow:[/quote] He he he... then close YouTube and go back coding! :P ----------------------------------- Joshua203 Sun 14 Feb, 2010 14:09 Re: YouTube BBCode ----------------------------------- [img]http://www.icyphoenix.com/images/smiles/rotfl_01.gif[/img] ----------------------------------- St0ney Fri 23 Nov, 2012 17:26 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. :wink: Like So. [code linenumbers=false] [/code] ----------------------------------- St0ney Sat 24 Nov, 2012 21:50 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 [b]BBCode usage:[/b] [code linenumbers=false][youtube]http://www.youtube.com/watch?v={IDENTIFIER}[/youtube][/code] [b]HTML replacement:[/b] (Changed Thanks MG) [code linenumbers=false]


[/code] [b]Help line:[/b] [code linenumbers=false][youtube]http://www.youtube.com/watch?v=_Zh5mXvkaMk[/youtube][/code] St0ney ----------------------------------- Mighty Gorgon Sun 25 Nov, 2012 11:20 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: [codeblock]
YOURCONTENT
[/codeblock] Also make sure you close properly BR whether you add it => [c]
[/c] ----------------------------------- St0ney Sun 25 Nov, 2012 17:19 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
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 Re: YouTube BBCode ----------------------------------- Thanks St0ney, I will certainly give this one a try :wink: ----------------------------------- Mighty Gorgon Mon 26 Nov, 2012 22:59 Re: YouTube BBCode ----------------------------------- [quote user="St0ney" post="57624"]I'm a old HTML guy, so I'm not up to date on proper php coding.[/quote] 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. :mri: