HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Instructions: How to turn a myttachments page into a clickable gallery. A modification

peregrineperegrine MVP
edited July 2014 in Feedback

change in views/myattachmentstabview.php

  // remove the fancybox class if it is not an image
    $Type = $Media->Type;
    if(!preg_match('/image/', $Type)) {
      $ThisAttachOpt['class'] = 'Title';
    }
  }

to

  // remove the fancybox class if it is not an image
    $Type = $Media->Type;
    if(!preg_match('/image/', $Type)) {
      $ThisAttachOpt['class'] = 'Title';
    } else {
       // make it gallery hover and click on arrow for next or previous image
     $ThisAttachOpt['rel'] = 'gallery';
    }
  }

For this to work you must have jquery fancybox plgin enabled and select "Same page using fancybox plugin" in the settings options for the myattachments plugin.

it is, what it is - after you click on first image - hover mouse over image and you will see either a left or right arrow as you hover over left and right of enlarged image. click on the arrow and you can traverse all of the images on the page.

I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

hgtonightvrijvlinder

Comments

Sign In or Register to comment.