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
passiveVid - (YouTube, Myspace, Google...) Not BBCODE :D Details »»
passiveVid - (YouTube, Myspace, Google...) Not BBCODE :D
Version: 1.1.2, by Coders Shack Coders Shack is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.7 Rating:
Released: 06-26-2007 Last Update: 02-01-2008 Installs: 1841
Uses Plugins
Additional Files  
No support by the author.

. . . . . . . . Brought to you by scriptasy.com
note: you can get v2.00 [here]

Live Demo:
Scriptasy passiveVid Demo
External Support:
Scriptasy passiveVid Support
Description:
This is unlike my past video mod which used bbcode, this one is more simple and works much better for the user too. What it does it parses the url when the post is viewed, so it will work with past links and new links.

So basically the user enters a video link in a post and its automaticly displayed as the actual embedded video.
Works With:
vBulletin [3.6.X to 3.7.0 beta 3]
vBlog [1.0.0 to 1.0.3]
vbAdvanced [3.0 RC2]
Supported Video Sites:
  1. YouTube v1.0.0
  2. Google Video v1.0.0
  3. MySpace Video v1.0.0
  4. MetaCafe Video v1.0.0
  5. Yahoo Video v1.0.1
  6. Koreus Video v1.0.1
  7. Sapo Video v1.0.1
  8. video.google.co.uk v1.0.2
  9. Live Leak v1.0.2
  10. Photobucket v1.0.3
  11. Gametrailers v1.0.3
  12. MyVideo v1.0.4
  13. GameSpot v1.0.4
  14. Veoh v1.0.4
  15. StreetFire v1.0.4
  16. Stage6 v1.0.4
  17. Sevenload v1.0.4
  18. Izlesene v1.0.4
  19. Vidiac v1.0.4
  20. Xtube v1.0.6
  21. VidMax v1.0.6
  22. RedTube v1.0.6
  23. OnSmash v1.0.6
  24. GodTube v1.0.6
  25. PornoTube v1.0.6
  26. BrightCove v1.0.7
  27. YouKu v1.0.7
  28. LiveVideo v1.0.7
  29. Break v1.0.8
  30. ExpertVillage v1.1.2
Changes:
  • [v1.0.5] Added the ability to enable/disable any of the sites
  • [v1.0.7] Changed the actual structure of the modification, it now gives me the ability to push it even further
  • [v1.0.8] Added support for actually displaying the video titles
  • [v1.0.8] Added the ability to customize the actual embed, you can choose where/how the title and embed will be displayed by using HTML
  • [v1.0.9] Support for vBlog
  • [v1.0.9] Support for vbAdvanced
  • [v1.1.0] Finalized multiple things
  • [v1.1.1] Added ability to restrict the hack per forum
  • [v1.1.1] Added ability to restrict the hack per posters usergroup
  • [v1.1.2] Added ability to restrict the hack per viewers usergroup
  • [v1.1.2] Added the custom replacement that i use
  • [v1.1.2] Added a new var that can be used in the custom replace ($PASSIVEURL)
Installation Instructions (painless install):
(detailed instructions for noobs [here])
  1. Install Product XML
  2. Upload Bitfield XML
  3. Enjoy the modification


Thanks for the nominations!

{Mark As Installed}

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
muratcan25

Comments
  #802  
Old 02-23-2008, 05:01 PM
terracore terracore is offline
 
Join Date: Dec 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm far from a coder, but this worked for me. This will fix the vids.myspace as well as the myspacetv problems not embedding. I didn't write this, I just cut and pasted from elsewhere in the thread so I deserve no credit (but it works):

#1 Uninstall the product.

#2 Modify product-passivevid.xml like this: (just the myspace section)
Code:
// MySpace
	$passiveVid[] = array (
		'string' => 

'#'.$urlrx[0].'vids.myspace.com/index.cfm\?fuseaction=vids\.individual&VideoID=(\d{8,15})(?:[

^"]+)?'.$urlrx[1].'#i',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; 

$PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" wmode="opaque" 

flashvars="m=\'.$matches[2].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" 

height="346"></embed>\'; return "'.$customstring.'";',
		'id' => 4
		);
$passiveVid[] = array (
		'string' => 

'#'.$urlrx[0].'myspacetv.com/index.cfm\?fuseaction=vids\.individual&amp;VideoID=(\d{8,15})(?:[^"]

+)?'.$urlrx[1].'#i',
		'replacement' => '$PASSIVEURL = $matches[1]; $PASSIVETITLE = $matches[3]; 

$PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" wmode="opaque" 

flashvars="m=\'.$matches[2].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" 

height="346"></embed>\'; return "'.$customstring.'";',
		'id' => 4
		);
	$passiveVid[] = array (
		'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
		'replacement' => 'return \'<embed 

src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" 

wmode="opaque" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
		'id' => 4
		);

$passiveVid[] = array (
		'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
		'replacement' => 'return \'<embed src="http://myspacetv.com/videos/vplayer.swf" 

flashvars="m=\'.$matches[1].\'&v=2&type=video" wmode="opaque" 

type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
		'id' => 4
		);
#3 Reinstall the product

#4 Enjoy the mod hack
Reply With Quote
  #803  
Old 02-23-2008, 05:37 PM
Support Support is offline
 
Join Date: Aug 2006
Location: EGYPT
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #804  
Old 02-23-2008, 11:13 PM
bigraph bigraph is offline
 
Join Date: May 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anybody else having trouble with break? just installed new version and its not working
Reply With Quote
  #805  
Old 02-23-2008, 11:44 PM
terracore terracore is offline
 
Join Date: Dec 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigraph View Post
anybody else having trouble with break? just installed new version and its not working
Did you try adding it to the xml file like I did the myspacetv? (see above)
Reply With Quote
  #806  
Old 02-24-2008, 10:54 PM
kurious kurious is offline
 
Join Date: Aug 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work! Is it possible to add support for the following sites?

gofish.com (http://www.gofish.com/videoSearch.gf...tBy=mostViewed)
crunchyroll.com
megavideo.com

Thank you for this wonderful modification!
Reply With Quote
  #807  
Old 02-25-2008, 09:02 PM
garza garza is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by swapw View Post
Mind adding Dailymotion onto the list of sites on the next update? Appreciated it if you do and thanks!
Yeah a DailyMotion one would rock!
Reply With Quote
  #808  
Old 02-27-2008, 02:44 PM
doogie1775 doogie1775 is offline
 
Join Date: Oct 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I have a unique situation with this product. The embedding works fine (via URL or embed code). Once I post a video, I am able to play the video initially..........one time. Once I go away to another thread and then go back to it, I am not able to play it again (the play button doesn't show, only the pause button - yet it isn't playing). This is not the worst part of the problem however. Once I post a video and look at it once, nobody else in the forum is able to watch it either?!?!? I hope I am explaining that well enough. Any ideas?

Thanks!
Reply With Quote
  #809  
Old 02-27-2008, 04:49 PM
Cars2007 Cars2007 is offline
 
Join Date: Jun 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got the xml file in includes/xml, and I tried importing the product, but on the options page it says this for Allowed Sites:

"An error occured while processing the bitfield files, the following information was returned:" (and then no error)

I tried manually rebuilding bitfields (index.php?do=buildbitfields) but that did not fix it. This is on vB 3.6.6. Any ideas?
Reply With Quote
  #810  
Old 02-27-2008, 08:52 PM
Sothside40 Sothside40 is offline
 
Join Date: Feb 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way that this hack wont interfere with the anonymous link hack??



Reply With Quote
  #811  
Old 02-29-2008, 04:55 AM
carlosacgj carlosacgj is offline
 
Join Date: Apr 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please add support for the following site
megarotic.com
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 02:43 PM.


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.07347 seconds
  • Memory Usage 2,333KB
  • 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
  • (1)bbcode_code
  • (2)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
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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