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)

yotsume 10-20-2014 11:56 AM

Installed and works perfectly on vBulletin 4.2.2 Patch Level 1https://vborg.vbsupport.ru/external/2014/10/7.jpg

Linkeb3 04-07-2015 08:20 PM

can we get an update?

Disasterpiece 04-07-2015 08:23 PM

Quote:

Originally Posted by Linkeb3 (Post 2542559)
can we get an update?

I'm not up to speed. What changed? What needs to be upgraded?

mykkal 05-17-2015 12:16 AM

Does this work on vb 4.2.3?

puertoblack2003 05-19-2015 12:25 AM

Quote:

Originally Posted by Disasterpiece (Post 2542560)
I'm not up to speed. What changed? What needs to be upgraded?


new api 3.0

mykkal 05-19-2015 01:13 AM

Yea they just released a new api so they may deprecate stuff. But honestly, if this worked with vimeo and brightcove links you'd have the whole world covered :)

mapleleaffans 06-27-2015 03:49 AM

This is a great mod, thank you!

Duke49th 02-22-2016 03:31 PM

Great Mod.
Just one thing:

Using Youtu.be Links directly into [video] bbcode (for example with the Editor Button) - it still brings errors.

If I just put the link into the post - it converts it correctly.

If you can change/fix that issue - its perfect :) I then give 5 stars and nomiate it :D (not rated yet...dont know if I can change my rating later)

dachkraxler 03-06-2016 05:39 AM

Funktioniert super mit dem VB4.2.2 Patch Level 4

Danke!!

Jonm 03-06-2016 06:42 PM

works fine for me

Techno Cowboy 03-14-2016 10:34 AM

Have this installed and working as should on vB 4.2.4 B1! :D

Like your hack sir...indeed! :up:

miguellu 04-30-2016 02:23 PM

Hi! Is there any way to enable fullscreen?

justasiam 05-01-2016 10:53 PM

Does this work with those adding articles in the 4.2.xx Suite?

tharbin 05-02-2016 04:06 PM

Works as intended. Thanks a ton

BadgerDog 07-07-2016 10:19 AM

1 Attachment(s)
Has anyone else had any issues with users complaining that they are unable to view videos in-line on the site using this mod, yet when they go to the actual YouTube site, they view fine? (see pics)

Also, is there going to be an update to this excellent mod to support API 3.0 from YouTube and also better support the Youtu.be links?

Thanks..

Regards,
Doug

Disasterpiece 07-08-2016 01:47 PM

Hi,

Conflicts may come from any conflicting javascript includes, like for example different jqueries or anything else really. Hard to say without js-console output.

Mod upgrade likely won't happen, as I don't have access to/interest in vb at this point.

Daniel 10-10-2016 02:47 AM

How can I get this working in the blogs section too?

bosanci28 10-15-2016 02:06 AM

Works in vb4.2.3
Thanks.

mobster46 02-05-2017 08:21 AM

How I can png link convert?

dirkji 02-06-2017 07:30 AM

Since last week all YouTube embeds show up as black boxes on IE. Chrome and Firefox work fine. Does anyone have an idea what's causing this?

alexm 02-07-2017 11:28 AM

Quote:

Originally Posted by dirkji (Post 2581928)
Since last week all YouTube embeds show up as black boxes on IE. Chrome and Firefox work fine. Does anyone have an idea what's causing this?

I think it is in the vBulletin template 'bbcode_video' (it's nothing to do with this mod). If you change //www to https://www IE should work. I just did the same to my vBulletin 4.2.3 and looked here first!

edit: Now it doesn't work again :mad:

edit2: It's something weird with IE debugger, when I open Developer Tools and then refresh it opens the Youtube fine!

dirkji 02-08-2017 08:51 AM

Quote:

Originally Posted by alexm (Post 2582000)
edit2: It's something weird with IE debugger, when I open Developer Tools and then refresh it opens the Youtube fine!

Yes, I noticed that as well.

When I change:

<meta http-equiv="X-UA-Compatible" content="IE=9">

to

<meta http-equiv="X-UA-Compatible" content="IE=Edge">

the videos work fine, but then my image uploader stops functioning.

Any other ideas?

dirkji 02-09-2017 06:57 AM

It seems to have fixed itself, probably an IE update...

IggyP 09-15-2017 07:55 PM

hmm...noticed ipad mini retina not showing the embeds...any ideas of that? i see in the notes it was meant to be working on at least some form of tablet..

in fact is there a simply all around better version of this? seems like there would be, just didnt see it yet...better to not use flash at all isnt that possible by now?


EDIT:
i removed the flash part of the code....it now loads the embeds into posts....but if you try to play them, it redirects to youtube...anyone know what is the better replace code than this for mobile?

Quote:

<a href="http://www.youtube.com/watch?v=%1$s">
YouTube Video:<br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="480" height="360" alt="Click here to view on youtube" /></a>

IggyP 09-15-2017 09:00 PM

got it...

Quote:

<iframe id="ytplayer" type="text/html" width="640" height="360"
src="https://www.youtube.com/embed/%1$s"
frameborder="0"></iframe>

djbaxter 09-15-2017 10:01 PM

Posting just for my own clarification the solution from IggyP above...

FIND near line 130 in XML file:

Code:

        <defaultvalue><![CDATA[<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/%1$s" width="480" height="360">

REPLACE with:

Code:

              <defaultvalue><![CDATA[<iframe id="ytplayer" type="text/html" width="640" height="360"
src="https://www.youtube.com/embed/%1$s" frameborder="0"></iframe>


Note: This sort of works for iPad. However, it leaves a lot of empty white space with a thumbnail and the fallback link to view on Youtube near the bottom of the post.

On iPhone, it just creates a lot of empty white space, although the video is viewable if I switch to desktop or iPad.

Did I do something incorrectly?

IggyP 09-15-2017 11:49 PM

its just a simple code i found as alternate to the flash...i didnt try it by mobile on phone size, but perhaps its the size settings in the code? i wanted to keep it sort of big for "mobile" tablet but of course phones maybe thats a problem? hmm


theres other options that can be added as well of course.. >> https://developers.google.com/youtube/player_parameters


also this quote from the source: which suggests the sizes 240 and 135 instead of what i used..fwiw...

Quote:

Use the iframe-embedded version of the player instead of the Flash one. The embedded version is smart enough to render the appropriate player based on the device (ie, it may render the Flash version for phones like the Android that support it, or the HTML5 version for iPhone).
Quote:

<iframe
width="240" height="135"
src="http://www.youtube.com/embed/videoid"
frameborder="0" allowfullscreen>
</iframe>
EDIT: fwiw, testing with an s5 and ipad mini retina i cannot reproduce, seems to work proper and scale and everything but thats not necessarily saying much

EDIT2: also dont forget this mod has options....so dont really need to hack the xml ;)

djbaxter 09-16-2017 10:19 PM

Quote:

Originally Posted by IggyP (Post 2589922)
EDIT2: also dont forget this mod has options....so dont really need to hack the xml ;)

D'oh!

And that explains why it wasn't working for me. When I go to the options, it still has the old Flash code.

Going to try editing that now.

djbaxter 09-16-2017 10:52 PM

And your original fix when I edit it in options works just fine. I tweaked the fallback it just a little for formatting so now the complete contents of the mobile text box in Options looks like this:

Code:

<iframe id="ytplayer" type="text/html" width="640" height="360"
src="https://www.youtube.com/embed/%1$s"
frameborder="0"></iframe>
<param name="movie" value="http://www.youtube.com/v/%1$s" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<!-- Fallback content -->
<br /><br/><a href="http://www.youtube.com/watch?v=%1$s">
Click here to watch video on YouTube<br /><br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="240" height="180" alt="Click here to view on youtube" /></a>
</object>

Thank you, IggyP, both for the fix and for helping me through my D'Oh! moment. :)

alexm 05-14-2018 01:32 PM

I?ve got a problem... over the last 2 weeks (maybe longer!) videos appear as a black window if you use IE11. What it appears to be is:

Code:

<meta http-equiv="X-UA-Compatible" content="IE=9" />
in headinclude.

If you remove it Youtube embeds correctly... but unless you have this added then people can?t press enter if they have anything but simple text turned on.

I don?t know whether it is IE?s fault or YouTube?s fault (probably IE :rolleyes:)... does anyone else have this problem?

Alex

rory2000 06-12-2019 07:08 AM

Yes I have the same issue also ... do we know is there a fix or an update ?

SteveBoogie 11-23-2019 07:43 PM

Thanks for updating the mod to accommodate the mobile links brother


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