Register/Login
Posted: August 4th, 2011, 2:05 pm
What is the best way to add some php to my header so it say's "Register/Login" and after login has taken place it will now only show a "Welcome, Name" in replace of the "Register/Login" text?
I know how to add the Welcome, Name to appear after a login but was wondering if there is a way to add the register/login then it will add Welcome note...
Thanks
This is what I'm using to show up in header after someone logs in
<?php if (S2MEMBER_CURRENT_USER_IS_LOGGED_IN){ ?><a href="http://" title="My Homepage">Welcome, <?php echo S2MEMBER_CURRENT_USER_FIRST_NAME; ?></a> | <a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>"title="Sign Out"> Sign Out</a><?php } ?>
I know how to add the Welcome, Name to appear after a login but was wondering if there is a way to add the register/login then it will add Welcome note...
Thanks
This is what I'm using to show up in header after someone logs in
<?php if (S2MEMBER_CURRENT_USER_IS_LOGGED_IN){ ?><a href="http://" title="My Homepage">Welcome, <?php echo S2MEMBER_CURRENT_USER_FIRST_NAME; ?></a> | <a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>"title="Sign Out"> Sign Out</a><?php } ?>