post: | » RandomHeaderImage WordPress-Plugin | mod: |
09.Jan.07 | 31.Aug.07 |
Why?
There are a few WordPress-plug-ins that provide randomness for your blog. There’s even a couple that display a random picture on your blog. But as far as I could see, there was no plug-in that provides a random background picture. I wanted the background of the#header to change every time the blog is accessed. That way you can have a random header image as well as a random tagline.
Setup
Download the file below, unpack and copy to/wordpress/wp-content/plugins. Activate it in the plug-ins admin panel. Finally make sure, that you have entered the correct image directory. The default is /random_header_images/ but that may be changed in line 45:
$folder = 'random_header_images';
of the rhi.php. Might be self-explanitory, but you should make sure that you are actually using the #header container in your header.php. If your style sheet is more complex and use a different name, I’m sure you know what you have to change in order to get it to work.
Limitations / Future development
The filter is currently only looking for .jpg or .gif If you want .png or any other modern-hyper-so-much-better-format, you’ll have to add the corresponding extension in line 49 of the plug-in:if ( eregi( '.(jpg|gif|png)$', $image) )
This is a simple plug-in which does what it was designed for (at least for me ;). There’s currently no further development planed.
License
This WordPress plug is released under the GPL and is provided with absolutely no warranty (as if?). For support leave a comment and we’ll see what the community has to say.Download
Rhi.zip [1.599 byte]Version History
28.mar.2006 v1.3 » changed encoding to Unix / UTF-821.feb.2006 v1.2 » bugfix: hardcoding of URL corrected
09.jan.2006 v1.0 » first public release
perfect. thanks for plugin.
Thanks for this perfect plugin
tasarım bizim iÅŸimizdir…
Thank You. Coll component
Thanks for this perfect plugin
very nice idea thank you
@Baron, of course it’s WP2.5 compatible. sry for the late answer.
Thank you.
perfect. thanks for plugin.
hi there.com plugin but :
Does anybody know if tis script is compatible with WordPress 2.5?
Thanks in advance for any help on this!
Hey Joni,
by default it’s the folder “random_header_images” right next to your wordpress directory. But you can change that to any folder anywhere you like (change the
$folderin line 45)cheers,
-tmb
This looks like a great plugin. Where is the default image directory in relation to WP? Under /plugins? /wp-content? I will try to see if I can figure that out.
thanks for plugin, perfect
Did you know that our WordPress Blogs can be hacked?
This only came to my attention when I found a funny post in my blog which I knew I didn’t write. Call it a warning which prompted me to take action.
I went about finding the cheapest, easiest and most secure method to keep the nasty people out of my blog, and I’m happy to say I found it. Best of all it only costs $10, which you would have to agree, is a small price to pay for a secure WordPress Blog.
Have a look at my post for more information.
http://ezyas123.com/wordpress/wordpress-blogs-can-be-hacked-so-make-sure-you-are-protected/
I hope this message gets posted because I really think this will help a lot of people.
I am pledging 10% of all profits from this plugin to this organisation http://PeopleAid.org in an effort to help with their security in life.
Have an awesome day
Ian
Thanks..
[…] Açıklamalı 230 WordPress eklentisi (Agu. 15, 2007) (WordPress plugin list),[…]
Hey Jim,
thanks for the pointer! i change the text encoding to Unix (LF) and UTF-8.
cheers,
-tmb
Nice plugin, but it seems that your encoding of the file is some sort of MAC format, which doesn’t agree with anything I tried to open it in. The way it stands at the moment, WordPress doesn’t seem to like it. I had to do a straight copy and paste from the compressed file into an empty text editor to rectify the problem because unzipping the file and uploading it directly to the server resulted in some major problems. Just something you might to look into. Otherwise, great plugin. :)