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 |
#62
|
|||
|
|||
Quote:
Continues to work fine on my computer (MacBook Pro) running FireFox, as tested with post YouTube link shown below ... :up: Tested accessing site from my two mobile devices using this YouTube link shown in a post. http://www.youtube.com/watch?v=9E7GLdYhm3s iPhone 4 ... :up: (video window appears and link marked YouTube Link shows above it.) iPad .... :down: (post is blank .. no video or link shown ... when post is edited, link above shows fine) Hope this helps track down any problems ... Regards, Doug Edit: Follow up.. as a test, I DISABLED mod and checked post on iPad following that. Link to YouTube video then appears in post. I ENABLED mod again and post becomes blank again... no video, no pic. |
#63
|
|||
|
|||
Quote:
Quote:
|
#64
|
||||
|
||||
Yes, browsers that do not support the embed/flash-functionalities, have a fallback to the youtube preview image and a link to the youtube page attached. This is the (best) standard X3 conform method i could find
|
#65
|
|||
|
|||
Voted for MOTM
|
#66
|
|||
|
|||
Anyone else tried this on the iPad?
See my post above where neither link or video appear with 1.3 ... However, does appear fine on iPhone 4 with same Safari browser and same operating system. Thanks ... Regards, Doug |
#67
|
|||
|
|||
Greta mod working for me on 4.1.3
|
#68
|
||||
|
||||
Quote:
But as failsafe, you could change the fallback code to only image and link, so if a mobile browser is detected, don't use the default vB video embed at all. You can accomplish this when you change the fallback embed code in the plugin's settings to this: HTML Code:
<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="240" height="180" alt="Click here to view on youtube" /></a> |
#69
|
|||
|
|||
Quote:
What is the name of the plugin? I can't seem to find where to put that new code exactly, or what existing code to replace ... I'm not the brightest light bulb programmer in the room .. Regards, Doug |
#70
|
||||
|
||||
The Settings from Auto Youtube Viewer in your vB AdminCP > Settings > Auto Youtube Link Converter
I added an option in version 1.3 exactly for that purpose |
#71
|
|||
|
|||
Quote:
That code is exactly what's in that box right now at the last line? Code:
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/%1$s" width="480" height="360"> <param name="movie" value="http://www.youtube.com/v/%1$s" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <!-- Fallback content --> <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="240" height="180" alt="Click here to view on youtube" /></a> </object> Doug |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|