• 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 https://codex.www.ads-software.com/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', 'https://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!

    https://www.ads-software.com/extend/plugins/superb-slideshow-gallery/

  • The topic ‘[Plugin: Superb slideshow gallery] plugin location is hard coded’ is closed to new replies.