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

Reply To: Question about adding login status to Nav bar on page

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Question about adding login status to Nav bar on page › Reply To: Question about adding login status to Nav bar on page

January 13, 2010 at 6:57 pm #17191
rjd2
Member

Please bear with me here since I am still pretty new at PHP.

In wordpress i have my header.php file and I would like to add this code in there somewhere to show something like “Login | Register” or if they are already logged in, “Logged in as USERNAME | Edit Profile | Logout”.

The code would be similar to this (with hyperlinks of course). Do I need to make sure my header.php file knows where the wp_eMember_install() function is located? ie, which file it is located in within the eMember plugin files?

if (function_exists(‘wp_eMember_install’))

{

global $auth;

$user_id = $auth->getUserInfo(‘member_id’);

if (!empty($user_id))

{

// Display “Logged in as USERNAME | Edit Profile | Logout”

}

else

{

//Display “Login | Register”

}

}

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