Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Private PDF files
- This topic has 14 replies, 2 voices, and was last updated 5 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
November 25, 2020 at 11:29 pm #30365
sebasweb27
ParticipantHi,
Today I bought this plugin through theme forest because my client needs a private search engine for pdf files that will be hosted in the media tab.The file can only be viewed when the user has correctly entered the search term.
As they are checking private reports for the validation of precious stones, these documents cannot be visible to the public, only those who receive the printed document with the corresponding number.
I can’t find a way to do this, and it’s the only reason I bought this plugin.
Could you help me please, thank you very much.
November 26, 2020 at 9:43 am #30371Ernest Marcinko
KeymasterHi,
I need a bit more information for this, as in wordpress there are no media attachment restrictions by default.
– Do the users should have access to a specific set of attachments only?
– How is this restriction implemented? (plugin, custom code, theme etc..)
– Is there an API documentation to a function to programmatically check if a user has access to a specific document?
With an API I should be able to recommend a possible custom code to remove matches to which the user does not have access to.November 27, 2020 at 5:26 pm #30405sebasweb27
ParticipantI do not have an API for this, my intention is to be able to solve my need with your plugin.
The only thing I need is that it does not show me suggested files in PDF format while the user types in the search engine.
can you help me please.
I can’t find a way to do it.
Thanks a lot.
a greeting
November 28, 2020 at 11:48 am #30408Ernest Marcinko
KeymasterThe only thing I need is that it does not show me suggested files in PDF format while the user types in the search engine.
Do you want the result links to go the the attachment page instead, is that what you mean? You can change that here: https://i.imgur.com/2i8mUTT.png
November 30, 2020 at 7:42 am #30414sebasweb27
ParticipantThank you very much for your answer.
It is not what I need, but thanks for that clarification, it works the same way.
What I need is that the search engine does not show me suggested files when I start to write in it, that it ONLY show me the file when I write the word completely, in this way, I prevent users from seeing that there are other files similar to the one They are looking for.
For example, if I have two files whose name begins with car, but the name at the end is car-red-02.pdf and the other is car-green-02.pdf I am not interested in that when I write the word car, automatically show me the two files, ONLY when I write the one I am looking for.
This is because the files I am looking for are private and can only be seen by those who have the exact word with which they are going to look for them to verify that they exist within their official registry.
November 30, 2020 at 9:38 am #30416Ernest Marcinko
KeymasterOkay, thank you for clarification. In that case, I would suggest trying the “AND with exact keyword matches” keyword logic as well: https://i.imgur.com/WRKKkT6.png
That may get you closer to what you are looking for.December 1, 2020 at 7:17 am #30432sebasweb27
ParticipantI really appreciate your help, but unfortunately I can’t find what I need.
My goal is to be able to find PDF files with an exact search without file suggestion.
With the configuration you suggested, I have not been able to achieve it either.
December 1, 2020 at 10:10 am #30440Ernest Marcinko
KeymasterWell, I’m not sure if there is a way to make any search work like that. I can suggest a possible direct modification to the attachment search file, to allow only fully exact matches on the file name:
1. Make sure to have a full site back-up
2. Open up the .. file on your server
3. Replace it’s contents with this
4. Save the file
5. On the attachment search, I recommend this configuration: https://i.imgur.com/fxfhDlt.pngThat should do only a completely exact field match on the file title. If you need help with the change, you can add temporary FTP details, and I will do it for you.
December 1, 2020 at 11:17 am #30445sebasweb27
ParticipantYou cannot access this content.
December 1, 2020 at 1:04 pm #30448Ernest Marcinko
KeymasterThat was a nifty solution for sure 🙂
You can do that by enabling this option. Links should open in a new window afterwards: https://i.imgur.com/fwMIEIB.png
December 1, 2020 at 1:33 pm #30449sebasweb27
ParticipantAgain, thank you very much, I hope the client is very happy with the result, what you just explained worked very well, you know the service you offer very well, that gives a very good quality to your plugin.
December 1, 2020 at 1:35 pm #30450Ernest Marcinko
KeymasterYou cannot access this content.
December 1, 2020 at 1:45 pm #30453sebasweb27
ParticipantReady, you have my assessment in codecanyon.
Again thank you very much and of course, let’s close this ticket for now.
The support from the creator of this plugin has been very good, he has responded in the shortest time possible and seeks to give you a solution to make your purchase worthwhile.
December 1, 2020 at 1:46 pm #30454sebasweb27
Participantof course you will see my assessment directly in codecanyon.
I shared it with you here so you know what it was.
a greeting
December 1, 2020 at 1:48 pm #30455Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- The topic ‘Private PDF files’ is closed to new replies.