![]() |
Auto Youtube Link-Converter
1 Attachment(s)
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 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. |
Sweet! Nominated!
|
You da man! :)
|
How it can be changed to replace link to bbcode on newpost & newreply not in quotes?
|
Works as it says.
|
Great job!
5 star and nominated. |
10 second install! Works as described. Good job!
I wonder if the code can be modified to do the same with links to Picasa web albums, presenting them as slide shows? |
@grc: sure it can. It basically checks for an occurence in the html-string, grabs a part of it (in this case the video-id) and replaces it with another string.
If you can give me specific information on how that picasa thing is formed, I can write you a plugin for that purpose. |
Thanks works great
|
Thanks a lot :)
|
All times are GMT. The time now is 01:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|