vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   BB Code Enhancements - YouTube BB Code (W3C-compliant!) (https://vborg.vbsupport.ru/showthread.php?t=194246)

ncrdave 01-18-2009 08:36 PM

Installed!! Works great!! Thanks for a great, and easy mod!!

TheCorvetteForums.com ZR1 Video :up:

jlew24asu 01-19-2009 12:23 PM

Quote:

Originally Posted by Fangs404 (Post 1717051)
Which FF extensions do you have? Try disabling all of them and then see if it works. Does it work in IE?

tab mix plus and foxy tunes. doesnt work in IE either. this is the vid im trying

http://www.youtube.com/watch?v=-zvCUmeoHpw



-------

Digital Jedi 01-19-2009 08:21 PM

Quote:

Originally Posted by jlew24asu (Post 1717813)
tab mix plus and foxy tunes. doesnt work in IE either. this is the vid im trying

http://www.youtube.com/watch?v=-zvCUmeoHpw



-------

This might seem like a silly question, but are you including the dash "-" ?

Fangs404 01-20-2009 02:12 AM

Quote:

Originally Posted by Digital Jedi (Post 1718222)
This might seem like a silly question, but are you including the dash "-" ?

This is my guess as well. This is what the command should look like:

Code:

[youtubehd]-zvCUmeoHpw[/youtubehd]

jlew24asu 01-20-2009 02:41 PM

Quote:

Originally Posted by Digital Jedi (Post 1718222)
This might seem like a silly question, but are you including the dash "-" ?

not silly at all! I had no idea about the dash. thanks! where did I miss this instruction?

Digital Jedi 01-20-2009 03:09 PM

Quote:

Originally Posted by jlew24asu (Post 1719041)
not silly at all! I had no idea about the dash. thanks! where did I miss this instruction?

This ID number for a video begins immediately after the equals = symbol. So in this case, the dash was part of the ID.

jlew24asu 01-20-2009 03:13 PM

Quote:

Originally Posted by Digital Jedi (Post 1719069)
This ID number for a video begins immediately after the equals = symbol. So in this case, the dash was part of the ID.

oh. ok. thanks for your help :)

the stig 02-02-2009 07:11 PM

QUick question:

Can I change the value to 560 x 385 in the bbcode manager? the embed 425 x 344 is too small... thanks

Fangs404 02-04-2009 12:54 AM

Quote:

Originally Posted by the stig (Post 1732251)
QUick question:

Can I change the value to 560 x 385 in the bbcode manager? the embed 425 x 344 is too small... thanks

I actually just checked YouTube's dimensions for regular and HQ, and it's 644x390 (HD is 858x508 for comparison). I went ahead and changed it. Thanks for the recommendation. :)

the stig 02-04-2009 01:52 AM

What should I do now?

I have regular and HQ youtube bb code. Should I just change the BB codes in bb code manager? Will changing the bb code to a different dimension affect any of our previously embeded videos in various post/threads?

thanks.

Fangs404 02-04-2009 04:17 AM

Quote:

Originally Posted by the stig (Post 1733703)
What should I do now?

I have regular and HQ youtube bb code. Should I just change the BB codes in bb code manager? Will changing the bb code to a different dimension affect any of our previously embeded videos in various post/threads?

thanks.

Yes, it'll change all instances of youtube or youtubehq to be the new dimensions, including the previously embedded ones.

the stig 02-04-2009 11:43 PM

Quote:

Originally Posted by Fangs404 (Post 1733802)
Yes, it'll change all instances of youtube or youtubehq to be the new dimensions, including the previously embedded ones.

Much thanks, sir. This is the best youtube embedding hack till date.

Fangs404 02-05-2009 06:23 AM

Quote:

Originally Posted by the stig (Post 1734752)
Much thanks, sir. This is the best youtube embedding hack till date.

Thank you. That means a lot. :)

james-76 02-06-2009 04:55 PM

When i try to post these videos in the first post as a thread they come up as BORKED on firefox. When they are a reply to a thread so the 2nd post or after they work perfectly.

Can you help?

http://www.birdiechance.co.uk/forums...osted=1#post84

forgive the forum its not quite ready for the official opening just yet.


EDIT:
Ok I realised the problem and it was the tags and link were not on the same line. Iwill post below incase others have the same issue

Code:

This works fine

[YOUTUBE]1YQhoMt68CU[/YOUTUBE]

This comes up as BORKED and does not work

[YOUTUBE]1YQhoMt68CU
[/YOUTUBE]


Fangs404 02-06-2009 09:58 PM

Quote:

Originally Posted by james-76 (Post 1736275)
When i try to post these videos in the first post as a thread they come up as BORKED on firefox. When they are a reply to a thread so the 2nd post or after they work perfectly.

Can you help?

http://www.birdiechance.co.uk/forums...osted=1#post84

forgive the forum its not quite ready for the official opening just yet.


EDIT:
Ok I realised the problem and it was the tags and link were not on the same line. Iwill post below incase others have the same issue

Code:

This works fine

[YOUTUBE]1YQhoMt68CU[/YOUTUBE]

This comes up as BORKED and does not work

[YOUTUBE]1YQhoMt68CU
[/YOUTUBE]


Yeah, what that'll do is try to make the URL include a return which I guess causes YouTube to throw a fit.

Also, I don't know if you guys knew this, but if you want to make the video autoplay, you can do something like this:

Code:

[youtubehd]zlfKdbWwruY&autoplay=1[/youtubehd]
Just add &autoplay=1 to the end of the video ID.

the stig 03-20-2009 02:07 AM

Mr. Fangs404, looks like YouTube changed their default video size again (for regular and HQ videos). Would you be kind enough to update the sizes again? thanks.

Fangs404 03-22-2009 03:36 AM

Quote:

Originally Posted by the stig (Post 1772306)
Mr. Fangs404, looks like YouTube changed their default video size again (for regular and HQ videos). Would you be kind enough to update the sizes again? thanks.

Hm, according to my calculations, regular/HQ is 644x390 and HD is 858x508 which is what the BBCode uses currently. Are you seeing something different on your end?

Tannerman 03-25-2009 09:13 PM

Has anyone noticed in the last week or so while using this modification that HQ videos are no longer defaulting in HQ mode when embedded? The HQ button is there, but it's no longer the default when the video starts. Did something change on the parameter level?

Fangs404 03-29-2009 01:32 AM

I just removed the HQ YouTube tag (youtubehq). It's no longer necessary since the embedded player now has a HQ button built in. The embedded player actually also has an HD button if HD is enabled for the video, but I'm leaving the HD tag (youtubehd) because it's a physically larger player.

richardyoung 03-30-2009 03:05 AM

NIce.. just installed and works great

james-76 03-30-2009 08:49 AM

This is not working with firefox from today but works fine with IE.
http://www.birdiechance.co.uk/forums...read.php?t=601

Do you have any idea what the issue could be?

Fangs404 03-31-2009 05:02 AM

It's working just fine for me. It's an issue on your end. Check that you have the latest version of Flash and that you have no conflicting FF extensions (check AdBlock or NoScript).

Fangs404 03-31-2009 05:27 AM

I just modified both BB codes so that the full screen button is now available. I didn't realize it was missing until someone just told me yesterday.

james-76 03-31-2009 07:48 PM

I have an idea that you might like to add :)

How you have "Borked"

I have changed it to "Video Error - Check here to make sure you have added it correctly."

This takes them to the FAQ so they can see the example etc.

Ok heres my idea I hope you are able to do it.

Instead of "Borked" could you make it so its an actual link to the correct video on youtube that opens in a new window? This way if the embedding fails on a site like it has mine a few times then it would show a link to video instead.

Thanks a lot :)

Fangs404 04-01-2009 03:49 PM

Quote:

Originally Posted by james-76 (Post 1781281)
I have an idea that you might like to add :)

How you have "Borked"

I have changed it to "Video Error - Check here to make sure you have added it correctly."

This takes them to the FAQ so they can see the example etc.

Ok heres my idea I hope you are able to do it.

Instead of "Borked" could you make it so its an actual link to the correct video on youtube that opens in a new window? This way if the embedding fails on a site like it has mine a few times then it would show a link to video instead.

Thanks a lot :)

I like that idea a lot.

james-76 04-02-2009 07:07 AM

Maybe you could have it as:

Quote:

"If no video is showing it could have been added incorrectly or there could be a technical issue.
Click here to view the video on youtube's site. (links to youtube and the correct video)

If you have added this video click here to make sure you have added it correctly. " (links to FAQ about youtube tag and example)
Of course the above would all be worded how you wish as I am just giving rough examples :p

It says a lot more than one word but it would stop us all coming back here asking whats the problem especially for human error.
I would think you could do this pretty easily but what do I know :eek:
Thanks for saying you liked the idea :) I hope at some point in the future you have some time to give it a try.

Regards,
James

Fangs404 04-02-2009 07:40 PM

OK, here's what I changed it to.

HTML Code:

Something went wrong.  Please make sure you added the video correctly.  Click <a href="misc.php?do=bbcode">here</a> to see how YouTube videos should be embedded.  There could also be a technical issue that's not your fault.  Click <a href="http://www.youtube.com/watch?v={param}">here</a> to view the video on YouTube's site.  If this link doesn't work, you did something wrong.
Thanks for the recommendation. Hopefully this'll save some headaches.

james-76 04-02-2009 08:22 PM

Thit is perfect :) Thanks very much for your time.

I altered it a little on my site so itgoes straight to the youtube bbcode instead of all bb codes.

<a href="misc.php?do=bbcode#youtube" target="_blank">

Also I made both links open in seperate windows as this suits me but may not suit others :)

Thanks once again.



Code:

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{param}&fs=1" width="644" height="390"><param name="movie" value="http://www.youtube.com/v/{param}&fs=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" />Something went wrong. Please make sure you added the video correctly. Click <a href="misc.php?do=bbcode#youtube" target="_blank">here</a> to see how YouTube videos should be embedded. There could also be a technical issue that's not your fault. Click <a href="http://www.youtube.com/watch?v={param}" target="_blank">here</a> to view the video on YouTube's site. If this link doesn't work, you did something wrong.</object>

Fangs404 08-12-2009 03:56 AM

Unfortunately, it appears that YouTube has removed the ability to embed HQ and HD videos using the &fmt=22 trick. As a result, I'm going to remove the youtubehd tag from my script.

Fangs404 08-17-2009 08:06 PM

OK, HD videos will work again. I had to change &fmt=22 to &hd=1.

GuyUltimate 10-11-2009 02:37 AM

where do u install it?
how?

please leave a little bit of installation guide...
thanks!

Fangs404 10-12-2009 09:40 PM

Quote:

Originally Posted by GuyUltimate (Post 1897876)
where do u install it?
how?

please leave a little bit of installation guide...
thanks!

Just like every other BB code. Go into the admin console, and go to the BB code section.

the stig 10-22-2009 04:46 AM

hey fangs, I have your old version where it said "borked". I see that you've done a lot of changes to the code and it's very nice now. If I were to replace old codes for the new ones, will my old embed work properly?

thanks.

Fangs404 10-24-2009 07:13 PM

Quote:

Originally Posted by the stig (Post 1903534)
hey fangs, I have your old version where it said "borked". I see that you've done a lot of changes to the code and it's very nice now. If I were to replace old codes for the new ones, will my old embed work properly?

thanks.

Yes, the old embeds will continue to work properly.

the stig 10-26-2009 07:31 AM

Quote:

Originally Posted by Fangs404 (Post 1905678)
Yes, the old embeds will continue to work properly.

You're full of awesomeness. I wish you had a "Donate" button. :)

gonedigital 12-03-2009 05:11 PM

Installed the Standard and Hi-Def tags. worked great thanks.

Cobro 12-03-2009 07:20 PM

Works great on 3.8.2
Thank you very much

enemy@fps 02-05-2010 11:34 AM

thanks ;)

Bulent Tekcan 05-01-2011 09:55 AM

is it possible to disable quote ? I need if anyone use quote this is convert to link only.

Sworm 05-01-2011 10:13 AM

Quote:

Originally Posted by Bulent Tekcan (Post 2190608)
is it possible to use full youtube url ?

Yes, should be really great.... not more users will take the full url in the tags....


All times are GMT. The time now is 04:13 AM.

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.01368 seconds
  • Memory Usage 1,839KB
  • 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
  • (1)bbcode_html_printable
  • (18)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