vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - Youtube Embed Full URL BB Code - [yt] (https://vborg.vbsupport.ru/showthread.php?t=216048)

1Unreal 06-12-2009 10:00 PM

Youtube Embed Full URL BB Code - [yt]
 
1 Attachment(s)
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

Code:

[yt]http://www.youtube.com/watch?v=gEl1xSPyOwA[/yt]
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

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

Quote:

Originally Posted by Bill from Cleve (Post 1829235)
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

Quote:

Originally Posted by gigi37 (Post 1829199)
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

Quote:

Originally Posted by djdog (Post 1830207)
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.dandanthecarpetcleaningma...ning.php?pn=53

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

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

I have also tried:

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

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:

Code:

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

Code:

<!--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/attachmen...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 [yt] link here [/yt] 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

Quote:

Originally Posted by elenh (Post 1877399)
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

Quote:

Originally Posted by motorola (Post 1876465)
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

Quote:

Originally Posted by One-Take (Post 1877386)
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

Quote:

Originally Posted by Boneedd (Post 1881843)
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

Quote:

Originally Posted by Pandadisossato (Post 1886866)
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

Quote:

Originally Posted by ChopSuey (Post 1886872)
DJ's AME? Works with all sorts of vids.

Just found I came back here to suggest AME as alternative too.
Anyway Thanks

H22A 10-28-2009 10:30 PM

why the youtube icon doesn't work

Code:

<!--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

Quote:

Originally Posted by Pandadisossato (Post 1886894)
Just found I came back here to suggest AME 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"][YT]
[/*URL][URL]http://www.youtube.com/watch?v=NX80KoTZv9g[/U*RL][U*RL="http://www.youtube.com/watch?v=NX80KoTZv9g"]
[/YT][/*URL]

(random stars inserted)

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

Quote:

Originally Posted by motorola (Post 1876465)
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

1 Attachment(s)
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
Code:

"&rel=0"
to the end of the embed src URL.


All times are GMT. The time now is 06:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01280 seconds
  • Memory Usage 1,822KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete