Superb slideshow gallery
plugin location is hard coded (1 post)

  1. PeoplesGeek
    Posted 4 years ago #

    Hi Gopi,

    Thanks for the plugin - I have noticed that the location of the plugin is hard coded in superb-slideshow-gallery.php & image-management.php & superb-slideshow-gallery.js
    I have a different location for my wp-content directory as per http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content and the plugin is looking for it's .js files in the wrong place.

    for example: line 314 of superb-slideshow-gallery.php (version 10)

    define('WP_CONTENT_DIR', 'S:\xxx\tlc'); // no host name, no trailing backslash
    define('WP_CONTENT_URL', 'http://www.home.pc/xxx/tlc');
    define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins'); // no host name, no trailing backslash
    define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
    wp_enqueue_script( 'jquery.min', get_option('siteurl').'/wp-content/plugins/superb-slideshow-gallery/inc/jquery.min.js');
    wp_enqueue_script( 'superb-slideshow-gallery', get_option('siteurl').'/wp-content/plugins/superb-slideshow-gallery/inc/superb-slideshow-gallery.js');

    can you change this to use the safer method:
    wp_enqueue_style("xxxxx", plugin_dir_url(__FILE__). "css/xxxxx.css" );

    There are also some hard coded paths in the java files.

    With hard coding the plugin can't be used on sites where wp-content is moved without hacking and more work on upgrades for the users.

    Many thanks!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Superb slideshow gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.