hpcrazy Posted July 10, 2022 Posted July 10, 2022 On my page I would like that when a guest clicks on a category in the download section that a customized message appears. At the moment it's this one here : Quote We could not locate the item you are trying to view. Were can I change that message ?
Nathan Explosion Posted July 10, 2022 Posted July 10, 2022 Put the phrase in to the search bar - edit the result.
opentype Posted July 10, 2022 Posted July 10, 2022 (edited) Well, there is the category setting: You might need to revise your permission settings though. There is a difference between viewing categories/file records and downloading the files. If you prevent users from seeing anything, then that’s exactly what will happen. Users might not see specific error messages, if they are not allowed in a specific section to begin with. That’s intentional. Edited July 10, 2022 by opentype
hpcrazy Posted July 10, 2022 Author Posted July 10, 2022 5 minutes ago, opentype said: Well, there is the category setting: You might need to revise your permission settings though. There is a difference between viewing categories/file records and downloading the files. If you prevent users from seeing anything, then that’s exactly what will happen. Users might not see specific error messages, if they are not allowed in a specific section to begin with. That’s intentional. Yes that works for the single download posts but not if somebody clicks direct on the category where you find those posts.
opentype Posted July 10, 2022 Posted July 10, 2022 5 minutes ago, hpcrazy said: Yes that works for the single download posts but not if somebody clicks direct on the category where you find those posts. Yeah, like I said: if you prevent (listing) access, you prevent (listing) access. Users will not even get to the custom error messages. I do not think there is a way around this. As I said: you could consider letting people see the file list and then hit the custom error messages later.
hpcrazy Posted July 10, 2022 Author Posted July 10, 2022 3 hours ago, opentype said: Yeah, like I said: if you prevent (listing) access, you prevent (listing) access. Users will not even get to the custom error messages. I do not think there is a way around this. As I said: you could consider letting people see the file list and then hit the custom error messages later. I had that before - the problem is that a guest now started to create like 10 invoices per day just by clicking on the " buy " button. And I don't want to go to delete these invoices daily. So I want that guests can see the content of the category but can not click on the added files....
teraßyte Posted July 10, 2022 Posted July 10, 2022 There's no built-in option for this, but it should be easy enough to edit the template and remove/disable the button for guests or replace it with a message in case. Or, as I usually suggest, it's better making a quick plugin that takes care of it so you don't edit the template (which properly keeps auto-updating with new versions). Marc 1
Recommended Posts