Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:45 am EST
Geeklog Forums
[log out ] in the same top space by the side of welcome so and so
Mrittika
Anonymous
can it be done ? help please
12
11
Quote
Status: offline
samstone
Forum User
Full Member
Registered: 09/29/02
Posts: 820
The following code will put a [login] where you wanted it and changes to [logout] after logged in.
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.
else {print '<a class="navbar" href="' . $_CONF['site_url'] . '/usersettings.php?mode=edit">Edit Profile</a>';}?>
Enjoy!
Sam
Text 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.
Text 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
10
9
Quote
Mrittika
Anonymous
long live samstone ! thanks a lot!
11
7
Quote
All times are EST. The time is now 08:45 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content