I am creating an online course with multiple lessons and lesson categories. I created a navigation with images, example, left arrow for previous lecture, right arrow for next lecture.
I made those pictures link to the correct lecture, but the lecture is obviously part of protected content. When I click the link, it redirects the user to the masked directory and of course there is nothing to be found and a generic No Access image.
Is there a way to setup multiple levels of protection and which ones have masks or not?
Or are there any other work-arounds?
1. For example, gold is the level in your case.
5. Add this menu in positive rule for all level.
In this case, all levels will see that menu, but when someone click on that see the protected content message, except the gold level.
Ash, Thanks for the reply.
This is not how I want to solve the solution. Please see my attached screen shot. I want to be able to make HTML links to these pages, not menus that link to the pages.
I have created a level called students and tried giving them positive rules to access these pages, but still makes the url. See second screen shot.
I have even tried text links and some work and some don't.
Some get masked, while others don't.
Yes, I can see the issue and that is because you have media file protection enabled and the button is a image file.
You said that, you have tried with text too. Would you please share me a link where you have used text but not working?
There is a link that says previous lecture. This link on the backend is connected to the correct pages, but now it links to a PDF file.
Also, the protected file links are broken and return 404 errors.
Backend access is enabled for staff.
i just don't want the links to pages to be masked, only links to pdf files or other files.
Is it possible to have the"button images" be non-protected files?
I am sorry for the delay. I have sent another note to @Saurabh Shukla so that he can take a look.
I have checked with Jack and he said he provided a solution for you in other thread. Does it solve your issue?
Also, I am attaching the latest version which is not released yet, but if you want you can check with this version.
@Jack Kitterhing was able to provide a solution to downloads being redirected to error pages, but I still need help with masked links to webpages.
INSTEAD, it is leading to this page: http://wcieducation.com/gemini2/?ms_file=3001.
That is to a PDF file, not to a webpage.
Can we turn off masking for the weblinks to pages? See attached image.
It looks like the Support Access you granted previously has expired, could you re-grant it please?
I have just upfated the back end administration permissions. Please let me know if there is anything else I can provide.
Thank you so much for your patience on this.
I am tagging a developer @Jose from second level support team so that he can take a look as soon he is online. I apology for the delay so far.
Hi @@Jose I just sent in the contact form request.
You are using absolute paths in your links. The problem with this is that the download content protection rule is to protect basically everything starting with http://domain, https://domain, or http://www.domain.
If you use relative paths for your links, you should be good to go.
Now, if you feel that you need more flexibility at some point, then you will need to write some custom code.
You would want to remove the filter to 'the_content' hook, and create a custom one.
For instance, you can write a rule to mask only those links ending with .pdf.
If you need to make such customization at some point, just let me know and I'll be glad to assist you.
YOU ARE THE MAN! Thank you so very much for letting me know how to fix this. I really, really, really appreciate you and your team.
I will let you know if I need something special coded in the future.
Great job @jose :slight_smile: Glad to see it's resolved finally!
Please start a new thread, do not post on threads that are unrelated and nothing to do with your issue.