Tips and Tricks HQ Support Portal › Forums › WP eMember › Wp emember – showing a page but protecting against downloads
- This topic has 3 replies, 3 voices, and was last updated 4 years, 9 months ago by Shobha_Ponnappa.
-
AuthorPosts
-
February 4, 2020 at 1:48 am #15075Shobha_PonnappaParticipant
Hi:
On my site I have a page called Library created for Free members. It is here: solohacks-academy.com/solohacks-academy-our-library-of-free-knowledge-commerce-resources/
If you notice, it is currently an unprotected page, but what I want to achieve is that people must be able to see all the contents of the page, but only be able to download the ebooks shown, after clicking on them, if they are of my “free members” level.
If I protect the whole page or even just the part containing the ebooks, they will not see that part till they login.
Whereas I want them to be able to see what all is there but only be able to download-ebooks-on- if they are free members.
Perhaps if there is an alert with a “join us as a free member link” when they click the ebooks, it would be ideal. Alternatively, if there could be a login form on the page, they could login (or join) and only be able to download after that.
Either way they end result is that they should be able to see the contents of the page and be able to download only if logged in as free members.
Thanks for any help on this one.
Regards,
Shobha Ponnappa
Is there a way to achieve this?
February 4, 2020 at 11:53 pm #80307wzpModeratorYou can use Partial (Sectional) Protection to make the download links only accessible to certain membership levels:
https://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
February 5, 2020 at 1:39 am #80308adminKeymasterThe best option is to use section protection in my opinion:
https://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
For the download section, you will have two sections there. One for the logged-in member who will see the download button. Then just above or below that button, you will have another section for the NON-members who will see a message saying something like “Become a member to download”.
For example, the following two section protection will be applied in that page. Only one of those will be seen by the user (based on if they are a member or not)
[emember_protected scope=”not_logged_in_users_only”]
Whatever content goes here is only visible to a non-logged in user. Add your message telling them to become a member.
[/emember_protected]
[emember_protected for=”2″ do_not_show_restricted_msg=”1″]
The actual download button goes here. This will be seen by members of membership level 2 for example.
[/emember_protected]
February 5, 2020 at 6:18 am #80309Shobha_PonnappaParticipantAh, yes, good idea. I’ll try that, thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.