Welcome to Geeklog Saturday, May 18 2013 @ 09:17 PM EDT
|
||||||||
![]() |
Forum Index > Support > General Geeklog Support |
New Topic
|
Post Reply
|
[log out ] in the same top space by the side of welcome so and so |
|||
| Anonymous: Mrittika |
|
|||||
|
|
can it be done ? help please
|
|||||
|
||||||
| samstone |
|
|||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 09/29/02 Posts: 820 |
The following code will put a [login] where you wanted it and changes to [logout] after logged in.
PHP Formatted Code <?php if ($_USER['uid'] > 1) {print '<a class="navbar" href="' . $_CONF['site_url'] . '/users.php?mode=logout">Logout</a>';}else {print '<a class="navbar" href="' . $_CONF['site_url'] . '/users.php?mode=login"><b>Login</b></a>';}?> I also put the following code to give the visiter a prompt to [Register Now] and turns to [Edit Profile] if the person logged in. PHP Formatted Code <?php if ($_USER['uid'] < 2) {print '<a class="navbar" href="' . $_CONF['site_url'] . '/users.php?mode=new">Register Now</a>';} else {print '<a class="navbar" href="' . $_CONF['site_url'] . '/usersettings.php?mode=edit">Edit Profile</a>';}?> Enjoy! Sam |
|||||
|
||||||
| Anonymous: Mrittika |
|
|||||
|
|
long live samstone ! thanks a lot!
|
|||||
|
||||||
| Content generated in: 0.91 seconds |
|
|
|