Viewing 11 replies - 46 through 56 (of 56 total)
  • incrediblehelp

    (@incrediblehelp)

    I get these errors:

    Warning: fopen(): open_basedir restriction in effect. File(/home/youruser/public_html/wordpress/wp-content/plugins/weather_cache/metar_cache_KLUF.txt) is not within the allowed path(s): (/home/jaanis/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/jaanis/public_html/blog/wp-content/plugins/weather.php on line 315

    Warning: fopen(/home/youruser/public_html/wordpress/wp-content/plugins/weather_cache/metar_cache_KLUF.txt): failed to open stream: Operation not permitted in /home/jaanis/public_html/blog/wp-content/plugins/weather.php on line 315

    Any help?

    vkaryl

    (@vkaryl)

    Only thing I know is sometimes if you get those warnings referring to “fopen”, your host may have disabled something that the plugin needs to work properly. Try asking your host if “fopen” has been disabled….

    incrediblehelp

    (@incrediblehelp)

    OK I got it working here:

    https://www.2006-winter-olympics-turin-italy.com/blog/

    Can you remove the bullets and the black background some how?

    vkaryl

    (@vkaryl)

    You must be using IE…. change the icon folder to /alternate_icons/gif-wicons-black-background – unless you use a real browser, the pngs in the wicons folder will throw the black background (or sometimes grey….)

    Bullets…. ugh. I don’t remember now how I did that. Hang on while I look at some installs….

    [Edit: okay, all of my installs (8 at last count….) use this in the sidebar:
    <li id="weather">
    <?php if (function_exists('WeatherIcon')) : ?>
    <ul>
    <?php WeatherIcon('KCDC'); ?>
    </ul>
    <?php endif; ?>
    </li>

    On my installs, this produces NO bullets, since I absolutely ABHOR them.

    I think it will depend on which theme you’re using, and how your nested-list sidebar is set up. You’ll just have to play with it….]

    incrediblehelp

    (@incrediblehelp)

    Yes it is and IE thing. Where exactly do I change the folder path for the new images?

    Here is my code:


    <div class="side">
    <?php if (function_exists('WeatherIcon')) : ?>
    <li class="weather">Torino, Italy
    <ul>
    <?php WeatherIcon('LIMF'); ?>
    </ul>
    <?php endif; ?>
    </li>
    </div>

    Any ideas?

    vkaryl

    (@vkaryl)

    Well, this depends on which version you’re using. If you downloaded the old version from Jeremiah’s website, you have to tweak the path in the weathericon.php file itself. If that’s the case, I suggest you go to https://www.viper007bond.com/wordpress-plugins/weathericon/, get the latest version (which includes an admin page), and start from there.

    incrediblehelp

    (@incrediblehelp)

    I have the old one, just tweak this piece?

    'icon_location' => get_settings('siteurl') . '/wp-content/plugins/WeatherIcon/wicons/',

    incrediblehelp

    (@incrediblehelp)

    I changed the path and file name and still black background in IE

    https://www.2006-winter-olympics-turin-italy.com/blog/

    Les Bessant

    (@lesbessant)

    Have a look at this site which gives a simple bit of code you can use to persuade IE to display PNG transparency properly.

    As vkaryl says, you would be better off upgrading to the latest version of the plugin – the admin page is much easier to work with than editing the file…

    incrediblehelp

    (@incrediblehelp)

    thanks

    viper007bond

    (@viper007bond)

    Version 3 will have a much better and kickass admin screen BTW. ??

Viewing 11 replies - 46 through 56 (of 56 total)
  • The topic ‘weather plugin icon’s not working’ is closed to new replies.