PDA

View Full Version : BB Code Enhancements - Youtube Embed Full URL BB Code - [yt]


1Unreal
06-12-2009, 10:00 PM
Right, there are lots of mods for embeding Youtube videos on here in one way or another. However they all require your users to get the ID and do it that way. If your users are not quite so savvy they may not know how to do this.

So this makes things very simple. Heres the syntax

http://www.youtube.com/watch?v=gEl1xSPyOwA

Also, the URL doesn't have to be perfect. For example, if a user pastes in a URL such as http://www.youtube.com/watch?v=gEl1xSPyOwA&feature=rec-HM-fresh+div it will still find the ID and embed it perfectly.

Simple!

How to add a button to the toolbar (https://vborg.vbsupport.ru/showpost.php?p=1865797&postcount=18)

Phobos49
06-13-2009, 11:39 AM
Works fine! Thanks!!!

ubcforums
06-13-2009, 12:38 PM
Thanks !!

gigi37
06-13-2009, 08:57 PM
The embed works fine, but I can't reply to any threads on any forum afterwards. I get the following message from Foxfire:

The page isn't redirecting properly


Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


Any idea what would cause that? Where do I ask for help with this? New to vBulletin, I'm not sure where this should go.

Bill from Cleve
06-13-2009, 10:19 PM
All the hacks I've seen that embed Youtube does the exact same thing without having to use BB code? Does this do anything differn't?

1Unreal
06-13-2009, 11:27 PM
All the hacks I've seen that embed Youtube does the exact same thing without having to use BB code? Does this do anything differn't?

Most, if not all, require you to use the ID where as this just requires the URL.

1Unreal
06-13-2009, 11:41 PM
The embed works fine, but I can't reply to any threads on any forum afterwards. I get the following message from Foxfire:

The page isn't redirecting properly


Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


Any idea what would cause that? Where do I ask for help with this? New to vBulletin, I'm not sure where this should go.

I'm not getting that error. Im using Firefox too

fourat
06-14-2009, 01:36 AM
thanks vey much

reas0n
06-15-2009, 04:29 PM
is there a way i can get this to show up in the Editor like next to the Link, Email link, and insert image buttons?

djdog
06-15-2009, 05:13 PM
This one works fine, but I used this one with Images - Works fine on 3.8.x

https://vborg.vbsupport.ru/showthread.php?t=130868

reas0n
06-15-2009, 05:37 PM
This one works fine, but I used this one with Images - Works fine on 3.8.x

https://vborg.vbsupport.ru/showthread.php?t=130868


thanks

masterweb
06-26-2009, 12:52 PM
Installed and working, thanks a lot for this hack :D

hn74
06-29-2009, 05:54 AM
Perfect

Shankoty
06-29-2009, 06:20 AM
is this mod will add icon in the post box or user should paste the code manually ?

hn74
07-07-2009, 07:29 PM
i shows fine on thread preview but when submitting the thread it disppeared.

any clue?

onehost
07-20-2009, 01:33 AM
can someone please help with embedding a video...

I am trying to get it from here:

http://www.dandanthecarpetcleaningman.com/carpet-cleaning.php?pn=53

I tried using the ty tag with the URL in the yt code:

http://www.youtube.com/v/UR4T--_0rxY&rel=1

I have also tried:

http://www.youtube.com/watch?v/UR4T--_0rxY&rel=1

all i seem to be getting is a blank screen when I try to
post in the forum...

can someone please help me out.

Thanks
David

crazymilk
07-28-2009, 11:58 AM
thanks wo0t

elenh
08-12-2009, 12:59 PM
If you like to add a icon to editor tooldar then do this:

Find on editor_toolbar_on template this:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar/html.png" width="16" height="16" alt="$vbphrase[wrap_html_tags]" /></div></td>

[I]Add bellow this:

<!--custom bbcode youtube start -->
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_yt"><img src="$stylevar[imgdir_editor]/youtube.gif" width="21" height="20" alt="Wrap [yt] tags around selected text" /></div></td>
<!--custom bbcode youtube end -->

Upload the image in to your style editor folder:
https://vborg.vbsupport.ru/attachment.php?attachmentid=55547&stc=1&d=1162770341

Thanks a lot!!

Stato
08-12-2009, 11:20 PM
marked as installed and is working perfect.. thankyou elenh

motorola
08-29-2009, 05:29 PM
I have a probblem when I put some youtube links in my forum,i had installed this mod a few weeks a go,everything was okay untill today !

In Google Chrome works fine,in other browsers show this error

I use the youtube url not the embed code....
What is the probblem?

https://vborg.vbsupport.ru/external/2010/04/10.jpg

thefarg
08-30-2009, 10:02 PM
Any way to change tag to [youtube] ? I changed it, and videos come up with that tag, but when I press button in editor, it always comes up with [yt] tag. How do I change tag that button puts in?

One-Take
08-31-2009, 08:52 PM
I know this is probably dumb question but I got the link here to work if I manually add that to a post.. question is: where do I upload the image to to make it show up? Right now, there is no image, nor is there a red x appearing after modifying the editor_toolbar_on template as directed..

Ideas?

Thanks!
One-Take

elenh
08-31-2009, 09:11 PM
you have to upload the image to every style you are using for your forum in the folder "editor"

One-Take
08-31-2009, 09:33 PM
you have to upload the image to every style you are using for your forum in the folder "editor"Already had that done.. what worked was to change where I added the additional code into <if condition="$show['code_bbcode']"> section... rather than <if condition="$show['html_bbcode']">

Works fine now..

:D

Tommo224
09-02-2009, 01:13 AM
Works Beautifully! Thank you!

motorola
09-05-2009, 01:17 PM
I have a probblem when I put some youtube links in my forum,i had installed this mod a few weeks a go,everything was okay untill today !

In Google Chrome works fine,in other browsers show this error

I use the youtube url not the embed code....
What is the probblem?

https://vborg.vbsupport.ru/external/2010/04/10.jpg

Any answere on my probblem?

Welshy2008
09-06-2009, 06:40 PM
question is: where do I upload the image to to make it show up? Right now, there is no image, nor is there a red x appearing after modifying the editor_toolbar_on template as directed..

Ideas?

Thanks!
One-Take


On the red x - Right Click and that will tell you exactly where to upload the image to.

Mine was: forum-> images -> editor

Oceanside
09-06-2009, 08:57 PM
Installed

Seems to be working very well. Thank you. :)

Boneedd
09-09-2009, 12:58 AM
everything works fine installed

Edit: I found a bug.. when going to edit the post with the video, the bb code & link disappears..... Uninstalled for now

Pandadisossato
09-18-2009, 08:13 AM
everything works fine installed

Edit: I found a bug.. when going to edit the post with the video, the bb code & link disappears..... Uninstalled for now

I've noticed the same bug, I'll continue to use it while I'll not find a better mod or the bug will be fixed.
I suggest to add the same feature of "add image" button that ask to put the url of the video.

Thanks for your work

ChopSuey
09-18-2009, 08:24 AM
I've noticed the same bug, I'll continue to use it while I'll not find a better mod or the bug will be fixed.
I suggest to add the same feature of "add image" button that ask to put the url of the video.

Thanks for your work

DJ's AME? Works with all sorts of vids.

Pandadisossato
09-18-2009, 09:26 AM
DJ's AME? Works with all sorts of vids.

Just found I came back here to suggest AME (https://vborg.vbsupport.ru/showthread.php?t=202476) as alternative too.
Anyway Thanks

H22A
10-28-2009, 10:30 PM
why the youtube icon doesn't work

<!--custom bbcode youtube start -->
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_yt"><img src="$stylevar[imgdir_editor]/youtube.gif" width="21" height="20" alt="Wrap [yt] tags around selected text" /></div></td>
<!--custom bbcode youtube end -->

jmpa
10-29-2009, 04:35 AM
Just found I came back here to suggest AME (https://vborg.vbsupport.ru/showthread.php?t=202476) as alternative too.
Anyway Thanks

Thanks, but I am always a bit scary to install lofty mods on my forum. Shouldn't I?

KrisP
04-26-2010, 11:52 PM
I dont understand others are not complaining about this error ??? This is what any user would do:

1. User click reply to post.
2. User paste youtube link in post (code in post now looks like this: *[*URL*]http://www.youtube.com/watch?v=NX80KoTZv9g[*/*URL*])
3. User mark link
4. User click youtube bbcode icon - code now looks like this: [*URL="http://www.youtube.com/watch?v=NX80KoTZv9g"]
[/*URL][URL]http://www.youtube.com/watch?v=NX80KoTZv9g[/U*RL][U*RL="http://www.youtube.com/watch?v=NX80KoTZv9g"]
[/*URL]

(random stars inserted)

How can you expect the users to figure out for themselves to avoid this :confused:

I have a probblem when I put some youtube links in my forum,i had installed this mod a few weeks a go,everything was okay untill today !

In Google Chrome works fine,in other browsers show this error

I use the youtube url not the embed code....
What is the probblem?

https://vborg.vbsupport.ru/external/2010/04/10.jpg

johnmr
05-04-2010, 09:02 PM
I installed the product and etited the editor_toolbar_on and I got no icon.

I then added bbcode and I ended up having 2 icons. One was giving the tags and the other

I then removed the code from the editor file and I had one icon with the tags which doesn't work.

Any ideas or better instructions?

johnmr
05-04-2010, 11:11 PM
I had to remove this $vBeditTemplate[extrabuttons] to have just the one image

It works ok but when you try to edit your post the you tube link or video isn't there. Any ideas?

sherrym
05-04-2010, 11:41 PM
Works well...thank you.

Sherry

elrafei
06-09-2010, 07:14 PM
can i disable YouTube's new related videos feature on this mod ?

elrafei
06-09-2010, 07:34 PM
YES!

To disable this feature, you'll have to apply a minor hack to the embed code that you copy from YouTube. The hack is to simply add "&rel=0" to the end of the embed src URL.

Welshy2008
08-04-2010, 10:16 AM
Does this work on vB 4?

Can someone release this version for it please?

Welshy2008
08-17-2010, 12:00 PM
Is this working on vBs 4.0.5 and 4.0.6 please?

masterweb
09-10-2010, 06:32 PM
Same question here, does it works with vBulletin 4.0.5 or 4.0.6 ?

lycheepassion
12-12-2010, 11:21 PM
Same question here, does it works with vBulletin 4.0.5 or 4.0.6 ?

I need this for 4!!?

Welshy2008
01-25-2011, 09:13 PM
Anyone?

Gosef
02-07-2011, 03:36 AM
thanks alot

minig0d
05-24-2011, 11:18 PM
I have it installed on 4... didn't have to mod the xml product any but changed the template from what is specified here slightly.... The file specified only changes the advanced reply options... there is a different template to add a youtube button to the quick reply template...

It would be cool if the author could update this listing though as it does seem to work fine on 4.x

Also it would be nice if it could also support youtube's new abbreviated URL's (youtu.be/whatever) that you get when you click the SHARE button on a video

ShawneyJ
07-24-2014, 10:25 AM
i have added the normal youtube video size and added the tags as fullURL to the xml here. works with iphone and seems to be the only full url youtube bbcode that works for me plus full screen. thanks heaps. tested on 3.8.8 client forum.