![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
Auto Youtube Link-Converter
![]() Developer Last Online: Oct 2019 ![]() ![]() ![]()
So basically this is a total easy-to-implement plugin, which converts standard youtube links to video-embeds on the fly without urging users to use the video-button because I think it is unnecessary.
On post display, the plugin checks if the post contains at least 1 youtube link in the form of
and converts them using the default vB video bbcode parser. Code can be modified to fit your needs, altough there shouldn't be much to add. If you're the special performance-freak, I'm curious if you can enhance data/query-performance. So let me know if you do. INSTALL: - Download attached XML File and import it as an addon.
Now every post containing youtube-links should display the embedded video instead. Works with any number of youtube-links and any kind of text surrounding them. Let me know if you have trouble/questions. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
The following members like this post: davew, SteveBoogie, Duke49th, mapleleaffans, donkspurs and 9 others.
|
#256
|
||||
|
||||
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. No members have liked this post.
|
#257
|
||||
|
||||
How can I get this working in the blogs section too?
__________________
Daniel No members have liked this post.
|
#258
|
||||
|
||||
Works in vb4.2.3
Thanks. No members have liked this post.
|
#259
|
|||
|
|||
How I can png link convert?
No members have liked this post.
|
#260
|
|||
|
|||
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?
No members have liked this post.
|
#261
|
||||
|
||||
Originally Posted by dirkji
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 ![]() edit2: It's something weird with IE debugger, when I open Developer Tools and then refresh it opens the Youtube fine! No members have liked this post.
Last edited by alexm; 07 Feb 2017 at 12:51. |
#262
|
|||
|
|||
Originally Posted by alexm
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? No members have liked this post.
|
#263
|
|||
|
|||
It seems to have fixed itself, probably an IE update...
No members have liked this post.
|
#264
|
|||
|
|||
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?
No members have liked this post.
Last edited by IggyP; 15 Sep 2017 at 22:16. |
#265
|
|||
|
|||
got it...
The following members like this post: djbaxter
|
#266
|
||||||||
|
||||||||
Posting just for my own clarification the solution from IggyP above...
FIND near line 130 in XML file:
REPLACE with:
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?
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
Last edited by djbaxter; 16 Sep 2017 at 00:25. |
#267
|
|||
|
|||
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...
EDIT2: also dont forget this mod has options....so dont really need to hack the xml ![]() No members have liked this post.
Last edited by IggyP; 16 Sep 2017 at 02:36. |
#268
|
|||
|
|||
Originally Posted by IggyP
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.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#269
|
||||
|
||||
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:
Thank you, IggyP, both for the fix and for helping me through my D'Oh! moment. ![]()
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#270
|
||||
|
||||
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:
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 ![]() Alex No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 21:39.