Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2108

Joomla! 5.x Coding • Re: Upgrading Extensions and Plugins to use "new methodology"

$
0
0
Guys

Now that I have read Nicholas K. Dionysopoulos' book I at least have an understanding of what the changes are about, and Robbie J's mods now make sense to me.

The module to display a Facebook page in a Site Module have been made, and tested, and better still released at Version 5.3.1 dated 26th April 2024 and published on JED. For example please see http://parkdavidson.co.uk/ which is working with Compatibility OFF.

However, the plugin to display a KML file in GoogleMaps has not proceeded as smoothly.
The modifications are complete, and testing is under way. The authorisation by GoogleMaps is by way of a script, and within the J5 configuration it fails - but when there is no Google API Key then it works as expected - viz one gets a message to say "For development purposes only".
Please see the attached screen shots.

One can conclude as follows:
a) that the J5 mods made for me by Robbie work
b) that there has been an error since creation of the plugin, but it was not severe.
c) this error must now be treated as severe. One has to view the java

This is the php code for the script:
// script for authorisation and callback to map script
function getmyauth($apikey) {
$output = '<script src="https://maps.googleapis.com/maps/api/js ... "></script>' ;
return $output ;
}

Here is what Google Maps say: https://developers.google.com/maps/docu ... aps-js-api
scroll down to "The URL in the following example script tag loads the Maps JavaScript API:"

Google Maps suggest that all is required is the word async after the <script before the src ..... but that does not seem to work

Previous testing showed that the script needs to be in the body of the html forming the article.

Any ideas ??

I have a feeling the solution will be very simple . . . so off for a walk and pint !

Richard

Statistics: Posted by rgtr — Wed May 15, 2024 2:42 pm



Viewing all articles
Browse latest Browse all 2108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>