Advertisement

wp-Gallery2 Image Block

This plugin will allow you to put one of the meny Gallery2 Image Blocks on your WordPress site. You are required to have a running Gallery2 install to use this plugin.

This is a complete rewrite of Chris Schierer (aka Lentil) Gallery2 Image Block Plugin 0.1.4. This rewrite uses the new WordPress 2.8 Widget API, so is only compatable with wordpress 2.8+.

All options described in the Gallery 2 Image Block documentation are included. User configuration of Image Block options are available in the Widget configuration panel. Blank (empty) options use the Gallery2 defaults.

As of version 0.5, wp-gallery2-image-block has full localization support, and ships with 5 languages besides English. Please contact me if you would like to translate it into more langages, I would love for as meny peaple as posible to be able to use this plugin.

Fully Translated into:

  • Dutch (0.5.1)
  • French
  • English
  • German
  • Italian (0.6.1)
  • Polish (0.6.1)
  • Portuguese (0.5.1)
  • Spanish

Note: This widget was written using wp_http to increase compatibility with more sites (version 0.6).

Download

Latest version: Download wp-Gallery2 Image Block v0.6.3 [zip]

Installation

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.

FAQ

Q: Will this plugin work without Gallery2?
A: Sorry No, Gallery2 is required.

Q: Will I be able to add a random image to a page with this plugin?
A: Sorry, this plugin will only work in the wiget sidebar.

Q: Recived “SECURITY VIOLATION The action you attempted is not permitted” error on page load
A: make sure the Gallery2 plugin “Image Block” is installed and active on your Gallery2 install. You should be able to see the random image by going to: http://--gallery2url--/main.php?g2_view=imageblock.External Where –gallery2url– is the value you put in the widget’s URL field. You should
see the random image with the default options.

Changelog

Version 0.6.3

  • Tested with WordPress 2.9 – no code changes

Version 0.6.2

  • Tested with WordPress 2.8.6 – no code changes

Version 0.6.1

  • Tested with WordPress 2.8.5 – no code changes
  • Added Italian Translation
  • Added Polish Translation

Version: 0.6

Version: 0.5.2

  • Tested with wordpress 2.8.3 & 2.8.4 – no code change
  • Corrected URL’s
  • Updated README

Version: 0.5.1

  • Tested with WordPress 2.8.2 – no code changes
  • Updated POT file do to typo
  • Added Dutch translation
  • Added Portuguese translation

Version: 0.5

  • Added full localization support
  • Added French translation
  • Added Spanish translation

Version: 0.4

  • Corrcted typo in $gallery_linktarget

Version: 0.3

  • Corrected missing Header text tag

Version: 0.1

  • Initial Release
Advertisement

14 Comments

  1. VVOR says:

    Simple good plugin, tnx!

  2. OP351 says:

    I’ve tried installation on WP 2.8.3 but got error:

    Fatal error: Class ‘WP_Widget’ not found in /path/to/wordpress/roaming/wp-content/plugins/wp-gallery2-image-block/wp-gallery2-image-block.php on line 11

    Any idea why?
    Thanks.

    1. Matt Rude says:

      WP-Widget is part of the core of the 2.8 branch, so you should defiantly have it. What’s the state of your install? I mean, is your blog fully functional?

      If I look at your home page, it looks like your running 2.7, you should try to upgrade your site to version 2.8.4 again.

      1. OP351 says:

        Gee…You’re right !! I’m gonna update it first :-) I guess your plugin will work after that…
        Thanks.

        1. Matt Rude says:

          Wonderful, let me know if you have any other problems and what you think of the plugin after your upgrade.

          1. OP351 says:

            WP updated and plugin works. However there’s two things I don’t like that much:

            - fields display inline (not your fault, I know, but it’s not nice)
            - the plugin generates in fact a widget which is stuff I don’t use on my WP (hard to handle)

            Anyhow, thanks for your support.

  3. Edgar says:

    Hi Matt,
    I have some difficulties installing your great widget on my wordpress page. Somehow I keep getting the message: “SECURITY VIOLATION The action you attempted is not permitted”. Any help is appreciated.
    Thanks!!

    1. Matt Rude says:

      What version of WordPress are you using, what version of the plugin? What security “role” do you have on the WordPress install?
      Are you receiving this error while on the widget admin page, or on your webpage?

      If it is on your main webpage, what do you get when you point your browser to?
      http://--gallery2url--/main.php?g2_view=imageblock.External
      Where –gallery2url– is the value you put in the widget’s URL field. You should see the random image with the default options.

      1. Edgar says:

        I am using Wordpress 2.8.5 and plugin version 0.6.1
        I am receiving the error on my webpage.
        What do you mean with security “role” on the Wordpress install?
        When using the URL I get a screen with the same error message: Security violation… etc.

        1. Matt Rude says:

          2.8.5, good. 0.6.1, good.

          Since you receive the same error when using the URL, that makes me think that it’s a problem with your Gallery2 install. Do you have the “Image Block” plugin installed on your Gallery2 install? You should see the option on the left hand side of your gallery2 admin page.

          1. Edgar says:

            That was the solution. I didn’t install the “image block” plugin in Gallery2. Now I did and it is working great. Super!! Many thanks for your prompt support!!

            1. Matt Rude says:

              Wonderful, I’m glad I could be of help.
              I going to add this to the FAQ section of the readme file, thanks for then input.

              -Matt

  4. Ryan says:

    For some reason this plugin isn’t working with my installation.

    Well, it works just fine, but it is inserting a special character code which is causing my images to not be shown.

    When configured in the widget, it will trying to display the following:
    http://—gallery-URL—/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=22550&g2_serialNumber=2

    When I remove the “amp;” and paste manually it works. What causes this plugin to insert that? The “amp;” is showing up after the “&” in the URL.

    1. Matt Rude says:

      Im sorry your having problems. ‘& amp;’ is the HTML code for ‘&’ so I can see why that may happen, but it shouldn’t. Who is your host? What version of Apache and PHP are you running? I’m wondering if you host has some extra security running on your site that is changing the ‘&’ to ‘& amp;’. I have played around a bit with, but I’m unable to reproduce your problems.

Leave a Comment

 

Random Picture

Random image: IMG_2555

Too much snow to drive

Album: Christmas 2009

Categories

What’s going on…