Forum Replies Created

Viewing 15 replies - 1 through 15 (of 1,241 total)
  • Thread Starter sacconi

    (@sacconi)

    I wanted to add that in the meanwhile I created a dedicated flat DB table for my search filters and the search query is faster. I also moved tons of not strategic CSS from customizer to style.css, also this operation helped a lot…

    Thread Starter sacconi

    (@sacconi)

    Maybe I found the solution, I removed EWWW Image Optimizer and it seems much faster, also the search queries, maybe that’s because I have alrealdy Litespeed, the 2 plugins work on images and I suspect a conflict/ double work….

    Thread Starter sacconi

    (@sacconi)

    Here is my file with all the search queries, the most important is // — SHORTCODE SEARCH BOX ARANCIO —that manages the orange main search box. : https://pastebin.com/50U8FbxW

    Before implementing the cache on occupied periods, search queries with dates took 1 minute! After enabling the cache, I went down to 2-3 seconds. The problem is that as the number of accommodations/posts and occupied dates increases, the query time is rising to 6-10 seconds (definitely too long). But I suspect that at least 50% of the fault is not the query itself but depends on other factors. In fact, I did a decisive test: if I enter destination + dates + “show results on map”, the response time is half of when I don’t select “show results on map”, so loading traditional archive pages with 12 posts is extremely problematic. I agree that image optimization isn’t working well, now I have the EWWW Image Optimizer plugin, can anyone recommend something better? I had AI analyze my old site, which is incredibly fast (but it’s at the end of its lifespan and wasn’t created by me, but by professionals). The queries are directly on specific database tables. I let AI guide me in creating these tables and changing the queries, but I couldn’t make the site any faster. I even had a data loss and had to do a complete backup. In the last two months, I’ve used AI to produce so much code that I wouldn’t have been able to do on my own even in 10 years. However, I’ve learned that if you’re not a professional developer, you can realize too late that you’re not going in the right direction. It’s not easy to set up the right architecture for your needs. I need to be able to handle even a few thousand apartments/posts and have fast search queries; this is the most critical point of all. The best thing I’ve done is the plugin that manages images; I can even manage ALT in three languages. It’s possible that all this JavaScript is impacting the site, but what does “minifies and consolidates” mean? Do I need to centralize the management of the various JavaScripts?

    Thread Starter sacconi

    (@sacconi)

    Under my central image plugin manager you can see a huge wide space: https://ibb.co/Z1hMQJgb , it’s normally where you type to write anything, I want it to disappear

    Thread Starter sacconi

    (@sacconi)

    Ok, any advice about where free-posting a video? (apart from youTube). Maybe the problem is in my screen, I’d like to check…

    Thread Starter sacconi

    (@sacconi)

    I add some news, with more detailed explication of the problems (that I havent already explained in my previous comments, or anyway not in such accurate mode):

    regarding my “show search results on map” checkbox, I think I’ve solved 80% of the problems, but there are still a couple of things that aren’t working.
    1) On the mobile version, when I click on the marker, in most cases the pop-up opens halfway outside the map (so it’s not visible). However, if I click on the same marker a second time, the pop-up opens correctly within the map (this is a progress). So, perhaps the code is valid, but there’s a timing/delay issue with some element. Here’s the script behind my archive.php file: https://pastebin.com/shWJEk0r

    The second problem affects both desktop and mobile. Currently, the code is designed to handle markers with the same coordinates this way: one marker goes in the right place, and the others are moved slightly closer. Then, when the map zooms in to maximum zoom, something else happens: one marker is currently in the right place and is connected to the other markers by a radius. I’d like to improve this, assuming I currently have a maximum of 8 markers to manage in the same position. I’d like them to look like this: https://ibb.co/1J9ZSy01 , meaning the markers all move in a circle and the radius isn’t very long (and there’s no longer a marker in the center, just an invisible point; only the rays are visible). If there are only two markers, they shouldn’t be facing each other; it’s like having segments of an orange, and the closest segment always fills up.
    I’d also like your opinion on how it works on desktop (excluding the last reported issue), and whether it’s acceptable for the visitor.

    Thread Starter sacconi

    (@sacconi)

    Ok, I got the meta: _central_featured_image, I also had to select “image” as kind of field in admin column. I replace the featured image because i want to manage all the image positions from the plugin admin, and also remove the featured image box on the right sidebar (by the way, I havent been succesfull with it up to now). But now I have a more difficult situation to resolve that even the A.I could not resolve (I’m going to open tomorrow another topic about leaflet map)

    • This reply was modified 4 months, 2 weeks ago by sacconi.
    Thread Starter sacconi

    (@sacconi)

    Solution:

    // Inizia la tua nuova aggiunta qui
    add_filter( 'ac/column/value', 'suppress_admin_columns_cod_prodotto_output', 10, 3 );
    function suppress_admin_columns_cod_prodotto_output( $value, $post_id, $column ) {
    // !!! ASSOLUTAMENTE FONDAMENTALE !!!
    // SOSTITUISCI '6a78488e20c49c' CON L'ID ESATTO DELLA TUA COLONNA ADMIN COLUMNS PER 'cod_prodotto'
    // Questo ID deve essere lo stesso che usi nella tua funzione 'populate_cod_prodotto_column_with_link'
    if ( $column->get_name() === '6a78488e20c49c' ) {
    return ''; // Sopprime l'output predefinito di Admin Columns
    }
    return $value; // Permette ad altre colonne di AC di funzionare normalmente
    }
    // Fine della tua nuova aggiunta
    Thread Starter sacconi

    (@sacconi)

    The function is not responsible for both elements, first I populated all the posts with a temporary one-shot code, so I got the the elements without link, then I put the function to have the linked element, now I have both elements 🙁

    Thread Starter sacconi

    (@sacconi)

    my code: https://pastebin.com/2Fbafjng , on mobileI cant put the pop ups inside the maps and top-centered as I do on desktop

    Thread Starter sacconi

    (@sacconi)

    No, I’m doing it custom

    Thread Starter sacconi

    (@sacconi)

    Okay, now I’ll explain exactly how to clearly see this ghost. Go to this page: https://test.sacconicase.com/lignano-sabbiadoro-attico-frontemare-6-posti/ , there is a building with a sort of white triangle on the roof. Place your left index finger at the base of this triangle (the base isn’t clearly visible, but imagine it’s there). Then, with your right hand, click on the photo as if you were shooting a machine gun and look straight at your finger, fixed and focused. You’ll see that it looks like you’re in Ukraine when they fire old Katyusha rocket launchers from the Soviet era. This isn’t fun and shows that making a plugin with artificial intelligence isn’t at all trivial. Now look at the same photo on the real site, where there’s a really cool plugin, that unfortunately doesn’t do everything I need: https://sacconicase.com/lignano-sabbiadoro-attico-frontemare-6-posti/ Repeat the test with your finger and you’ll see that there’s no ghost. I think the semi-transparent background is better because the user doesn’t lose eye contact with the site. The problem I reported is more acute with certain photos than others, but is there perhaps a way to “black out” the photo under the lightbox for a fraction of a second with each click? This would be an interesting trick…

    Thread Starter sacconi

    (@sacconi)

    Ok, now on mobiles I have a “google behaviour” but I cant (always on mobile) put the pop ups inside the maps and top-centered as I do on desktop with:

    // Centra la mappa per mostrare bene i popup
    marker.on('click', function() {
    map.panInsideBounds(bounds, { animate: true, padding: [80, 80] });
    map.panTo(marker.getLatLng(), { animate: true });
    });

    bounds.extend([lat, lng]);
    });

    // === Adatta la vista ai marker ===
    if (posts.length > 0) {
    map.fitBounds(bounds, { padding: [40, 60] });
    } else {
    map.setView([42.5, 12.5], 6);
    L.popup({ closeButton: false })
    .setLatLng([42.5, 12.5])
    .setContent('Nessuna posizione disponibile per questi risultati.')
    .openOn(map);

    any (coding) suggestion?!

    Thread Starter sacconi

    (@sacconi)

    We have different visual sensitivities, it’s clear to me that the lightbox doesn’t work well, I still have a flash-ghost effect at each click. The problem of the max 3-4 click is not present now, there was when I had a “sticky” always opened lightbox, now the lightbox arise and die at each click

    Thread Starter sacconi

    (@sacconi)

    Transparency is ok but I still have the “ghost” effect above described…: https://test.sacconicase.com/lignano-sabbiadoro-attico-frontemare-6-posti/ effect that is not visible here https://sacconicase.com/lignano-sabbiadoro-appartamento-per-7-persone/

    so, having transparency without the ghost or flash effect at each click this is the goal…

Viewing 15 replies - 1 through 15 (of 1,241 total)