Image Rotator
Download
http://github.com/voceconnect/image-rotator/downloads
About
The Image-Rotator plug-in adds the ability to insert an image rotation panel into a WordPress blog. The plug-in features a management page which allows any users with upload privileges to easily manage the images used by the plug-in.
We originally developed the Image-Rotator plugin solely for use on Sony Computer Entertainment America’s (SCEA) PlayStation.Blog to randomly feature a collection of image-based panels on their home page. Thanks to SCEA’s desire to contribute back to the WordPress community, we are able to offer this plugin for public consumption.
Change Log
- ver. 1.5.2
- Readme changes.
- Author changes.
- ver. 1.5.1
- Removed extra slash on front end URLS with links.
- ver. 1.5
- Improved stripping of forward slashes in url to keep paths from getting double slashes.
- Fixed issue with false error reporting after uploading new image with the same name while editing an image.
- Reformatted code as class to cleanup global space
- ver. 1.4
- Fixed divide by zero error
- Added short code handling. To implement short code add the following to your post/page: [ir_image_rotator group=goupname]
- ver. 1.3
- Modified admin references to go through tools.php instead of edit.php
- In order for the latest version to work with WP < 2.7, replace all references of 'tools.php' with 'edit.php'
- ver. 1.2
- Added Groups
- Modified widget integration to allow for multiple instances
- ver. 1.11
- Changed imgLink field to varchar(255) to make table compatible with older version of mysql
- ver. 1.1
- Click counter added
- Corrected database issues during install in WP 2.5
- Added Widget Handling
Installation
- Note: The Image-Rotator Plugin requires WordPress 2.7 or greater
- Upload the Image-Rotator to your plug-ins directory, usually wp-content/plugins to create a wp-content/plugins/image-rotator/ directory.
- Activate the plug-in through the Plug-ins admin screen.
- Go to the Options->Image-Rotator page to set the directory where uploaded images should be saved. The default is the currently set upload directory.
Adding to a Theme
The image rotator plugin now has a widget option which allow it to be added to the sidebar of widget enabled themes. Alternatively, you can add the plugin directly to theme as described below:
- Open the theme file containing the content where the rotating image should be inserted, usually wp-content/themes/
/index.php or wp-content/themes/ /single.php - Add this code wherever you would like the image rotation to appear (note- the space between < and ?php should not be there, our WP install keeps adding it and we haven't had a chance to fix it):
< ?php if(function_exists('print_rotating_image')){
print_rotating_image();
}?>
Adding Images
After activating the Image-Rotator plug-in, the images can be managed via the Manage -> Image-Rotator Page. Each image added has the following options:
- Title: alt text for the image.
- Link/URL: (optional) will add a hyperlink to the image.
- Active: when active the image is included in the random selection.
- Image: the image file. Feel free to upload gifs, jpgs or pngs.
- Group: the group name the image which the image belongs.


