Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Hide customs posts in live search
- This topic has 5 replies, 2 voices, and was last updated 2 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
March 1, 2022 at 7:02 am #36950
MartinE
ParticipantHi Ernest
Finally bought your excellent plugin ๐
And is I thought, the ajax search lists the documents that the user is not allowed to see, right now I made it so that if you choose the document in Ajax live search, there is just a link back to the search, but I would prefer it, if the files are not listed at all
See website without being logged in.
if you go to fil-database menu item, and search for test you can see a file named test3.pdf, but if you click on manuals, the file is hidden as it should be.
I am as I told you, using โUser Access Managerโ to hide the files for different users.
Anything you can do? And if you can – price?
And here is documentation for UAM
https://github.com/GM-Alex/user-access-manager/wiki/Code-SnippetsMarch 1, 2022 at 1:00 pm #36957Ernest Marcinko
KeymasterHi,
Thank you for your kind words!
Unfortunately we are not available for custom jobs, but I will try to suggest any custom code I can. I checked the code-snippets link, however it does not contain enough information for this case.
For this to work, I need either a way to get the post/document IDs, which the user can not access, or a function, which can check if the user has access to a specific document.
March 1, 2022 at 1:41 pm #36965MartinE
ParticipantHi again
Thanks for following up – I just mailed the creator of UAM, hopefully he can give me function ๐
March 2, 2022 at 10:57 am #36974Ernest Marcinko
KeymasterThank you! Let me know ๐
October 12, 2023 at 10:54 am #45677MartinE
ParticipantHey Ernest,
I changed the search and the redirect setup quite a lot.
I just wanted to ask, if you had any input how to “speed” up the after the redirection from the search?
Im not sure wether is the dom url filter element which is slowing it down or if its the 301 redirect. But maybe you can advice ๐
October 13, 2023 at 1:05 pm #45688Ernest Marcinko
KeymasterDo you mean the redirection after clicking on a result? The redirection afterwards is completely handled by the server/browser itself, the plugin does not have any effect on it unfortunately.
I recommend checking any custom .htaccess rules you have, often times they can be optimized. Also looking at the firewall on the server, maybe lowering it to certain file access could gain some speed for the redirection.
-
AuthorPosts
- You must be logged in to reply to this topic.