Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/items/model/_itemquery.class.php on line 628
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/items/model/_itemquery.class.php on line 628
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
| « [Widget] Sorted Public bloglist | Chessboard render plugin » |
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 870
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/_core/_misc.funcs.php on line 981
Random Picture plugin/widget
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/hemmi3/public_html/blog/inc/sessions/model/_hit.class.php on line 901
I made a plugin to display a random image from a folder in the sidebar. Due to lack of imagination it is called the Random Picture plugin. Actually it is a widget, or a plugin for a widget with a widget in it, or something like that.
The plugin takes the folder /plugins/randompic_plugin/images/ and is able to determine which files are in the folder. It then randomly takes one and displays it in a widget container.
You can put as many pictures in the folder as you like.
The plugin takes the folder /plugins/randompic_plugin/images/ and is able to determine what files are in the folder. It then randomly takes one and displays it in a widget container.
What to do?
- download and unzip this file: randompic_pugin-0.6.zip,
- Upload to the /plugin/ folder of your blog,
- In backoffice: install the plugin under Global settings -> Plugins install -> Install new,
- In back office: install the widget in the sidebar Blog settings -> CHOOSE A BLOG -> Widgets -> (Sidebar) Add widget.
- Put as many pictures as you like in the folder /plugins/randompic_plugin/images.
Changelog
- 0.6 Version 0.6 is a minor rewrite of some elements. I intended it to work together with the jQuery Lightbox plugin and the jQuery Imagefit plugin. If you have both plugins installed the image will automatically resize to the width of the container and is clickable to view the image in the Lightbox at full dimensions.
I added a few larger images to test. However, the standard settings for resizing (to be set in the Widget settings at Blog settings -> Widgets -> Random Image plugin) is zero, meaning no resize. If you do not have the jQuery Imagefit plugin installed and leave the setting to zero (default) the pictures will blow off the screen. This is not an error. 0.4 Version 0.4 is a maintenance update after
Trackback address for this post
Feedback awaiting moderation
This post has 1 feedback awaiting moderation...