[YouTube] Integration with Links & Downloads Manager (LDM 2.2.6)
This modification is in the archives.
Intro/About:
If you're not familiar with Links and Downloads Manager you should be! It's one of the most robust hacks for http://www.vbulletin.com 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. This hack requires:
In your links_playbit template find: HTML Code:
<td align="center">
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> In your ./includes/local_links_include.php file find (around line 2590): PHP Code:
$musicbox_template = '<a href="'.$LINKS_SCRIPT.'.php?action=play&linkid='.$linkid.'&catid='.$linkcatid.'&page='.$pagenumber.'" '.$musicbox_window.' title="'.$vbphrase['ll_playme'].'">%s</a>';
PHP Code:
if(stristr($linkurl, 'youtube.com/watch?v=')) {
Live Demo/Example: http://www.amacny.com/vb/local_links.php?catid=53&linkid=506 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 Download
This modification is archived, downloads are still allowed. Screenshots |
Similar Mods
Major Additions Links and Downloads Manager | vBulletin 3.7 Add-ons |
Major Additions Links and Downloads Manager | vBulletin 3.6 Add-ons |
Links and Downloads Manager | vBulletin 3.5 Add-ons |