Plugin compatibility code
Many plugins run after the page has loaded and process existing content. Since Infinite Scroll dynamically adds new content to the page, sometimes you have to execute additional code to reinitialize those plugins.
For the plugins below, the following code goes in the Javascript Callback option.
Lightbox JS 1.0:
No compatibility code available.
Lightbox JS 2.0:
myLightbox.updateImageList();
shutterReloaded.Init('sh');
tb_init( $('a.thickbox, area.thickbox, input.thickbox',this) );
1 Pixel Out Audio Player:
Compatible! Version 2.0, too.
Yahoo Media Player:
YAHOO.MediaPlayer.addTracks( this );
$('a.highslide',this).click(function() { return hs.expand(this);})
WP-SimpleViewer:
Not compatible.
To refer to the most recently added content:
this; // as of ver 1.1, the keyword this is the content wrapper (typically a DIV) $(this); // the jQuery object including this $jQis('#infscr-page-'+INFSCR.currPage) // old 'n busted ver 1.0 style.
13 comments.
This works for Shutter Reloaded:
Though it seems the script needs more code to be executed, as it fails to display the half transparent shade over the entire page when more posts has been loaded. Something that the author of Shutter Reloaded might have to look into.
Hmmm.. yeah i think that’s the best trick thats immediately obvious. It probably needs to revaluate the window height. Thanks for testing that out.
What about simpleviewer? I can’t get it to show the galleries when brought in from the infinite scroll. Otherwise everything is perfect.
what about highslide?
Please tell me.
WP Plugin is Highslide Integration
http://highslideintegration.scrollleiste.de/
JS site
http://highslide.com/
HighslideJS:
Thank you.
i inserted code in “Infinite Scroll Options > Javascript to be called after the next posts are fetched: ” but highslide js did not work.
Do you have different thing?
anyway, thank you~
I’m ugly English. So I hope you understand it.
First, thank you for the solution about highslide.
well, how about jw flv player? I try it but can’t find. help me, please.
sorry, the sites are
plugins:
http://alexrabe.boelinger.com/?page_id=20
http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/
js:
http://www.jeroenwijering.com/?item=JW_FLV_Player
Thanks for the links, pinocchio. :)
Right now infinite scroll cannot support those plugins. They inject <script> tags into the document, and the internal’s of infinite scroll are stripping out those tags.
Next version I’ll release will have a workaround and will shoot to support those tags. Sorry and thanks!
Thank you for the answer. Good luck with everything.
Hi Paul!
I am in the process of building a tumblr-style site that makes use of “Viper’s Video Quicktags” that pinocchio mentions as well as your plugin. Have you got your above-mentioned workaround running yet? I could really use it. :)
I should mention I literally cheered when I found your plugin because it’s *exactly* what I was looking for. Thanks for all the work you’ve put into this!
Jerry,
Sorry but as it stands, those plugins wont integrate. :(
Viper should probably rewrite his scripts to abide by javascript coding standards a bit better. ;-)