The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Auto Youtube Link-Converter Details »» | |||||||||||||||||||||||||||||||||
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 Code:
<a href="http://www.youtube.com/watch?v=somecode&some=params">http://www.youtube.com/watch?v=somecode&some=params</a> 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. Code:
Changes since 1.3: - Now works properly on iPad Changes since 1.2: - Supports mobile devices with fallback-display if browser doesn't support flash/embed codes - Allows the user to specify the above mentioned replacement code for mobile browsers - Minor improvements & Fixes Changes since 1.1: - Moved regular expression and index position into admincp settings to allow easier changing in the future - supports new youtube link format: "http://youtu.be/*somevideocode*" Changes since 1.0: (or: why should I download that mod again?) - Added Link parsing in post-preview mode and in post reviewbits (the latest posts you see under the new reply form) 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
Show Your Support
|
14 благодарности(ей) от: | ||
beertruck, CuteC@t, davew, donkspurs, Duke49th, GhostHunter2010, GoMaX, iiioroh, L2Insomnia, mapleleaffans, orangecopper, SteveBoogie, Toorak Times |
Comments |
#52
|
|||
|
|||
Brilliant thanks!
|
#53
|
||||
|
||||
Good stuff, thanks for the update!
|
#54
|
|||
|
|||
excellent - works perfectly, thanks
|
#55
|
|||
|
|||
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 |
#56
|
|||
|
|||
Quote:
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 |
#57
|
||||
|
||||
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. |
#58
|
|||
|
|||
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. |
#59
|
|||
|
|||
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. |
#60
|
||||
|
||||
Quote:
I'll check this out and keep you posted. |
#61
|
||||
|
||||
Updated to 1.3
Supports mobile devices for flash/embed-less browsers |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|