vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Auto Youtube Link-Converter (https://vborg.vbsupport.ru/showthread.php?t=261296)

zelnik 04-22-2011 02:11 PM

Brilliant thanks!

theoutlawed 04-22-2011 03:54 PM

Good stuff, thanks for the update!

blue-c 04-22-2011 11:07 PM

excellent - works perfectly, thanks

ttran 04-24-2011 08:08 PM

HI Disasterpiece
This 1.2 works well on 4.0.8 Thank You!
I wonder if you can do this kinda code for Flickr and Photobucket Video as well? I think this would be great.
Thanks

BadgerDog 04-24-2011 09:07 PM

Quote:

Originally Posted by ttran (Post 2188240)
HI Disasterpiece
This 1.2 works well on 4.0.8 Thank You!
I wonder if you can do this kinda code for Flickr and Photobucket Video as well? I think this would be great.
Thanks

That's a really interesting idea..... :up:

Perhaps convert the Photobucket [URL] link to an [IMG] link ...

Drives me crazy when folks are too lazy (or don't know how) to do anything but post an HTTP:// link to their pic which takes them off our site.

Regards,
Doug

Disasterpiece 04-24-2011 10:44 PM

hmm, well you could. But every check costs render time the way it is now. I think this is not the appropriate way to auto-replace more than 1 particular link structure.

I coded and released this mod, because in my case, youtube links are 99% of all links which makes sense to convert them and actually improves usability. For everything else, I suggest to keep an eye out for other similar mods which cover this case.

Flickr can't be easily translated from url to embed, because it's an additional query necessary to check if the author allowed embedding, etc. So that's a bit more difficult to handle than youtube.

yin9 04-24-2011 11:50 PM

Thanks for this mod, it work with almost all videos in my forum, but I can't do that with this URL format:

http://www.youtube.com/v/2jql3tUuiFU


My forum have many videos with that format. Can you help me?

Too have many videos with spanish subdomain in URL and Without "www", but i solved this changing in RegEx "www\.youtube\.com" by ".*\youtube\.com":

Code:

/<a href=\"https?:\/\/((.*\youtube\.com\/watch\?v=)|(youtu\.be\/))([a-zA-Z0-9-_]+)(.*)?\"( target=\"_blank\")?>.*<\/a>/

Thanks in advance, greetings.

grc 05-04-2011 04:16 PM

Sorry if this has already been asked, but I don't see it....

A few users are complaining that their browser/device doesn't see the videos when they are embedded in a post. If they have the link to youtube, they can view in youtube (why is beyond me).

Anyway, is there a way that, say, beneath the video, the link to it on youtube can be shown?

Thanks for the nifty mod.

Disasterpiece 05-04-2011 07:10 PM

Quote:

Originally Posted by grc (Post 2191732)
Sorry if this has already been asked, but I don't see it....

A few users are complaining that their browser/device doesn't see the videos when they are embedded in a post. If they have the link to youtube, they can view in youtube (why is beyond me).

Anyway, is there a way that, say, beneath the video, the link to it on youtube can be shown?

Thanks for the nifty mod.

I noticed this as well, but I can't explain it yet. Fact is: The mod only replaces the link code to embed code. Maybe for special devices (iphone, smartphones in general) there is a special code necessary.
I'll check this out and keep you posted.

Disasterpiece 05-05-2011 05:57 PM

Updated to 1.3

Supports mobile devices for flash/embed-less browsers https://vborg.vbsupport.ru/


All times are GMT. The time now is 01:18 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.01168 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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