Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou can prioritize results by categories/field values via the priority groups, if that’s what you are looking for: https://documentation.ajaxsearchpro.com/result-priority-settings/priorities-by-rules-priority-groups
Ernest Marcinko
KeymasterOh, and I forgot the mobile search issue, it was because this option was still turned on: https://i.imgur.com/Wzddfyo.png
I’ve turned it off for you, it should be okay now for mobile devices too 🙂Ernest Marcinko
KeymasterThanks Ian!
Sorry, I had a doctors appointment and I couldn’t make it back in time.
I was able to log-in and check now. The issue is not related to the plugin whatsoever. It took me a while to debug this and it turns out it’s a 3rd party script that basically changes the checkbox states, this one: https://buildreview.org/wp-content/plugins/buildsource_member_notes/buildsource_member_notes.js
When I block the script via dev tools, everything work okay: https://i.imgur.com/UCCb0tq.png
It originates from the buildsource_member_notes plugin directory which is the “BuildSource Member Notes” plugin. The faulty lines seem to be these ones: https://i.imgur.com/CrmEaEw.png
That might be a mistake, but lines185-187in that script will change EVERY checkboxes on the page to unchecked states – except for ones with specific classes. I don’t think they meant to do that, it’s terrible.If you want to keep using that plugin I recommend contacting their support, this issue will affect every single checkbox on your site one way or another. This is why I usually recommend testing issues with every plugin deactivated to make sure not another is at fault, like in this case, unfortunately it happens a lot and I can’t prevent that.
I made a few changes to the search bar as I was debugging, and I don’t remember which categories and checkboxes were selected – sorry about that – make sure to change it back.
Ernest Marcinko
KeymasterYou are right, I think we need a different approach. Scratch that custom CSS, it’s not going to work.
Instead, I have constructed a custom code for you. This will basically override all clicks, but nothing else and prevent any redirection.
add_action('wp_footer', function() { ?> <script> window.addEventListener("load", () => { document.querySelectorAll(".asp_main_container").forEach((el)=>{ el.addEventListener("asp_results_show", ()=>{ setTimeout(()=>{ WPD.dom('.item').off().on('click touchstart', (event)=>{ event.preventDefault(); }); }, 50); }); }); }); </script> <?php });Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Ernest Marcinko
KeymasterHi Ian,
Thank you very much, I was able to log-in, but the account has no privileges to access most of the back-end, please see: https://i.imgur.com/GKqc3sx.png
I will try to answer some without the access:
2) This has been already answered a few days ago, see topic here.
4) The best course of action in this case is to use 2 different search bars – one without settings, which redirects to the results page, and one for the results page, where the settings are set to be visible, like so: https://i.imgur.com/D5FLhGg.png
So when the first search bar redirects, the user can use the second one to refine the results as he likes.Ernest Marcinko
KeymasterHi,
The problem with that is, that they are not going to be registered to the media library, and therefore WordPress has no information about these files. I guess there is probably a way to register those via the add-from-server plugin.
I would test that first to make sure it’s working properly as that plugin was not updated for a while now.July 4, 2024 at 12:49 pm in reply to: missing certaing CPT (based on location taxonomy) in search results #48707Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
I’m afraid there is no such option, nor an easy way to add it programmatically, as re-Captchas have to be rendered on both client and server side. I usually recommend a custom code where I can, but this is far more complicated.
Having a re-captcha within the search form is very unusual and it will not achieve anything, as the requests are secure on their own. Browsers use a no cross-site policy, so fetch/xhr requests can’t be made outside of the website scope.
If you want to have the website secured, then I rather recommend using Cloudflare CDN with the highest security settings. That will automatically trigger a captcha to the visitors which are suspicios or flagged.
Ernest Marcinko
KeymasterYou cannot access this content.
July 3, 2024 at 3:51 pm in reply to: Cross site scripting issue with search dialog and the s querystring parameter #48697Ernest Marcinko
KeymasterYou cannot access this content.
July 3, 2024 at 3:14 pm in reply to: Cross site scripting issue with search dialog and the s querystring parameter #48695Ernest Marcinko
KeymasterYou cannot access this content.
July 3, 2024 at 3:09 pm in reply to: Cross site scripting issue with search dialog and the s querystring parameter #48693Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
Keymaster2. It’s to send information to the results page handler:
– asp_active -> tells if the query is originated from the plugin and should trigger an override
– p_asid -> unique search ID
– filters_initial & filters_changed -> tells that the form data is initial and form data had not been tempered with yet, so based on that more efficient queries can be constructed
– current_page_id -> used as reference to the originating page ID
Unfortunately there is no other way to send this information.Ernest Marcinko
KeymasterHi,
Thank you very much for the details!
When I try to log-in I get the following message: https://i.imgur.com/eUkNazp.png
So the details seem to be okay, but it’s something with the URL. Can you please check that? -
AuthorPosts