I’m working with water business website that hosted on WordPress. I want to use the feature plugin that show the graph numbers on my page. Is this plugin helpful for this?
]]>I am using your widget to show tides in Panama City, Panama our coordinates are Latitude 8.983333 Longitud -79.516670 but when inserting the values it pulls up Mona Island, Puerto Rico, a total different country. The widget is on the side bar at the very bottom of the page, please scroll to see it.
Can you please help us?
AV
]]>Can the Tide Graph plugin use latitude and longitude input values (either decimal or deg/min/sec)?
Also, is there a shortcode option so that I can use the plugin on a page or post, rather than by using a sidebar widget?
Please advise; thanks! ??
]]>Since it appears the plugin is no longer supported by the author, I have taken the time to update the plugin using information from this post to fix the contructor method – https://www.ads-software.com/support/topic/shows-deprecation-notice-for-widget/
The updated plugin has been tested on my site running PHP 7.2 and WordPress 5.1.1 and no longer displays the deprecation notice.
Make the following changed in the file tidegraph.php located in the root of the tide-graph plugin directory.
1. Line 20 replace:
function Tide_Graph() {
with:
function __construct() {
2. Line 23 replace:
$this->WP_Widget( ‘tidegraph-widget’, __(‘Tide Graph Widget’, ‘tidegraph’), $widget_ops, $control_ops );
with:
parent::__construct( ‘tidegraph-widget’, __(‘Tide Graph Widget’, ‘tidegraph’), $widget_ops, $control_ops );
The called constructor method for WP_Widget in Tide_Graph is deprecated since version 4.3.0! Use __construct() instead.
it can be easily fixed by jus replacing code
$this->WP_Widget( 'tidegraph-widget', __('Tide Graph Widget', 'tidegraph'), $widget_ops, $control_ops );
with
parent::__construct( 'tidegraph-widget', __('Tide Graph Widget', 'tidegraph'), $widget_ops, $control_ops );
Hi, I’m wondering what might be causing the widget to load slowly for me. It was blocking my page from loading for a solid 30 seconds so I iframed it in using a script to load it after the body. Now the rest of the page loads quickly, but the widget in the iframe takes about a minute to appear. Any idea what the cause might be? The site is https://discoverpearl.com/test/leewater/. The script I’m using to iframe the widget:
<div id="tidediv">
<script>
//doesn't block the load event
function createIframe(){
var i = document.createElement("iframe");
i.src = "https://tides2.tidegraph.com/api/plot.php?bg=transparent&scale=0.65&lat=26.5217&lng=-82.1883/";
i.scrolling = "auto";
i.frameborder = "0";
i.width = "208px";
i.height = "312px";
document.getElementById("tidediv").appendChild(i);
};
// Check for browser support of event handling capability
if (window.addEventListener)
window.addEventListener("load", createIframe, false);
else if (window.attachEvent)
window.attachEvent("onload", createIframe);
else window.onload = createIframe;
</script>
</div>
Thanks!
]]>I just put in your Plugin on my site – the graph is completely empty? How to correct this?
]]>We are trying to use your module on the footer of this website:
https://www.acadiaweekly.com (see bottom right footer)
It’s not showing up. I’ve tried using your javascript code on your website (added the HTML Javascript Adder plugin so that Javascript would display in the widget).
I’ve tried using your stand alone WordPress widget with location information. It is also not displaying (tried that in the sidebar).
If I could get either of these to work, I’d gladly use this plugin and donate to it.
Thanks for your help on this,
Nicole