Title: FancyBox
Last modified: August 20, 2016

---

# FancyBox

 *  Resolved [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * (@workshopshed)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fancybox-2/)
 * The plugin seems to have disappeared from the repositry, is it still supported?
 * I’ve just found an incompatibility with WPBackup. The WPAA plugin is loading 
   it’s version of the jancybox javascript library on all admin pages rather than
   just the WPAA admin pages.
 * [http://wordpress.org/extend/plugins/wordpress-amazon-associate/](http://wordpress.org/extend/plugins/wordpress-amazon-associate/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * (@workshopshed)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/fancybox-2/#post-3513474)
 * I’ve fixed this issue in WPAA.php
 * A couple of changes:
 * in function __construct
 *     ```
       //add_action('admin_print_scripts', array(&$this, 'doPageScripts'));
       add_action('admin_enqueue_scripts',array(&$this, 'doPageScripts') );
       ```
   
 * and in doPageScripts, I’ve used the hook suffix to check directly rather than
   parsing the parameters and also only install the thickbox and fancybox on the
   new page and new post as that should be the only places we might want to activate
   WPAA from, rather than activating on all admin pages. Also spotted an issue with
   the way that the plugin folder was being referenced.
 *     ```
       function doPageScripts($hook_suffix) {
               if ($hook_suffix == $this->config_hook) {
                   wp_enqueue_script('postbox');
                   wp_enqueue_script('dashboard');
                   wp_enqueue_script('thickbox');
                   wp_enqueue_script('media-upload');
               } else if( is_admin() && ($hook_suffix =='post-new.php' or $hook_suffix == 'page-new.php')) {
                   wp_enqueue_script('thickbox');
                   wp_enqueue_script('fancybox', plugins_url( '/js/fancybox/jquery.fancybox-1.3.4.js' , __FILE__ ));
               }
           }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘FancyBox’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-amazon-associate.svg)
 * [WordPress-Amazon-Associate](https://wordpress.org/plugins/wordpress-amazon-associate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-amazon-associate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-amazon-associate/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-amazon-associate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-amazon-associate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-amazon-associate/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/fancybox-2/#post-3513474)
 * Status: resolved