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 |
#22
|
|||
|
|||
Really useful mod
|
#23
|
||||
|
||||
Installed and working fine on 4.1.2
thanks Nominated! |
#24
|
|||
|
|||
installed and nominated !
|
#25
|
||||
|
||||
works as it should on 4.1.2
thanks [high]* Brandon Sheley clicks install[/high] |
#26
|
|||
|
|||
Just installed 1.1 update and testing on 4.04pl1 ....
Appears to be operating just fine ... I like smart and intuitive add-ons that substitute for unnecessary steps for the end user and this is one of those ... :up: Regards, Doug Edit: oooppps.... found a problem. Have started to get emails from members saying that they're seeing YouTube videos being duplicated in just some posts, primarily older ones. Traced cause to a conflict with a mod we've been using for 5 years which is a BBCode [youtube]xxx[/youtube] add-on to handle YouTube videos even before vb4 did with their [video]xxx[/video] button. Any way to have this mod ignore that old mod (too many posts for us to change) and not translate, adding a second duplicate video? .. or, can we make an SQL pass on the database and change all posts to something else to be compatible with his mod? |
#27
|
|||
|
|||
Works fairly well. I've noticed some YouTube links won't auto embedd. Example,
http://www.youtube.com/user/tdwpplaya - Will no embed automatically http://www.youtube.com/watch?v=0ABGIJwiGBc - Will embed automatically. Is it because the first link is "user"/ and not watch?v= ? Either way, very nice Mod. This is the kinda stuff I don't understand why is not built in to the vB software. Clicking the [video] button is completely (or should be) unnecessary! |
#28
|
||||
|
||||
Quote:
I made a script for myself which changed all [youtube]...[/youtube] tags to full urls like http://www.youtube.com/watch?v=*videoid* to solve this problem. I attached it below. USE AT YOUR OWN RISK! Backup your database before running the query, disabling your forum might be a good idea, place it anywhere and delete it afterwards. Edit the file before you run it with your database credentials and modify the table-prefix/name accordingly. Hit the "continue" link until the script doesn't make any more queries. Oh and I had troubles with singlequotes in postings which messed up my query, so I simply escaped it. I didn't discover any problems with that, keep in mind that if your language makes excessive use of the ' character, you might want to find a way around that, I did not. Will only work with old youtube tags in the form of: Code:
[youtube]6mXM-oGggrM[/youtube] Code:
[youtube="hey check this out!"]6mXM-oGggrM[/youtube] Quote:
The user-link will only display the profile page of the user, not a specific video. Which means, if that particlular user uploads a new video, the new video will be shown on this site. I'm not aware if the vB video tag translates this kind of url too, I find it rather unintuitive and uncommon and due to the lack of a video-ID in the url, it's not really supposed to be embedded |
#29
|
|||
|
|||
Quote:
Installed/Rated/Voted |
#30
|
|||
|
|||
Functional v4.03.. Fine... Installed..
|
#31
|
|||
|
|||
Quote:
Those two BBCodes are EXACTLY the ones that we used for years, so there's a LOT of old YouTube links with them. So, I simply execute that PHP file you attached and it will go through our entire database, altering them to something else? I have no database prefix .... it just shows in the config file for vBulletin as ' ' with no prefix in between the single quotes. Just leave it as two single quotes in your PHP file? BTW, my language is English .. Regards, Doug |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|