Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

2 Questions

by

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, 9 months ago by amin007.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • August 2, 2010 at 4:28 pm #1607
    clc
    Member

    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 #23007
    clc
    Member

    Sorry 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 #23008
    amin007
    Participant

    The 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:

    How to Use the Bookmarking Feature in WP eMember

    The avator that gets shown on your comments section is from the avator the visitors create on gravatar.com

    Here is the site:

    http://en.gravatar.com/

    August 5, 2010 at 11:38 pm #23009
    clc
    Member

    Thank 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 #23010
    amin007
    Participant

    eMember 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 #23011
    clc
    Member

    Thanks that helps!

    Where in my theme .php file would I add that example code?

    Thank you!

    August 6, 2010 at 4:46 am #23012
    amin007
    Participant

    Where you want the menu to appear… most likely in your header.php file.

    December 10, 2010 at 2:35 am #23013
    sscovil
    Member

    Is 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 #23014
    amin007
    Participant

    I 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 #23015
    richardlondon
    Member

    Hi,

    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 #23016
    amin007
    Participant

    Each 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.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ