- This topic has 2 replies, 3 voices, and was last updated 13 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › Sidebars/widgets based on Membership level
Tagged: eMember
I’d like to control my sidebar/widgets the same way the Manage Content Protection works.
For example, I want to have an upgrade button in the sidebar for the free members but not the paid members.
Also, can I have it so non-members (visitors neither free or paid) see one sidebar and members see another?
The sidebar is controlled by your theme (not the plugin). So you will have to write some code/tweak the theme to do what you are after.
The eMember plugin lets you easily find out if a member is logged in or not and what their level is. The following post explains the code:
How to get member id and his details (retrieve member details)
In your case inside the condition you will write the code that displays what you want to display for the members.
One thing you could do is make sure you have the ‘WordPress User Integration’ options checked so when someone creates an eMember user, there is also a WordPress User created as well.
Then assign a different WordPress Role for each of your ‘membership levels’:
eg:
Free – Subscriber
Bronze – Author
etc…
Make sure that you change the permissions on what each WP role can do though, just in case.
After this, Install the plugin called ‘Dynamic Widgets’. Which allows you to control what Widgets are displayed where. Either by Role, Page, Posts, etc.
This should work for you.