Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › 2 Questions
Tagged: page display
- This topic has 10 replies, 4 voices, and was last updated 13 years, 3 months ago by amin007.
-
AuthorPosts
-
August 2, 2010 at 4:28 pm #1607clcMember
1. How do I set up my settings so that when a member comments (signed up via eMember and has uploaded their avatar in their edit profile page made using the eMember shortcode) they have their avatar show up in the comment where it should be? I tested it a second ago and I uploaded an avatar but it shows as a “blank man” when I made a comment.
2. Is there a way to add a page such as “Profile” to my top navigation ONLY when a member is logged in?
Thank you!
August 3, 2010 at 12:34 am #23007clcMemberSorry to ask a dumb question but can’t seem to figure it out. When granting access or protecting something we click the left check box but what does the checkbox on the right do?
Thank you so much!
August 3, 2010 at 5:07 am #23008amin007ParticipantThe checkbox on the right is for disabling bookmark option on a post or page. This page has more info on the eMember’s bookmarking feature:
The avator that gets shown on your comments section is from the avator the visitors create on gravatar.com
Here is the site:
August 5, 2010 at 11:38 pm #23009clcMemberThank you! I still have a couple of questions please.
What exactly does uploading a picture in your profile do then? Where else would their picture be shown outside of their profile page?
Is there anyway to display a page in the navigation bar only when a user is logged in?
Thanks!
August 6, 2010 at 12:58 am #23010amin007ParticipanteMember has an option where you can let your members browse the profiles of other members. It really helps if there is a profile image for every profile if you are using that feature. Remember you can customize which fields appear on the “Edit Profile” form so if you don’t need a particular field simply turn it off from the pages settings menu of eMember.
“Is there anyway to display a page in the navigation bar only when a user is logged in?” – Yes but it means that you will have to modify your theme and add a bit of code that will only display the page in the menu if the user is logged in.
Here is an example code:
<?php
global $auth;
$user_id = $auth->getUserInfo('member_id');
if (!empty($user_id))//User is logged in so display the menu
{
<li><a href="example.com/secretPage">Some Secret Page</a></li>
}
?>Remember you can also protect a page then hide it from the navigation menu and only link to it from one of your members only page (this might be an alternative solution depending on what you are trying to achieve).
August 6, 2010 at 2:02 am #23011clcMemberThanks that helps!
Where in my theme .php file would I add that example code?
Thank you!
August 6, 2010 at 4:46 am #23012amin007ParticipantWhere you want the menu to appear… most likely in your header.php file.
December 10, 2010 at 2:35 am #23013sscovilMemberIs there any way to make the avatar from eMembers also become the avatar for the WP user?
Does eMembers work with the Add Local Avatar plugin? http://wordpress.org/extend/plugins/add-local-avatar/
December 10, 2010 at 3:56 am #23014amin007ParticipantI am not familiar with that plugin. If it helps… you can tell eMember to use the Gravatar image for member’s profile. You need to check the following settings for that:
Use Gravatar Image in Profile
August 2, 2011 at 8:59 am #23015richardlondonMemberHi,
Could you advise on where abouts in the header.php file that the code:
<?php
global $auth;
$user_id = $auth->getUserInfo('member_id');
if (!empty($user_id))//User is logged in so display the menu
{
<li><a href="example.com/secretPage">Some Secret Page</a></li>
}
?>actually goes…
I have placed the whole of that code in the header in two places. I have placed it just before the basic meta data and just before the closing head tag, and the whole site dies.
many thanks
August 3, 2011 at 12:49 am #23016amin007ParticipantEach theme’s header file is different. I have no way of knowing how your header file looks like and hence cannot tell you where to put the code. These example codes that can be used outside the eMember plugin is best suited for someone who has enough knowledge of the theme in question.
-
AuthorPosts
- You must be logged in to reply to this topic.