Support » Plugin: WP-SimpleViewer » [Plugin: WP-SimpleViewer] gallery defaults

  • Hi,

    Thanks for the plugin. I’m just trying to work out how best to implement it on a new site. There’s quite a few galleries, and I want uniform settings for them. I can’t find a way the change the defaults, or to create a slideshow configuration once and use that repeatedly.

    Am I missing a way of doing this? If there isn’t currently, could a submit a small patch for the plugin? It would probably only take the addition of a line like:

    $attributes = apply_filters( 'wpsv_attributes', $attributes );

    Then anyone could hook in and override defaults.



Viewing 1 replies (of 1 total)
  • FYI, I’ve been hacking the plugin, and I found it very difficult to take full control of the settings so I can apply the same settings to all slideshows. There’s the basic options, pro options, and stuff like width and height are scattered around.

    In the end I’ve added this to my .htaccess:

    # Rewrite for SimpleViewer XML files
    RewriteRule ^wp\-content/uploads/([0-9]+)\.xml$ wp-content/themes/mytheme/simpleviewer_xml.php?gallery=$1 [L,R]

    Then that script reads the gallery XML file and does a simple replace of all the root tag attributes.

    Still had to hack the plugin, wp-simpleviewer.php in shortcode_handler, to override the width / height etc.

    I know these can be controlled via the edit screen, but I don’t want my client to have to remember to set the settings right for every gallery. They should just upload images, place the shortcode there, and have the same config without doing anything else.

    Let me know if you’ve got anything to help controlling defaults across the board in the pipeline for future releases!



Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-SimpleViewer] gallery defaults’ is closed to new replies.