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 |
#82
|
||||
|
||||
Which vbulletin version do you use?
When you click on Addons/Plugins, is the Addon or any of the plugins in the list " [s]disabled[/s] "? |
#83
|
|||
|
|||
Is it possible that the code can be edited to display always the best quality (HD version) if the movie has more versions?
|
#84
|
||||
|
||||
Only if this information can be obtained without an additional query.
And then, the plugin uses the native vbulletin video functions, if they don't support this, the plugin does neither. |
#85
|
|||
|
|||
i fixed it thanks
|
#86
|
|||
|
|||
how can i get this for CMS Theards? If i want a forum theard to CMS Articel?
|
#87
|
||||
|
||||
Not right now.
I don't own the cms/blog suite, so I can't code for it :/ |
#88
|
|||
|
|||
ok, no problem might
but can you add, AUTO THUMBNAIL from the Youtube Video for a theard thumbnail?? ^^ |
#89
|
||||
|
||||
I'm not quite sure what you mean
|
#90
|
||||
|
||||
Thanks works a treat
|
#91
|
|||
|
|||
Okay, it's been a really long time since I've made updates to our code. We are currently running version 3.8.2 (the guy who owns the board isn't around much, he hasn't updated in awhile...obviously). Anyway, I imported this as a new "Product" since that's what the Plugin Manager told me to do. I don't know if it's something with the 4+ versions that call it an add-on.
I didn't make any other changes - we don't currently have any video/YouTube tags for the board. When I created a thread with a YouTube link in it, I got this error: "Fatal error: Call to undefined method vB_BbCodeParser::handle_bbcode_video() in /home/thekryp/public_html/forum/includes/class_postbit.php(294) : eval()'d code on line 14" I uninstalled it for the time being so nobody else runs into the error. Do I need to do something else to get this to work? Do you have to have other tag info in the code? Or possibly just too old of a version? I didn't want to make too many changes to the code at once, so I figured I'd start here and work backwards if I'm missing something Thank you! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|