uk03
Forum Replies Created
-
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Sort order of track switch in multielevationHi,
Ahhh 🙂 Ja jetzt funktioniert es. Vielen Dank!
lG uk
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Sort order of track switch in multielevationHi,
Ich habs ausprobiert und es tut irgendwie nicht bei mir 🙁
Hier eine beispiel-Seite: https://le-chat-a-velo.at/reisen/polen-tschechien-april-2025/
Ich habe unter der Karte eine Debug-Liste, in welcher Reihenfolge die Files im Post stehen und sortiert sein sollten – zum Vergleich mit dem wie sie in der Karte dargestellt werden. (ich lass die mal drinnen)
Wenn ich irgendwie beim debuggen helfen kann, gib gerne bescheid.
lG uk
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Sort order of track switch in multielevationHi,
Sehr cool, DankeForum: Plugins
In reply to: [WebP Express] Create webp files upon request – brokenYes it fixed it for me as well. Just a few minutes to quick with my report 😉
Thanks and Merry Christmas, UlrichForum: Plugins
In reply to: [Extensions for Leaflet Map] Sort order of track switch in multielevationHallo,
Danke für die schnelle Rückmeldung. Das erklärt das zufällige Verhalten.
mit alphabetisch könnte ich gut leben (die Liste kommt ohnehin aus einem Script und da kann ich auch einen Sort Key einbauen 🙂)
LG Ulrich
Forum: Plugins
In reply to: [ActivityPub] Fediverse Followers Block not working correctlyAnswers see below – but the error brought me on the right track for a workaround: The Problems are caused by a submenu-item in the navigationblock of the header (!) – having such a submenu triggers the javascript-error you mentioned which then breaks both blocks. [which sounds kind of funny/absurd].
Before (broken):
When I moved the link out of the submenu into the main menu, it fixed the error – and therefore also the Blocks.
So, I still have no Idea what the root cause is or even where to report it. But for now I found a working workaround. Thanks for the pointer in the right direction.
Do the blocks work in the un-cached version of this page?
No. they don’t. They work in the Editor though and in the editor they entrys are also correctly sorted.
Which WP version is this site on?
6.8.3
It doesn’t look like Gutenberg is active on that site, is that correct?
Gutenberg is active – see above.
Forum: Plugins
In reply to: [Code Snippets] 3.6.7 broke shortcode evaluation@0aksmith can you give an ETA for the new release (just out of curiosity)?
greetings, UlrichForum: Plugins
In reply to: [Code Snippets] 3.6.7 broke shortcode evaluationYes, exactly – inserted via
[code_snippet id=20 php shortcodes]Forum: Plugins
In reply to: [Code Snippets] 3.6.7 broke shortcode evaluationHere is the example that did not work for me: It generates the necessary shortcodes to display a leaflet-map:
<?php
$tracks = [];
foreach ( get_attached_media( 'application/gpx+xml' ) as $attachment ) {
// printf('<p>ID is %s - %s</p>', $attachment->ID, print_r( $attachment, true ) );
$coords = json_decode( get_post_meta($attachment->ID, '_track_coords', true), true );
if ( ! $pos && is_array($coords) && array_key_exists(0,$coords) ) {
$pos = sprintf('lat=%s lng=%s', $coords[0][0], $coords[0][1]);
}
if ( get_post_meta($attachment->ID, '_track_hidden', true) == 1) {
// print('<p>Hidden</p>');
continue;
}
$tracks[] = $attachment;
}
if ( ! $pos && $coords = get_post_meta(get_the_ID(), 'OSM_geo_data', true) ) {
$coords = explode(',', $coords);
$pos = sprintf('lat=%s lng=%s', $coords[0], $coords[1]);
}
if ( ! $pos ) { $pos = 'lat=48.21 lng=16.48'; }
// printf("<p>Coordinates: %s</p>", $pos);
$options = "time=summary distanceMarkers=true waypoints=true slope=0";
if ( count($tracks) == 0 ) {
} elseif ( count($tracks) == 1 ) {
print('<h3 class="wp-block-heading has-x-large-font-size">Die Strecke</h3>');
foreach ( $tracks as $attachment ){
// printf('<p>elevation gpx="%s" %s </p>',wp_get_attachment_url( $tracks[0]->ID ), $options);
printf('[leaflet-map height=500 width=100%% fitbounds %s mapid="OpenStreetMap"]'."\n", $pos);
printf('[elevation gpx="%s" %s ]'."\n",wp_get_attachment_url( $attachment->ID ), $options);
print('[zoomhomemap]'."\n");
print('[layerswitch providers="OpenStreetMap,CyclOSM"]'."\n");
print('[fullscreen]'."\n");
}
} else {
print('<h3 class="wp-block-heading has-x-large-font-size">Die Strecken</h3>');
printf('[leaflet-map height=500 width=100%% fitbounds %s mapid="OSM"]', $pos);
foreach ($tracks as $attachment) {
printf('[elevation-track file="%s" name="%s" !filename ]', wp_get_attachment_url( $attachment->ID ), get_the_title( $attachment->ID ) );
}
// print('[zoomhomemap]');
print('[layerswitch providers="OpenStreetMap,CyclOSM"]');
print('[fullscreen]');
printf('[multielevation !filename %s]', $options);
// print('[elevation-tracks !filename]');
}
?>Hope that helps.
Greetings, UlrichForum: Plugins
In reply to: [Simple SEO Improvements] 2.0.0 breaks wordpressStrange. manual upgrade and it works …. (first one was an auto-update).
No Idea what happenen – but thanks anyway
- This reply was modified 2 years, 7 months ago by uk03.
Forum: Plugins
In reply to: [ActivityPub] POST in inbox gives Error 500Forum: Plugins
In reply to: [ActivityPub] POST in inbox gives Error 500Hi,
After a bit of playing around, we observed the following:
Pixelfed <-> WordPress works reliable.
Mastodon <-> WordPress does not work – gives the 500 on the POST reqest to the inbox.
We cleared various caches on both sides, enabled and disabled caches etc. with no difference in the outcome. We also tried 2 different Mastodon Instances with the same result. (Mastodon versions 4.2.0 and 4.3.0 alpha).
What I observed is, that sometimes the followers even end up in the database of wordpress. But for the failed requests the “activitypub_user_id” meta attribute to the follower is missing. However manually adding it does not change the behavior (it just shows up in the list in the admin-panel afterwards).
key problem for me is how to find out what causes the 500 – since the log is empty.
Cheers, ulrichForum: Plugins
In reply to: [Meow Gallery] Gallery shows only the first 12 images in a lightbox5.0.1 only partially fixed the issue: if infinite scrolling is turned on, only images already (pre-) loaded are shown in the lighibox gallery. This defaults to 12 upfront.
if infinite scrolling is turned off, everything works as expected.
This issue is especially problematic, if the site is viewed on a mobile phone. There all the images are stacked on top of each other so only 12 are loaded when the page is opened. If you then click on the first image you see, to view all of them in the lightbox, you get only 12.
you have to scroll all the way down (to load all images). Then all of them are shown in the lightbox.
greetings Ulrich
Forum: Plugins
In reply to: [Solid Post Likes] Can not empty ‘Enable Likes for the following Post Types’Perfect.
Danke, und lG Ulrich.Forum: Plugins
In reply to: [Solid Post Likes] Like Button missplaced when added via shortcodeHi,
Wow this was fast.
Yes it fixed the Problem.
Greetings, Ulrich.