NASA Image Of The Day plugin
Very simple widget plugin that shows the NASA Image Of The Day thumbnail and a few words of text. Clicking on the thumbnail opens the correct NASA page for a larger image and accompanying text. The plugin now uses a NASA RSS feed for information. No local storage needed, the feed and image is fetched every time. Does anyone need caching here?
Installation instructions:
Unzip in wp-content/plugins directory, enable plugin and then use as any other WordPress widget.
Download NASA Image Of The Day plugin
If you have a question or other comment, use the form below. Thank you!












April 2nd, 2008 at 06:38
Question .. what bookmark plug-in are you using?
April 2nd, 2008 at 17:45
I’m using Social Bookmarking RELOADED (http://www.valent-blog.eu/social-bookmarking-reloaded/). I used to use Gregarious, but that didn’t work too well with 2.5, so decided to try something new. Looks good and works fine for me.
April 8th, 2008 at 22:45
Hi, you’re widget is very interesting but I’ve a problem in Wordpress 2.5…
When I’ve put the widget, I saw:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/8/d216996658/htdocs/blog/wp-content/plugins/nasa_image_of_the_day.php on line 59
Warning: fopen(http://www.nasa.gov/home/index.html) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/8/d216996658/htdocs/blog/wp-content/plugins/nasa_image_of_the_day.php on line 59
NIOTD not available
Then… Can’t I use this plugin?
April 8th, 2008 at 23:54
Hi BlackHole!
There is a PHP option in your php.ini file (the configuration file for your PHP installation) called allow_url_fopen . In your case this config option is not set, which then stops PHP scripts from opening external URLs. This is for security reasons, so random scripts can’t fetch unwanted files. To use this widget, you need to change that to true like this:
allow_url_fopen = On
You may have to ask your webhotel provider if they can do this for you if you do not run your own server. See
http://php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
for more information. Hope this helps!
April 9th, 2008 at 15:52
Thank you very much ^^
June 1st, 2008 at 20:33
Hi there.
Your NASA plugin is very nice.
I tried but not made it to center the NASA box to the column. By box I mean the title, the imageand the left aligned text.
Thank you for your response.
Keep up the good work.
Nick from Greece
June 6th, 2008 at 21:44
Hi Nicholas
You can use the CSS file in your theme to align the text and the image in the plugin to where you want. Try adding something like this to the style.css file in your theme directory:
#nasa-iotd { text-align: center; }
#nasa-iotd img {
margin-left: auto;
margin-right: auto;
display: block;
}
Basically it tells the browser that all text inside an object with the id “nasa-iotd” should be centered. And the same for images inside such objects, although that needs a slightly different method of centering as you can see.
Hope this helps!
OK
August 7th, 2008 at 16:00
Hi there,
I love this plugin, but for some reason it is not showing the picture anymore. It just shows a very light horizontal line where it should be. Can you help me? I have activated and deactivated it several times.
Thanks,
Tim
August 10th, 2008 at 14:15
Installed widget, no image, only text, also noticed the one on this site doesn’t have an image. I set the image width to 150 could this be the problem?
August 10th, 2008 at 19:04
Hi Tim and Gerald!
The plugin can’t handle flash files, and once in a while the NASA image of the day is a flash file instead of an image. It doesn’t occur that often, but I’ll look into adding support for flash as well.
If you’re missing the image several days in a row let me know.
OK