Daily Moon Forecast – WordPress Plugin – Documentation

Setup

Install & Activate

  1. Log in to your WordPress dashboard.
  2. Go to “Plugins -> Add New”
  3. Search for “Daily Moon Forecast”.
  4. Click to “Install Now” when you find the plugin.
  5. Activate the plugin by clicking “Activate”.
  6. The Daily Moon Forecast widget will be available in “Appearance -> Widgets”.
    To use the widget, drag the widget to a sidebar widget area like you would any other widget.
  7. To insert Daily Moon Forecast on any page or post, type this shortcode into the page or post:
    [dailymoonforecast]
  8. By default, the included forecast interpretations will be used. To write your own custom forecast interpretations for each moon sign, go to “Settings -> Daily Moon Forecast” from your WordPress admin dashboard.
     
    Custom Moon Interpretations - Admin screenshot - Daily Moon Forecast
      

Top

Languages

This plugin is translation-ready, and includes a .pot file to make it easy for you to translate it into other languages. If your language is not on this list, I’d be happy to add it. Contact me here and tell me the language you’d like to see here.

Style Customizations

I don’t like it centered. How can I left-align the widget?

To left-align the widget title, add this to style.css:

.widget_dmf_widget h3.widget-title {
	text-align:left;
}

To left-align the rest of the widget, add this to style.css:

.widget_dmf_widget #moonforecast {
	text-align:left;
}

Top

How can I change the CSS style of the widget?

To style the entire widget, use this selector:

.widget_dmf_widget

To style only the widget title, use this selector:

.widget_dmf_widget h3.widget-title 

To style the everything except the title, use this selector, which wraps everything after the title:

#moonforecast

To style just the date, use this selector:

#moonforecast #localtime

To style just the icons, use this selector:

#moonforecast img

Top

Troubleshooting

Why is it stuck on Aries?

There are 3 possible reasons for the widget to be stuck on Aries.

  1. If your website is running on a Windows operating system (i.e. using Windows hosting), then you’ll need to use the ZodiacPress Windows Server plugin to make the Ephemeris work on your server. This is because the Ephemeris included in Daily Moon Forecast will not run on Windows, by default. Just install and activate the “ZodiacPress Windows Server” plugin, and it will automatically solve this problem. Note that ZP Windows Server only works with Daily Moon Forecast version 2.0+, not with early versions of Daily Moon Forecast.
  2. This plugin uses the PHP exec() function. Some hosting providers disable the exec() function. If this function is disabled, the plugin will not work. If your host has disabled this function, contact them as they may have a way for you to enable it. (Check their support pages.)
  3. It may be that your server did not allow the plugin to set the proper file permissions for the Swiss Ephemeris. See below for help.

Top

Setting File Permissions For The swetest File

Daily Moon Forecast includes a file that must have permissions set to 0755 (CHMOD 0755) in order to get the moon’s position from the Swiss Ephemeris. The file is named swetest and its path is:

daily-moon-forecast/sweph/swetest

The plugin tries to set these permissions automatically.

If you received this error notice:

Your server did not allow Daily Moon Forecast to set the necessary file permissions for the Ephemeris. Daily Moon Forecast requires this in order to show the correct position of the moon.

…it means that your server did not allow the plugin to set file permissions.

You can try to manually set the permission for this file (daily-moon-forecast/sweph/swetest) to 0755.

Most web hosts allow you to set file permissions. Contact your web host, or check their support pages to see how to set the file permissions.

If your web host uses cPanel, you should be able to do this, easily. In cPanel, go the File Manager. In the cPanel File Mananger, navigate to the Daily Moon Forecast’s ‘sweph’ directory, which should be in your WordPress plugin directory:

public_html/wp-content/plugins/daily-moon-forecast/sweph/

In the ‘sweph’ directory, you’ll find the swetest file. Look at the last column on the right to make sure that this file has permissions set to ‘0755’ like this:

cPanel file manager permissions

If it does not have permissions set to ‘0755’, you can change the permissions by selecting that file and clicking “Permissions” near the top right of the screen. To set the file permissions to 0755, make sure it matches this:

Setting File Permissions to 0755 in cPanel

If you confirm that the file (daily-moon-forecast/sweph/swetest) has the proper permissions set to 0755, and yet the Daily Moon Forecast is still not working, then check the other Troubleshooting documentation articles for other possible causes.

Top

If your site uses Windows hosting

If your website is running on a Windows operating system (i.e. using Windows hosting), then you’ll need to use the ZodiacPress Windows Server plugin. This is because the Ephemeris included in Daily Moon Forecast will not run on Windows, by default. Just install and activate the “ZodiacPress Windows Server” plugin, and it will automatically solve this problem.

Top

Support

Get help at this plugin’s support forum or ask a question below.

Top

Updated on March 6, 2017

We've 5 Responses

    • April 3rd, 2017 at 6:54 pm

      Thanks. I’ll add a filter to allow the icons to be removed in the next update of the plugin. For now, you can add this CSS to hide the icons:

      #moonforecast h4 + br,
      #moonforecast img + br,
      #moonforecast img {display: none;}
      

      (See this for how to easily add CSS.) Hope that helps.

      avatar
  1. February 8th, 2018 at 5:31 pm

    Hi,
    We are running your plugin on 2 separate websites with different hosts and getting different daily moons.
    the sites are:
    spaatelefonen.no and
    nordicmystic.com
    can you please tell me if theres any reason for this and if theres a fix
    many thanks for your awesome plugin!!!

    avatar
    • February 11th, 2018 at 12:32 pm

      The main cause of this would be a cache plugin. Are you perhaps using a cache plugin on either site? Or the web host itself may have a cache (for example, some hosts provide an automatic cache for your site that keeps the page the same for the entire day). This would cause the display of your page to be the same for at least one day, which would not allow the moon sign to be updated.

      Even if both sites have the same cache plugin, it’s highly unlikely that the pages would be cached at the same moment, which would mean that they would be saved at a point with different moon signs. One solution would be to set the cache plugin to ignore the page with this Moon plugin. Most cache plugins have a setting that lets you designate which pages to ignore.

      avatar

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]