vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - passiveVid - (YouTube, Myspace, Google...) Not BBCODE :D (https://vborg.vbsupport.ru/showthread.php?t=150761)

terracore 02-23-2008 05:01 PM

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

Support 02-23-2008 05:37 PM

thank you :)

bigraph 02-23-2008 11:13 PM

anybody else having trouble with break? just installed new version and its not working :(

terracore 02-23-2008 11:44 PM

Quote:

Originally Posted by bigraph (Post 1449586)
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)

kurious 02-24-2008 10:54 PM

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!

garza 02-25-2008 09:02 PM

Quote:

Originally Posted by swapw (Post 1448405)
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!

doogie1775 02-27-2008 02:44 PM

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?!?!?:confused: I hope I am explaining that well enough. Any ideas?

Thanks!

Cars2007 02-27-2008 04:49 PM

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?

Sothside40 02-27-2008 08:52 PM

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



https://vborg.vbsupport.ru/external/2008/03/15.png

carlosacgj 02-29-2008 04:55 AM

please add support for the following site
megarotic.com


All times are GMT. The time now is 03:27 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
  • Page Generation 0.02187 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete