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 |
#92
|
||||
|
||||
The Mod is made vor vbulletin 4 as you can see in the details in the first post, so I give no guarantee that it runs on older versions, now you know why
|
#93
|
|||
|
|||
Yep, I did see that, and didn't see anyone else using anything much older to know if it worked or not, so it didn't hurt to ask! So assuming I had a newer version, I wouldn't need to add anything else to the code?
|
#94
|
||||
|
||||
in theory, you must check the script files where the according hooks are located and see how video tags are parsed there. Then you replace the function name with the current in the script, which doesn't seem to exist prior to vb4. The rest of the code should be generative enough that it works on vb3 too.
|
#95
|
|||
|
|||
Great mod,
working without problems, v4.1.2 thanks |
#96
|
||||
|
||||
Updated with version 1.4:
iPad shows replacement properly |
#97
|
||||
|
||||
Possible to do Game Trailers.?
http://www.gametrailers.com/video/de...-dirt-3/702436 Here is the embed code.. Code:
<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:702436" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;">Tags: <a href="http://www.gametrailers.com">GameTrailers.com</a>, <a href="http://www.gametrailers.com/video/debut-teaser-dirt-3/702436">Debut Teaser</a>, <a href="http://pc.gametrailers.com/">PC Games</a>, <a href="http://ps3.gametrailers.com/">PlayStation 3</a>, <a href="http://xbox360.gametrailers.com/">Xbox 360</a></p></div></div> >> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.? Thanks |
#98
|
||||
|
||||
Quote:
Possible: yes. But: This would go way beyond the scope of this mod. If you'd like to have an individual solution, you can contact me via PM. |
#99
|
|||
|
|||
This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?
Thanks! |
#100
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
Not tested but should work. |
#101
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|