herold
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Download Monitor] Bots werden nicht gefiltertSimply check the user agent and search for ‘bots’. If the word ‘bot’ or ‘bots’ is in there then do not track and do not save.
Forum: Plugins
In reply to: [Simple Download Monitor] Bots werden nicht gefiltertI don’t want an extra filter. Just the functionality that the bots are filtered out of the stats and logs when I check the checkbox ‘No Bots’.
Forum: Plugins
In reply to: [Simple Download Monitor] Bots werden nicht gefiltertI don’t want to add these option to the download link. A simple filter would do, as these bots have a clear signature as far as I can see. In all the User Agent text, you find the words ‘bot’ somewhere.
Forum: Plugins
In reply to: [Simple Download Monitor] Warning MessagesThank you for checking. I have 3 custom post types running – could that cause it? Do you have any suggestions on where to look for Plugins issues?
How about the bots?Forum: Plugins
In reply to: [Simple Download Monitor] Warning MessagesNoch etwas anderes habe ich bemerkt. Ich habe die Option Bots nicht z?hlen aktiviert, aber im Log und im Counter werden sie trotzdem gez?hlt. Hier sind meine Bots log:
– Mozilla/5.0 (compatible; BLEXBot/1.0; +https://webmeup-crawler.com/)
– Mozilla/5.0 (compatible; SemrushBot/7~bl; +https://www.semrush.com/bot.html)
– IonCrawl (https://www.ionos.de/terms-gtc/faq-crawler/)Forum: Plugins
In reply to: [Simple Download Monitor] Warning MessagesIt’s a production website and I can’t deactivate most of the plugins without running into numerous problems. I am running PHP 8.1.
Undefined array key X, where X runs through all kind of numbers (13-22). Maybe it’s a bot that triggers it?- This reply was modified 1 year, 9 months ago by herold.
Forum: Reviews
In reply to: [Simple Download Monitor] Excellent Free PluginMy pleasure, I also submitted a quick PHP solution to add a download widget to the dashboard.
Forum: Plugins
In reply to: [Simple Download Monitor] Scripts Added to all PagesBy the way, I am working with Elementor. Is there any way to have a download button, that shows different options for the file format? I have seen such buttons on some websites that convert files.
Forum: Plugins
In reply to: [Simple Download Monitor] Scripts Added to all PagesYes, will do – thank you!
Forum: Plugins
In reply to: [Simple Download Monitor] Scripts Added to all PagesThank you for the prompt reply.
I assume that I need the CSS and JS only on that page, where I have the download link, correct?Hello Nick,
I was able to find the problem. It was a Chrome extension: I don’t care about cookies!Hello Nick,
I am using the latest Spectra Plugin, free Astra theme, Essential Blocks, and also the RankMath plugin. When I inspect the elements at the space where the cookie settings are, it looks like all the html code is there. I see no JS errors in the console. All other setting panels like date/time are showing up.- This reply was modified 1 year, 10 months ago by herold.
After a few hours and with the help of ChatGPT I found the solution:
$my_array = array(38448,38504,38521,38942,38976,38981,38990,39002,39006,39010,39013,39017); $current_post_id = $post->ID; $shift = array_search($current_post_id, $my_array)-2; if (is_array($query) && count($query) >= 5) { $sliced_posts = array_slice( $query, 0, $shift ); $remaining_posts = array_slice( $query, $shift ); $query = array_merge( $remaining_posts, $sliced_posts ); } return $query;
I could add a custom field to my posts and add the numbers 1-12 to make it simpler. But this also works. Thank you for your help and support! Awesome
Here are some outlines on how the result should work:
Current post: 5 -> Display: 3,4,5,6,7
Current post: 9 -> Display: 7,8,9,10,11
Current post: 1 -> Display: 11,12,1,2,3
Current post: 12 -> Display: 10,11,12,1,2
So, the order of the post is kept, it just shifts the viewpoint of the 5 posts in the carousel.Thank you for creating this extra code. Actually, this is going into the right direction. I would say we are half way there. The actual post is now in the middle of the carousel, which is great. However, the order of the posts from 1-12 is no longer there. See here:
https://metawende.de/lebensbereich-werte/‘Werte’ is the second post (based on ID) and ‘Individualit?t’ is the first, should also be left from ‘Werte’. Then, because there is still one slot left, it should to be post 12. Please see this URL for the order of all the 12 posts:
https://metawende.de/manifest/