Version: 1.00, by |oR|Greg
Developer Last Online: Nov 2008
Category: Mini Mods -
Version: 3.6.4
Rating:
Released: 11-27-2006
Last Update: Never
Installs: 36
Uses Plugins Template Edits
Code Changes
No support by the author.
Intro/About:
If you're not familiar with Links and Downloads Manager you should be! It's one of the most robust hacks for vBulletin out there and allows you the Administrator to add vast amounts of content to your board on your own, or via your board members. This hack, for LDM 2.2.6 and vB 3.6.X will allow your links to YouTube videos to play inline within LDM.
So, let's get started, this whole process should take no more then 5 minutes, and please make sure you backup before you start, I am not responsible if you somehow hose your site. (Although this is such a small mod I can't imagine you could, but I've been wrong before)
In your links_playbit template find:
HTML Code:
<td align="center">
Add AFTER:
HTML Code:
<if condition="$player=='youtube'"><object width="425" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/$url"><param name="movie" value="http://www.youtube.com/v/$url" /><param name="wmode" value="transparent" /><em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object></if>
The above width and height can of course be altered to suit your needs.
In your ./includes/local_links_include.php file find (around line 2590):
Great! The hard part is over! Now, add the included Plugin, and upload the gif image to your Links and Downloads Icon Cache, for me, my Icon Cache is located at http://www.amacny.com/vb/images/ldm it's the directory where all your extension gifs are located. Make sure that the Plugin is turned ON. You should now be able to add entries to LDM for YouTube, and have them play within your own website!
If you're getting an error stating that it's an Invalid Filetype. Go into your LDM settings, and edit 1 of these options, either: musicbox_filetypes, or musicbox_filetypes_divx, or musicbox_filetypes_quicktime, or musicbox_filetypes_realplayer. Remove ALL entries in the setting you choose.
Until I can make this mini-mod work WITH all those settings intact, this is the quick-fix. Chances are you're not using ONE of those players.
Don't forget to click
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
plus a general 'catch-all' for urls that have the .flv extension
I don't recommend this code for people who are running critical live sites, but if anyone wants to give this try, take a look over at the main LDM forum