Page 1 of 1

YouTube Video BBCode

PostPosted: Fri Oct 06, 2006 5:39 pm
Author: dan0042
Can any one get this 2 work ,
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array('' But this is misssing for me ,

Code: Select all
############################################################## ## MOD Title]http://itsbeenconfirmed.com[/url] ## MOD Description: Adds a new bbcode allowing you to easily embed videos from YouTube.com.## MOD Version: 1.0.1 ## ## Installation Level: (Easy) ## Installation Time: ~5 Minutes## Files To Edit: - includes/bbcode.php,##                - langugage/lang_english/lang_main.php,##                - templates/subSilver/bbcode.tpl,##                - templates/subSilver/posting_body.tpl## Included Files: n/a## License: [url=http://opensource.org/licenses/gpl-license.php]http://opensource.org/licenses/gpl-license.php[/url] GNU General Public License v2############################################################## ## For security purposes, please check: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url] ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]############################################################# ## Author Notes: ##   You must have Multiple BBCode MOD installed for this to work.##      Get it here: [url=http://www.phpbb.com/phpBB/viewtopic.php?t=74705#]http://www.phpbb.com/phpBB/viewtopic.php?t=74705#[/url]###      example:##  [youtube]YouTube URL[/youtube]####  YouTube URL is the "Video URL (Permalink)" or the URL of the page the video ##  is on, NOT the "Embeddable Player" code they have on their video pages.## ############################################################## ## MOD History: ####  2006-03-20 - Version 1.0.1##   -Changed the names of the variables tbat are replaced in bbcode.tpl##   from VIDEO and LINK to YOUTUBEID and YOUTUBELINK, because the names##   were too common making it likely that they would conflict with other mods.####  2006-03-17 - Version 1.0.0####  2006-03-16 - Version 0.9.3##   -Fixed a problem in the regex that allowed some invalid but benign input####  2006-03-15 - Version 0.9.2##   -Made the word "link" was a language variable##   -Made the link open in a new window##   -YouTube video IDs can have dashes, so I changed the regex to account for this##   -Moved the link underneath the video instead of beside it####  2006-03-07 - Version 0.9.1##   -Added link for browsers YouTube's player doesn't like, i.e. Opera <img>####  2006-03-06 - Version 0.9.0################################################################ ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################  ##-----[ OPEN ]---------------------------------#includes/bbcode.php  ##-----[ FIND ]---------------------------------#$EMBB_widths = array(''  ##-----[ IN-LINE FIND ]---------------------------------#  array(''  ##-----[ IN-LINE AFTER, ADD ]---------------------------------#,'60'  ##-----[ FIND ]---------------------------------#$EMBB_values = array(''  ##-----[ IN-LINE FIND ]---------------------------------#$EMBB_values = array(''  ##-----[ IN-LINE AFTER, ADD ]---------------------------------#,'YouTube'  ##-----[ FIND ]------------------------------------------#$bbcode_tpl['email'] = str_replace('{EMAIL}', '\1', $bbcode_tpl['email']);##-----[ AFTER, ADD ]------------------------------------------#  $bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\1', $bbcode_tpl['youtube']);$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);  ##-----[ FIND ]------------------------------------------#$replacements[] = $bbcode_tpl['email'];##-----[ AFTER, ADD ]------------------------------------------#  // [youtube]YouTube URL[/youtube] code..$patterns[] = "#[youtube]http://(?:www.)?youtube.com/watch?v=([0-9A-Za-z-_]{11})[^[]*[/youtube]#is";$replacements[] = $bbcode_tpl['youtube'];##-----[ OPEN ]---------------------------------#language/lang_english/lang_main.php  ##-----[ FIND ]---------------------------------## NOTE: the full line to look for is:#$lang['bbcode_f_help'] = "Font size: [size=99px]YouTube URL[/youtube]';  $lang['youtube_link'] = 'Link';##-----[ OPEN ]------------------------------------------ #templates/subSilver/bbcode.tpl     ##-----[ FIND ]------------------------------------------ #<BEGIN><a>{EMAIL}</a><END>##-----[ AFTER, ADD ]------------------------------------------ #  <BEGIN><object>     <param></param>     <embed></embed></object><br><a>{YOUTUBELINK}</a><br><END>##-----[ OPEN ]---------------------------------#templates/subSilver/posting_body.tpl  ##-----[ FIND ]---------------------------------## NOTE: the actual line to find is MUCH longer, containing all the bbcode tags#bbtags = new Array(  ##-----[ IN-LINE FIND ]---------------------------------#'[url]','[/url]'  ##-----[ IN-LINE AFTER, ADD ]---------------------------------#,'[youtube]','[/youtube]'  ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ ## EoM      

Re: YouTube Video BBCode

PostPosted: Fri Oct 06, 2006 7:34 pm
Author: dan0042
got it workin ,Codes are missin I misted out , example:
[will some one work on button for this
Thanks

PostPosted: Mon Oct 09, 2006 10:08 am
Author: zenrei
wait.. so this will allow youtube embeds to work?

will it also allow smileycentral embeds to work too?


you said codes are missing... is the code in the message correct??

PostPosted: Mon Oct 09, 2006 10:44 am
Author: IntegraMOD
Could you possible place the corect code and edit here for poeple to use.

PostPosted: Mon Oct 09, 2006 11:11 am
Author: zenrei
sah-weet! <img> *waiting with bated breath*

Re: YouTube Video BBCode

PostPosted: Mon Oct 09, 2006 8:43 pm
Author: SLY LS1
All need the code to add it to the "advanced BBCode V5 hack" if anyone is interested

PostPosted: Mon Oct 09, 2006 8:57 pm
Author: zenrei
say what?

PostPosted: Tue Oct 10, 2006 10:48 am
Author: zenrei
in the author's notes, it says you have to have the Multiple BBCode MOD installed... do you?? Is that something we can get here?? is it already installed in IntegraMOD?

PostPosted: Tue Oct 10, 2006 11:23 am
Author: dan0042
without problems

PostPosted: Tue Oct 10, 2006 11:54 am
Author: dan0042
"zenrei";p="16396" wrote:in the author's notes, it says you have to have the Multiple BBCode MOD installed... do you?? Is that something we can get here?? is it already installed in IntegraMOD?

U dont need Multiple BBCode MOD Im not runnin it ,If see some codes Missin still go on ,

PostPosted: Tue Oct 10, 2006 7:10 pm
Author: zenrei
so the code you posted in the beginning of the thread is all I need then, is that what you're saying?

Re: YouTube Video BBCode

PostPosted: Wed Oct 11, 2006 5:05 am
Author: zenrei
"dan0042";p="16200" wrote:got it workin ,Codes are missin I misted out , example:
[will some one work on button for this
Thanks


how did you get it working?? $EMBB_widths = array('' is not in that php at all??

i'm so confused

Re: YouTube Video BBCode

PostPosted: Sun Oct 29, 2006 2:03 pm
Author: Helter
i think i included everything here. let me know if you have issues

ps. This is for IM 141, or 140 with the [url=http]advanced bbcode box mod[/url]

Re: YouTube Video BBCode

PostPosted: Sun Oct 29, 2006 3:36 pm
Author: dan0042
"HelterSkelter";p="17109" wrote:i think i included everything here. let me know if you have issues

ps. This is for IM 141, or 140 with the [url=http]advanced bbcode box mod[/url]

instill this mod with advanced bbcode box mod ,All looks good and till
hit youtube And doesnt open in new window

Re: YouTube Video BBCode

PostPosted: Sun Oct 29, 2006 4:09 pm
Author: Helter
forgot this part.

Code: Select all
 ##-----[ OPEN ]------------------------------------------#templates/bbcode.js  ##-----[ FIND ]------------------------------------------#// Define the bbCode tagsbbcode = new Array();bbtags = new Array(  ##-----[ INLINE FIND ]------------------------------------------#    [url]','[/url]'    ##-----[ INLINE AFTER, ADD ]------------------------------------------#  ,'[youtube]','[/youtube]'    ##-----[ SAVE & CLOSE ]------------------------------------------#  

Re: YouTube Video BBCode

PostPosted: Sun Oct 29, 2006 4:16 pm
Author: dan0042
dont see templates/bbcode.js

PostPosted: Mon Oct 30, 2006 11:47 am
Author: ayasha
is this code included in the 141 release?

PostPosted: Mon Oct 30, 2006 11:50 am
Author: IntegraMOD
"cleo";p="17133" wrote:is this code included in the 141 release?

No this is not included

Re: YouTube Video BBCode

PostPosted: Mon Oct 30, 2006 12:06 pm
Author: Dragonsys
I have this bbcode working, it just doesn't have a button...

Do I have to have the Advanced bbcode box to get a button?

Re: YouTube Video BBCode

PostPosted: Mon Oct 30, 2006 2:13 pm
Author: Helter
i think so, but ill have to have another look at it. I edited the mod and added it to a test forum, then I realized it was a 141 forum. Works flawlesly there. I have gone through it on my personal forum that was 140 + adv bbcode box. works there too. I must have missed an edit in the install.txt




Code: Select all
 ##-----[ OPEN ]------------------------------------------#templates/your template/bbcode.tpl    ##-----[ FIND ]------------------------------------------#<BEGIN><a href="mailto]------------------------------------------#  <BEGIN><object>    <param></param>    <embed></embed></object><br><a>{YOUTUBELINK}</a><br><END>  

Re: YouTube Video BBCode

PostPosted: Mon Oct 30, 2006 3:03 pm
Author: Dragonsys
"HelterSkelter";p="17144" wrote:i think so, but ill have to have another look at it. I edited the mod and added it to a test forum, then I realized it was a 141 forum. Works flawlesly there. I have gone through it on my personal forum that was 140 + adv bbcode box. works there too. I must have missed an edit in the install.txt




Code: Select all
 ##-----[ OPEN ]------------------------------------------#templates/your template/bbcode.tpl    ##-----[ FIND ]------------------------------------------#<BEGIN><a href="mailto]------------------------------------------#  <BEGIN><object>    <param></param>    <embed></embed></object><br><a>{YOUTUBELINK}</a><br><END>  


Do you mean bbcode.tpl? That code is not in bbcode.js

Re: YouTube Video BBCode

PostPosted: Mon Oct 30, 2006 3:18 pm
Author: Helter
yes, that is what I meant...lol

Re: YouTube Video BBCode

PostPosted: Thu Dec 07, 2006 8:14 am
Author: krillmeed
I tried downloading this, all i get is a download php, it is susposed to be a zip file is it not <img>

Re: YouTube Video BBCode

PostPosted: Sat Dec 09, 2006 10:47 am
Author: Helter
try again to dl it. For some reason all the attachments never made it from the integramod2 site. I have moved them here and resynced them

PostPosted: Sun Dec 10, 2006 3:39 am
Author: krillmeed
Worked like a charm. Thanks :D <img>

PostPosted: Sun Dec 10, 2006 11:59 pm
Author: cheww
You dont need You tube code in there .. See

Code: Select all
<object><param name="movie" value="http]

[code][video width=400 height=350]http://www.youtube.com/v/JT22n6x7J0g[/video:6dbjwnt6]


Take the link out of imbedded from the you tube site and enter it in a messaeg on any board that has a video bbcode..

[video width=400 height=350:6dbjwnt6]http://www.youtube.com/v/JT22n6x7J0g[/video:6dbjwnt6]

PostPosted: Mon Dec 11, 2006 1:19 am
Author: krillmeed
The code works like a dream just click the youtube button and copy and paste the URL shown on you tube <img>

PostPosted: Sun Dec 17, 2006 9:22 pm
Author: doswald
guys, will this work in my 1.3.2c? cant wait to hear from you (cross fingers "hope it'll work) <img>

Rgds,
Doswald

PostPosted: Sun Dec 17, 2006 9:28 pm
Author: doswald
<img> can't find the bbcode_box.js in my IM 1.3.2c I wish there are ways to implement this in my version. can you help me and give us whole instructions for the youtube mod?

looking for your suggestions guys.

rgds,
doswald

PostPosted: Mon Dec 18, 2006 7:55 am
Author: IntegraMOD
You can always doit the way that is explained 4 posts up ^^^^

PostPosted: Thu Dec 28, 2006 5:50 pm
Author: zenrei
sounds like it's not supported in your version

PostPosted: Thu Dec 28, 2006 11:48 pm
Author: doswald
"gffb";p="18560" wrote:You can always doit the way that is explained 4 posts up ^^^^


gffb thanks. it works in my version.

rgds,
doswald

PostPosted: Fri Dec 29, 2006 9:52 am
Author: IntegraMOD
NP.... <img>

Re: YouTube Video BBCode

PostPosted: Wed Feb 27, 2008 3:39 pm
Author: Verdugo
Is there a possibillity to integrate german youtube urls too ?

i give you an example...same video .. one searched by youtube.com .. one searched by youtube.de



[youtube:zggk6iwn]http://www.youtube.com/watch?v=b3HNX3JIS_o[/youtube:zggk6iwn]

[youtube:zggk6iwn]http://de.youtube.com/watch?v=b3HNX3JIS_o[/youtube:zggk6iwn]

My visitors are mostly germans... so everybody will search trough http://www.youtube.de and will get the links which not work.

Second problem is, that when i tapped the youtube button with IE the popup will apear .. and with firefox nothing happend. i edited my site to the trusted etc. but with firefox nothing poped up.

<img> can anyone help me ? THX in advance

Re: YouTube Video BBCode

PostPosted: Wed Feb 27, 2008 4:52 pm
Author: jomasaco
Try replace the code on includes/bbcode.php by this one

Don't forget to backup you original file


Code: Select all
      // [youtube]YouTube URL[/youtube] code..         $patterns[] = "#[youtube]http]{2,5}.)?youtube.com/watch?v=([0-9A-Za-z-_]{11})[^[]*[/youtube]#is";         $replacements[] = $bbcode_tpl['youtube'];

PostPosted: Thu Feb 28, 2008 12:34 pm
Author: Verdugo
Thanx . that worked for me ^^

Does anybody use firefox.. the popup is not "popping" <img>
I searched the whole firefoxconfig .. found nothing :-/