- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
photonopticum
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hello all,
I used FancyBox as a picture viewer (rather than the built in viewer). FancyBox scales images when viewed automatically to the available space on the screen (big pictures on big screens, small pictures on small screens).
However, it seems like, that FancyBox loads when the page is loaded, but does not re-load, when additional images are loaded/displayed when scrolling down the page (infinite scroll).
Beta-site is here: http://photonopticum.com/wordpress/
Does anyone know a solution to this problem? Any help is greatly appreciated.M.
AdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Daniel Tara
KeymasterWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220You’ll have to set the call to the fancybox function on the completed callback of the $content.masonry call. See how it’s done for colorbox.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236photonopticum
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Thanks Daniel,
how does this translate to the non-programmers? π
Is the call set in the jquery.masonry.js in the
// ====== imagesLoaded Plugin =======
section?and – how exactly does the fancybox call look?
Sorry, I am not a coder :/
M.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Daniel Tara
KeymasterWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Look in functions.php function pinboard_call_scripts() and see where the call to colorbox is made, replace it with the call to fancybox.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236photonopticum
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hi Daniel,
this works. I modified the colorbox call in two instances to this to call fancybox:$(‘.entry-content a[href$=”.jpg”],.entry-content a[href$=”.jpeg”],.entry-content a[href$=”.png”],.entry-content a[href$=”.gif”],a.colorbox’).fancybox();
What confuses me though is the fact that now some CSS of fancybox seems to be overwritten with the included lightbox code… e.g. the title of a photo does not appear in the fancybox style white extended border below the image, but in a “button style” , well, button – which I actually like π So, just curiosity at this point.
It would be great, if you would include in future revs. of the theme an option for an alternative viewer – or include fancybox. Your theme lives of the flexibility, however, the advantage of fancybox is that large view images are displayed matching the size of the visible browser window (large window – large image, small window – small image), a feature the built in lightbox does not offer (and the only reason why I wanted to get fancybox working).
Anyhow, thanks for your help!!!!!
It is greatly appreciated!
M.
Tagged: fancybox, Infinite Scroll, loading, pinboard
You must be logged in to reply to this topic.