Forum Replies Created

Viewing 15 replies - 16 through 30 (of 1,222 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Thank you, so I see nothing special about Nashville conerncing timezones, it is GMT-6 = CST. Looking at the plugin if you activate localtime the time will be taken from your blog with the following function calls:

    $w['blogdate'] = date_i18n( $wpf_vars['fc_date_format'], $ct );
    $w['blogtime'] = date_i18n( $wpf_vars['fc_time_format'], $ct );

    If you do not activate local time the time from the weatherprovider is taken.

    Can you check if your server has the correct time after switching daylight saving and have a look at your WordPress setup if it has the correct timezone.

    Maybe this can be the reason. I just checked some of my wp-forecast installations and it seems to work.

    Cheers, Hans

    Plugin Author tuxlog

    (@tuxlog)

    Hi Rob,

    do you use OpenMeteo or Openweather and please give me the location of the weather widget, so I can try to rebuild the problem.

    Thanks.

    Plugin Author tuxlog

    (@tuxlog)

    Hey Rob,

    just released a fixed package.

    Cheers

    Plugin Author tuxlog

    (@tuxlog)

    Hi Rob,

    thank you very much for your analysis and results. Indeed it seems the metric value of the precipitation in openmeteo data is divided two times by 25.4 and thus the wrong inches are calculated. I will try to fix this asap and release a new package.

    Thanks again, Hans

    Plugin Author tuxlog

    (@tuxlog)

    The plugin has an inbuilt cache for the weather data and it will load the weather data for each location/widget if the cache has expired. You can set the duration in seconds until the cache expires for each location using the field “Refresh cache after”.

    So, it will load the weather data for all widgets the cache has expired, when you load the page.

    Hope it helps.

    Plugin Author tuxlog

    (@tuxlog)

    Hi,

    if you want more than 8 widgets, you can edit wp-forecast.php. At the top of the file you find:

    //
    // maximal number of widgets to use.
    //
    $wpf_maxwidgets = 8;

    Change the 8 to whatever you like and you will bea ble to have the number of widgets.

    But please take care of the terms of usage of the selected weather data provider and do not be surprised if your site is getting slower, because all the weather data has to be loaded. To optimize this play with the cache settings in the wp-forecast admin dialog.

    Hope it helps.

    Plugin Author tuxlog

    (@tuxlog)

    Good to hear it is working. To use any of the available weather icon sets on the internet, you have to renamethe icons mapping the weathersituations.

    Mapping for OpenWeatherMap:

                'clear-day'             => '01',
    'clear-night' => '33',
    'rain' => '12',
    'snow' => '22',
    'sleet' => '29',
    'wind' => '32',
    'fog' => '11',
    'cloudy' => '06',
    'partly-cloudy-day' => '04',
    'partly-cloudy-night' => '38',
    'hail' => '25',
    'thunderstorm' => '15',
    'tornado' => '32',

    As for the CSS, my first try would be to deactivate the CSS from wp-forecast in the admin dialog and see what your theme is doing with the widget. Then try to format it via your themes settings and/or CSS.

    Hope it helps.

    Plugin Author tuxlog

    (@tuxlog)

    Hi,

    please check if your API-Key works with One-call-API from OpenWeatherMap. Either

    https://api.openweathermap.org/data/2.5/onecall?lat=<YourLAT>&lon=<YourLON>&appid=<YourAPIKEY>&exclude=minutely,hourly&units=metric&lang=en


    or https://api.openweathermap.org/data/3.0/onecall?&#8230; must work for the plugin.

    As an alternative you can use the weatherdata from OpenMeteo for free and without ApiKey. You can switch to OpenMeteo in the admin dialog.

    You can set the time the data is cached in the admin dialog of wp-forecast, e.g. 3600 seconds for one hour and this would trigger 24 calls a day.

    Plugin Author tuxlog

    (@tuxlog)

    Thank you very much for the updated spanish translation. I will add it to the plugin with the next release.

    Take care

    Plugin Author tuxlog

    (@tuxlog)

    Good news, so the css is loaded if it recognizes the wpml_ico_rich class and this is indeed the only class it uses for the smilies to show in the rich editor. You see it in the file wpml_tinymce_plugin.js.

    Looking for

    smhtml += '<img class="wpml_ico_rich" id="wpmlre' + j + '" src="' + cs[2] + '" style="max-width:' + _wpml_richedit_maxwidth + 'px; max-height:' + _wpml_richedit_maxheight + 'px;" />';

    It takes the max height and width parameters from the admin dialog of wp-monalisa for the dimensions. IF you want to add a div you do it in wpml_tinymce_plugin.js. I am not sure the width and height of the popup can be modified since this comes from tinymce editor. But why not give it a try.

    Hope it helps.

    Plugin Author tuxlog

    (@tuxlog)

    Thanks for the info, maybe you use an optimizer plugin which obfuscates the plugins css? Can you see if you have css classes starting with “wpml_”. The plugin itself loads the css on every page no conditionals here. And did you change the css within in the plugins css or did you add it via theme option like “add extra css”?

    I still can not reproduce the problem, css is always loaded on my sites.

    Plugin Author tuxlog

    (@tuxlog)

    Hello,

    if I understood you wright, you made changes to the css file. Can you tell what you changed please, so I can test it myself.

    Thanks in advance.

    Theme Author tuxlog

    (@tuxlog)

    Hello again,

    I just uploaded a new release 0.7 which should show the header image more reponsive. I tested it on iphone and android. Please remember the size of the image used depends on the screen width and on the available image sizes in your WordPress setup. But we will check this if you have updateed to 0.7.

    Theme Author tuxlog

    (@tuxlog)

    For the CSS part just add:

    #menu-testing-menu { display:inline-block;text-align:left;}

    to your custom css or style.css. This should work.

    I will have a look at the header thing later.

    Theme Author tuxlog

    (@tuxlog)

    Okay in header.php find:

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
    <img src="<?php header_image(); ?>" 
    srcset="<?php echo esc_attr( wp_get_attachment_image_srcset( get_custom_header()->attachment_id ) ); ?>" 
    width="<?php echo esc_attr( get_custom_header()->width ); ?>" 
    height="<?php echo esc_attr( get_custom_header()->height ); ?>" 
    alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
    >
    </a>

    delete the two lines starting with width and height.

    I have just tested this and it works on my site.

    Will do theme testing now and publish it.

    It would be great to have a feedback from you.

    Thanks.

    • This reply was modified 2 years, 2 months ago by tuxlog.
Viewing 15 replies - 16 through 30 (of 1,222 total)