WP-SimpleViewer » How-to and Troubleshooting

[sticky] [closed]

FAQ or how to use the plugin

(1 post)
  • Started 2 years ago by Markus

    • How do I create a new gallery
      1. A each subfolder to your base directory for images (e.g. wp-content/photos/) can be used as a gallery. Upload all your photos into the subfolder (e.g. wp-content/photos/birthday_bash), make sure to change the folders permission to writable for all (chmod 777).
      2. Go to the plugins admin page (You find it in the Media Section) and select the folder from the list and create the thumbs and xml file for it.
      3. Now you can include the gallery into any post or page by including [svgallery name="foldername"] (in our case [svgallery name="birthday_bash"] )
      4. That's all! Quite easy, isn't it?
    • How do I include a gallery into a post or page?
      To show the SimpleViewer gallery on a post or a page just include the foldername in its content like this:

      Lorem ipsum dolor sit ame:
      [svgallery name="your_foldername"]
      Consectetuer adipiscing elit.

      You can select the gallery in the "Add Media" tab.

    • How many galleries can I include into one post?
      You can include as many galleries as you like in one post or page - and you can include a gallery into as many posts and pages as you want to.

    • Captions or Gallery title appear in the photo's frame
      Increase the stagepadding value e.g. from 20 to 40, then the space between thumbs and the image increases and there is more free space for text.
    • Thumbnail creation hangs
      If the plugin hangs during gallery creation with the following lines:

      GD library version 2 or later is required. You are running version: bundled (2.0.34 compatible)
      Now the images and XML file for the selected folder will be created:
      Now I am working on file IMG_XX.jpg:

      Then the php script does not get enough memory and crashes. You have to change wp-simpleviewer-admin.php file. Search for this line:
      //ini_set("memory_limit","40M");
      and remove the comments from it to set a new value for the memory_limit. For me 40M are fine even for large pictures, however also smaller values should be fine, test it out! Then it should look like this (40M is your new memory_limit):
      ini_set("memory_limit","40M");

      This won't work if you have php's safe_mode enabled.

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.