Can I add rel tags in settings?

Forums Easy FancyBox Pro Can I add rel tags in settings?

Viewing 4 reply threads
  • Author
    Posts
    • #3413
      darrin
      Participant

      Hi,
      I am using a plugin namely PWA+PHP which uses caching and consequently has two copies of each photo (smaller version and full size).
      Normal circumstances when using slideshow within plugin the gallery is viewed ok.

      However if I setup FancyBox to scroll through images it shows 2 sets of each photo.
      Problem surfaced here…
      http://pwaplusphp.smccandl.net/support/responses/duplicate-images-when-used-with-simple-lightbox
      I’ve tried the suggested fix but there has been various updates since and the rel statement is not present in pwaplusphp_functions.php that I can see, but made the change in showAlbumscontent.php to no avail.

      Still shows both sets. Is there a way to insert rel=’slb_off’ into the easybox settings? Or use some other method?

      Photo Gallery example

      Thanks

    • #3417
      Rolf
      Keymaster

      Hi Darrin, it sounds like this PWA+PHP plugin has a lightbox built-in. Is that correct? If so, it might be difficult to make it work with another lightbox like FancyBox.

      In any case, what is going on is this: the PWA plugin creates two links for each image in the page source code. One for viewing and one for downloading the image (different sizes apparently)… Now the plugin Easy FancyBox is designed to make life easy and detect all image links automatically. And in this case, this is causing both the view and the download links to be detected and included in the gallery.

      Is there an option in PWA plugin to disable these download links? If so, try that.

      Otherwise you will need to:
      1. disable the Auto-detection by removing “.JPG” (only the one with capitals) from the Auto-detect field on your Settings > Media admin page.
      2. Add the following script code in a text widget (easiest) or in your themes footer.php above the wp_footer() call:

      
      <script type="text/javascript">
      jQuery(document).ready(function(){
      	jQuery('.pwaplusphp_imglink').addClass('fancybox').attr('rel', 'gallery');
      });
      </script>
      
    • #3416
      darrin
      Participant

      Hi Ravan

      Thanks for replying

      No the plugin does not have it’s own lightbox. It’s dependant on external but unsure of the way it’s been coded as only certain lightbox work with it (as per wiki). There was talk of altering code to allow more but unsure what that entails. And the original programmer has taken time out of updating the plugin lately.
      I will try your method and see how I get on.

      Thanks

      Thanks.

    • #3415
      darrin
      Participant

      Sadly that didn’t work.

      Is there a rel statement I can enter into the plugin to disable fancybox?

      Is rel=”nobox” a recognised statement? (it works for shadowbox)

      Thanks

    • #3414
      Rolf
      Keymaster

      Hi Darrin, not a rel attribute but a class. Fancybox will be deactivated for links that use the class “nofancybox”.

      But instead of modifying any plugin code (which will be overwritten upon the next update) could you try my alternative method again? Then let me know when you have implemented it and I will take a look to find out why it’s not working…

Viewing 4 reply threads
  • You must be logged in to reply to this topic.