Matt Radford
Forum Replies Created
-
Forum: Plugins
In reply to: [Better Core Video Embeds] PHP Warning(s) in Errorlog with 1.3.4(feeling a bit guilty as this was my code…)
I’ve done some digging – if the
fopen
wrapper is disabled then you’ll get this error, and whetherfopen
is available will depend on the web host.For the small performance enhancement that height and width provide, it may be better to remove the
getfilesize()
call.- This reply was modified 11 months, 3 weeks ago by Matt Radford.
Thank you. That has worked and I can now enable HPOS ??
2.2.9.4
Forum: Plugins
In reply to: [Campaign Archive Block for Mailchimp] Filter by campaignHi Bernhard
I’ve tested this now and it works with the filter, many thanks!
One thing though: Mailchimp don’t make it wasy to get the folder ID. There is an “f_folder” in the URL when you navigate to the folder, but that’s not it. I had to make a GET request to the /campaign-folders endpoint to list them all, and the response shows that the folder_id needed is in the format “ab7abba2f8”. Once I’d added a filter to add that to the $query_args, it worked as expected. So one enhancement, should you be inclined, would be to make that campaign-folders request in the Settings and offer a list of Campaign folders to display.
Thanks again ??
MattForum: Plugins
In reply to: [Campaign Archive Block for Mailchimp] Filter by campaignThank you for being so willing to make some changes Bernhard ?? I haven’t had a chance to test this out yet, but will do later this week and will report back.
Forum: Plugins
In reply to: [Yoast SEO] Disable twitter:label1 and twitter:data1 metaHey @dorf, have a look at this link:
https://barebones.dev/articles/yoast-seo-remove-or-customise-enhanced-slack-data-meta-tags/
This meta data is filterable.
Forum: Fixing WordPress
In reply to: Embeding the new Apple Maps Mapkit JsHey, that’s great! I can see it’s working. I have one more thing for you. Change:
mapkit.init({ authorizationCallback: function(done) { done(mapkit_vars.mapkit_jwt_token); } });
for this:
mapkit.init({ authorizationCallback: function(done) { done(mapkit_vars.mapkit_jwt_token); }, language: "de" });
That will change all the map labels into German ?? Gern!
Forum: Fixing WordPress
In reply to: Embeding the new Apple Maps Mapkit Jshttps://dswv.de/wp-content/plugins/apple-map-embed-master/inc/map.js still looks as before to me. Do you have caching enabled?
Forum: Fixing WordPress
In reply to: Embeding the new Apple Maps Mapkit JsI can see from your code and your website that you’ve effectively put two maps on the page. Let’s fix that ??
Replace everything in
inc/map.js
with the following code:document.addEventListener("DOMContentLoaded", function(event) { mapkit_vars; var lat = 52.527231; var lon = 13.397367; var MarkerAnnotation = mapkit.MarkerAnnotation, clickAnnotation; var home = new mapkit.Coordinate(lat, lon); mapkit.init({ authorizationCallback: function(done) { done(mapkit_vars.mapkit_jwt_token); } }); var map = new mapkit.Map("map"); // Setting properties on creation: var homeAnnotation = new MarkerAnnotation(home, { color: "#666666", glyphText: "DSWV" }); // Add and show both annotations on the map map.showItems([homeAnnotation]); // Drop an annotation where a Shift-click is detected: map.element.addEventListener("click", function(event) { if(!event.shiftKey) { return; } if(clickAnnotation) { map.removeAnnotation(clickAnnotation); } }); });
This will create a map with a single annotation, with the text DSWV in it.
I haven’t had time to look at directions yet I’m afraid.
Forum: Fixing WordPress
In reply to: Embeding the new Apple Maps Mapkit JsAh, that’s not going to work I’m afraid. Can you send me the URL of the page you have the map on?
Forum: Fixing WordPress
In reply to: Embeding the new Apple Maps Mapkit JsGlad you got it to work ??
The plugin is only a proof-of-concept right now, but I’m considering working on this plugin a little more and releasing it to the WordPress plugin repository.
In the meantime, if you’re comfortable with JavaScript, then you could follow the Custom Callout example code shown on Apple’s example maps page: https://developer.apple.com/maps/mapkitjs/. That would give you enough to go on to add an annotation (what Apple is calling a marker) plus a callout. You’d need to put any revised JS in inc/map.js.
Forum: Fixing WordPress
In reply to: Embeding the new Apple Maps Mapkit JsHi Zetona
I’ve written a guide and created a sample plugin to show a Mapkit JS embed. See https://mattrad.uk/embedding-apple-map-wordpress/
Cheers,
MattForum: Plugins
In reply to: [Update Privacy] Still sending site URLHi David
Yes, that is intentional. However, I’ve been following your discussion on Trac about this; I hadn’t realised that you could send a fake site URL and updates would still work as usual. So I think the next step for this small plugin is to either intentionally send a fake site URL (and other data) or implement a settings page where people can choose what to send/not send.
Forum: Plugins
In reply to: [Update Privacy] How to proveHi Toremo
There is no way for this plugin to provide this sort of feedback at the moment.
Forum: Plugins
In reply to: [Yoast Duplicate Post] Polylang SupportYou may need to add in some Polylang-specific functions to copy taxonomies and meta data. Have a look at https://github.com/mattradford/polylang-bulk-clone/blob/master/polylang-bulk.php