Forum Replies Created

Viewing 15 replies - 106 through 120 (of 128 total)
  • Plugin Author rhewlif

    (@henryp)

    Hi there,

    Try the latest update to the plugin – this should solve the thousands separator issue. What currency symbol have you got set on the settings page? Do you have an example page that i can look at?

    Henry

    Plugin Author rhewlif

    (@henryp)

    Thanks, but you should really create a new post for this as your issue is not linked at all to the original question.

    Unfortunately I don’t have any practical suggestions without more info. Do you have another plugin that handles comments? A guess would be there is a conflict occurring between plugin parameters.

    Btw UNICO Memphis appear to load fine now. New and Information does have the word ‘off’ as well as a missing comments section.

    The word ‘off’ is appearing in a div element called comments, which is unrelated to my thermometer. Where did you put the shortcode on this page? Try the usual of deactivating all your other plugins one by one to narrow down the error. Also I advise you start a new topic thread in the forum and we can carry on from there.

    Plugin Author rhewlif

    (@henryp)

    I suggest you make the width parameter 15% in the shortcode (ignoring height) and I will release an update to the plugin soon.

    cheers

    Plugin Author rhewlif

    (@henryp)

    Ah, woops, meant line 449. That height if-loop should be:

    if ($atts['height'] != ''){
        $height=$atts['height'];
        $width='';
    }

    Plugin Author rhewlif

    (@henryp)

    Sorry about that.. you’ve found a bug in the code. If you want a fix now, change lines 445-450 in the donation_therm.php file to this

    if ($atts['width'] != ''){
        $height='';
        $width=$atts['width'];
    }
    
    if ($atts['height'] != ''){

    The file is found in the wp-plugin folder on your server. Otherwise I will send an update out soon over the next week.

    cheers

    Plugin Author rhewlif

    (@henryp)

    Hi,

    If you’re having trouble resizing the thermometer, let me know what shortcode you’ve used and I will try and help you find out what’s going wrong. Percentage widths will now resize the thermometer depending on the size of the parent container, which may explain why you’re getting a ‘large and clunky’ image. A working example would of course be useful.

    I have not been made aware of currency values resetting themselves before….do you know under what scenarios this occurs?

    Cheers

    Plugin Author rhewlif

    (@henryp)

    Ok, there’s a bit of confusion here. You’ve tagged my plugin on this post, which isn’t the one you are having problems with. Feel free to try my ‘Donation Thermometer’ though – easy to embed on posts!

    https://www.ads-software.com/plugins/donation-thermometer/

    Plugin Author rhewlif

    (@henryp)

    Do you still get a problem if you use the shortcode correctly..i.e [thermometer raised=893 target=1000 align=right]?

    The only parameters allowed in the shortcode are: ‘width’, ‘height’, ‘align’, ‘target’, ‘raised’, ‘alt’ and ‘currency’.

    Plugin Author rhewlif

    (@henryp)

    Ok. You’re right, it’s not the most secure workaround…I will look into changing how the thermometer is produced for the next update. Cheers

    Plugin Author rhewlif

    (@henryp)

    Try putting this code into the plugin’s donation_therm.php file:

    if (!is_admin())
      add_filter('widget_text', 'do_shortcode', 11);

    and remove yours from the functions.php file. I’ve just tried it on a test site and it does the trick.

    If that doesn’t work, does the shortcode work in a post/page? Have there been any changes to your server within the last week? My second guess would be that the plugin folder permissions need to be relaxed. Try 777 and see if the image gets saved. Third guess would be that the GD library has been modified on your server. Create a phpinfo file and check what’s installed. If none of these work, it would be useful to know what error messages are on the server error log.

    Plugin Author rhewlif

    (@henryp)

    In order to preserve the correct aspect ratio, the thermometer shortcode will only accept values for height OR width. Try using just one of these parameters.

    Thread Starter rhewlif

    (@henryp)

    Yeah, I never found the issue. There was always a 504 gateway timeout error whenever trying to load images via the wordpress servers. I’ve tried the tiled galleries again now though (since after the recent jetpack update?) and the issue seems to have resolved itself! Not sure what happened to change it, but there you go.

    Thanks for the offer.

    Plugin Author rhewlif

    (@henryp)

    The settings will revert to default if the plugin is deactivated, maybe also when the plugin gets updated. I can’t see why this would happen randomly otherwise. You can fix it by updating the settings page to get your old colour back…I will need to look into this issue for the next release as it is annoying.

    Cheers..glad it’s useful.

    Thread Starter rhewlif

    (@henryp)

    On some further investigation it looks like the thumbnails are being hosted, or generated from images, on the domains i1.wp.com, i0.wp.com and i2.wp.com. I thought that perhaps my server was blocking these domains so inserted this code into the .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?henrypatton.org [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?io.wp.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?i1.wp.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?i2.wp.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

    The thumbnails still don’t load, and it seems the images on these wordpress servers don’t even exist. Any ideas on getting this fixed would be very welcome!

    Plugin Author rhewlif

    (@henryp)

    Hi Josef,

    The error message you are getting is for a different function in the plugin (presumably you’re using the latest version?) so the solution on this thread won’t likely work. Here on line 231, when the plugin settings get updated all previous thermometer images are deleted from the plugin folder. I can’t replicate the error message you are getting, but I suspect it may be because the glob function is returning an empty array. Can you edit the donation_therm.php file and replace lines 230-234

    if( isset($_GET['settings-updated']) ) {
        foreach(glob(THERM_ABSPATH.'*.png*') as $v){
        unlink($v);}
    }

    with:

    if( isset($_GET['settings-updated']) ) {
        $therms = glob(THERM_ABSPATH.'*.png');
        if (is_array($therms) && count($therms) > 0){
    	foreach($therms as $v){
    	    unlink($v);}
        }
    }

    Please also make sure the plugin folder is readable. Do you still get the error message once you have created thermometers on a page or post?

Viewing 15 replies - 106 through 120 (of 128 total)