rhewlif
Forum Replies Created
-
Forum: Plugins
In reply to: [Donation Thermometer] Settings page not saving valuesSorry to hear you are having trouble. I cannot reproduce the behaviour you’re describing, so perhaps you could try deleting and reinstalling the plugin so that the settings in the database are reinitialised? Presumably the preview thermometer on the settings page does not show correctly when settings are saved?
You can also update the target value from the wordpress dashboard – there is also a short form here for editing just the global raised and target values.
Forum: Plugins
In reply to: [Donation Thermometer] progress amount not updatingI would guess this is a caching issue too, either from the browser, a caching plugin, cloudflare or your host server…; there is no caching functionality within the thermometer plugin itself since it is just needs to draw an inline SVG. Do the amounts update again on a manual refresh of the page?
If you have a caching plugin perhaps you can opt out those pages which contain the thermometer to see if that improves the update speed.
Something like this may also help for rapid updates: https://wordpress.org/plugins/force-refresh/
Thanks for this. I will look into this in a bit more detail for the next release.
Forum: Plugins
In reply to: [Donation Thermometer] Background of behind the Thermometer is not visibleOn the custom CSS tab of the thermometer settings page you can change the default background colour from transparent to white (#ffffff), or something else. There’s also lots of other options here to change the basic look.
There is also an “align” parameter for the shortcode, which can change the placement of the thermometer on the page to left/right without the need to wrap it within a div element.
Forum: Plugins
In reply to: [Donation Thermometer] Thermometer TitleThe alt and title parameters of the plugin relate to html attributes. The alt attribute provides an alternative description of the thermometer when the image cannot be displayed. The title attribute is displayed in browsers as a tooltip when the cursor is hovered over the thermometer.
I would suggest to add a title for your thermometer before the plugin shortcode, perhaps within a <div> tag that matches the width of the thermometer:<div style="width: 200px;"><h1>New Building Project</h1></div>Hi,
I’ve just pushed a plugin update that includes new shortcode options to change the colors on individual thermometers. Check the help section on the settings page for more details.
CheersHi,
Sounds feasible – it looks like you would just need to make a small modification to the plugin code to read the raised amount as a shortcode e.g., https://slewis.org/nested-wordpress-shortcodes/Forum: Plugins
In reply to: [Donation Thermometer] therm_svg.php warningsHi,
You would need to replace the question marks with numbers for the thermometer to display properly. I see though that entering 0 as the shortcode raised value reverts to the default value on the settings page. This is a bug I can fix on the next update, but you can workaround by setting zero on the defaults page.
Henry
Forum: Plugins
In reply to: [Donation Thermometer] Float CSSHi,
Have you tried using
align=rightin the shortcode? This will wrap text to the left.
For example: http://rhewlif.xyz/thermometer/cheers,
HenryForum: Plugins
In reply to: [Donation Thermometer] Thermometer edges for black backgroundsHi Remoz,
In the latest version 2.0.3 I have now added customisable CSS rules that will be able to do as you requested.
cheers,
HenryForum: Plugins
In reply to: [Donation Thermometer] Need id’s within the SVG tagHi Ralph,
Thanks for the suggestion for customising CSS rules – this is a useful and relatively easy idea to implement and have just pushed this out in the latest version. You should therefore be able to at least adjust the target text size to fit the longer text in the SVG. Unfortunately the width cannot be adjusted using CSS since this is an SVG text element.Another workaround would be to remove the thermometer target, and enter “40 families” as html before the shortcode. You can then size/position it as wanted.
cheers,
HenryForum: Plugins
In reply to: [Donation Thermometer] ColorList Parameter not working?I see, yeah there’s a mistype on the help page. At the moment the parameter name should be colorramp. This example should bring you the custom colors you want:
[thermometer raised=732;234;100 colorramp='#d7191c; #fdae61; #abd9e9;']Thanks for pointing it out.
Forum: Plugins
In reply to: [Donation Thermometer] Plugin shortcode parameters not working as I expectRemove the semi-colons and the shortcodes should work fine,
[thermometer target=500 raised=375 fill=#0000FF currency=hsepts trailing=false] [thermometer target=500 raised=300 fill=#008000 currency=hsepts trailing=false]cheers,
Henry- This reply was modified 7 years, 2 months ago by rhewlif.
Forum: Plugins
In reply to: [Donation Thermometer] Second TargetI did consider adding target amounts too, but it would require some thought on how to avoid these text labels eventually overlapping with the raised value and other target values (and generally not be confusing).
If you use the line my suggestion would be to manually add a legend below in the sidebar to say what this first target is e.g.,:
<div><svg height="10" width="50"> <line x1="0" y1="5" x2="50" y2="5" style="stroke:#8a8a8a;stroke-width:2.5" /> </svg> <span>First target: $5M</span></div>At the moment you can change how the target levels look on the thermometer on line 199 of the therm_svg.php plugin file.
Forum: Plugins
In reply to: [Donation Thermometer] Hide target valueYes, all values on the thermometer can be set to be visible or hidden. These defaults can be set from the plugin’s settings page.