Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[YouTube] Integration with Links & Downloads Manager (LDM 2.2.6) Details »»
[YouTube] Integration with Links & Downloads Manager (LDM 2.2.6)
Version: 1.00, by |oR|Greg |oR|Greg is offline
Developer Last Online: Nov 2008 Show Printable Version Email this Page

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.

This hack requires:
  • 1 template edit (AdminCP ==> Styles & Templates ==> Styles Manager ==> (your style) ==> Links and Downloads Manager ==> links_playbit)
  • 1 file edit (./includes/local_links_include.php)
  • 1 new plugin
  • 1 new gif file
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):
PHP Code:
            $musicbox_template    '<a href="'.$LINKS_SCRIPT.'.php?action=play&amp;linkid='.$linkid.'&amp;catid='.$linkcatid.'&amp;page='.$pagenumber.'" '.$musicbox_window.' title="'.$vbphrase['ll_playme'].'">%s</a>'
Add AFTER:
PHP Code:
            if(stristr($linkurl'youtube.com/watch?v=')) {
            
$lc_urlType "youtube";
            
$is_musicbox 1;
            } 
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!

Live Demo/Example: http://www.amacny.com/vb/local_links...=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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-30-2006, 10:12 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be used as a vbadvanced module? If so, how?
I want to show my latest video on my CMPS pages. Not just the title. I already have that. I want to show the player with the latest video on my CMPS pages.
Reply With Quote
  #23  
Old 11-30-2006, 11:44 AM
chorton chorton is offline
 
Join Date: Oct 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I rechecked my work and it all looks fine to me..still getting invalid file type.
Reply With Quote
  #24  
Old 11-30-2006, 01:37 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have updated the hack with the following:

If you're getting an error stating that it's an Invalid Filetype. Go into your LDM settings, and edit (musicbox_filetypes). Remove ALL entries in this setting. Until I can make this mini-mod work WITH all those settings, this is the quick-fix.

Alfa, if you figure out how, let us know. That's not something I'm interested in exploring at this time.
Reply With Quote
  #25  
Old 11-30-2006, 06:07 PM
chorton chorton is offline
 
Join Date: Oct 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If your using mp3 etc you can also just remove the mov extension from
musicbox_filetypes_quicktime
Filetypes that can be played through QuickTime.

That will still play both formats using the jukebox.
check www.versionist.com
Reply With Quote
  #26  
Old 11-30-2006, 08:42 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, so basically, if you just disable 1 of them it still works? What about DIVX?
Reply With Quote
  #27  
Old 11-30-2006, 08:55 PM
chorton chorton is offline
 
Join Date: Oct 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea thats better yet. Know one use that anyways. Remove divx and put mov back in and it works
Reply With Quote
  #28  
Old 12-01-2006, 10:46 AM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated the instructions with:

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.
Reply With Quote
  #29  
Old 12-02-2006, 07:13 PM
chorton chorton is offline
 
Join Date: Oct 2003
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on www.versionist.com

Any ideas on the google code? I can help if you need me too
Reply With Quote
  #30  
Old 12-28-2006, 11:09 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any news on this hack? It's mighty interesting to have with google video...
Reply With Quote
  #31  
Old 01-03-2007, 08:26 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
Any news on this hack? It's mighty interesting to have with google video...
This is now working as you can see on my forum.

http://www.amacny.com/vb/local_links.php?catid=7

HOWEVER... I am not releasing the GOOGLE version because Andrew is going to include both the Google and YouTube versions in the next release of LDM which is coming soon. He may or may not also release additional sites which I suggested. We'll see.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05059 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete