Posted on: 07/23/04 01:15am
By: Anonymous (Crissy)
Hello the login logout link on the http://powerline5.com/newsletter/index.php top left is not working and appears to have a double link can you tell me how to fix this? I'm sure it's very simple, but I can not find the .php to fix it.
Also in the themes I am using the gray blue one and it appears on mozilla, but not Explorer is it appearing on your side? I did change it in the config.php but only the old appears until after I login.
Thanks,
Crissy
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 01:35am
By: Anonymous (Crissy)
I fixed the theme it was that explorer 6 didn't like the _ or ! in their title of the theme.
The login and logout I still need help with.
Thanks,
Crissy
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 02:11am
By: Dirk
[QUOTE BY= Crissy] Hello the login logout link on the http://powerline5.com/newsletter/index.php top left is not working and appears to have a double link can you tell me how to fix this?[/QUOTE]
That seems to be a problem of the theme you're using. Check that theme's header.thtml.
bye, Dirk
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 03:34am
By: Anonymous (Crissy)
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 04:05am
By: Anonymous (Crissy)
<td width="65%" height="28" class="welcomeblock" valign="middle" align="left"><div align="center">
<?php
if ($_USER['uid'] > 1) {
print '<a href="' . $_CONF['site_url'] . '&#123;site_url&#125;/users.php?mode=logout"><b>Logout</b></a>';
} else {
print '<a href="' . $_CONF['site_url'] .
'&#123;site_url&#125;/users.php?mode=login"><b>Login</b></a>';
}
?>
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 04:06am
By: Anonymous (Crissy)
The first reply didn't have it all so I had to copy it in text mode to the second one.
[QUOTE BY= Crissy] <td width="65%" height="28" class="welcomeblock" valign="middle" align="left"><div align="center">
<?php
if ($_USER['uid'] > 1) {
print '<a href="' . $_CONF['site_url'] . '&#123;site_url&#125;/users.php?mode=logout"><b>Logout</b></a>';
} else {
print '<a href="' . $_CONF['site_url'] .
'&#123;site_url&#125;/users.php?mode=login"><b>Login</b></a>';
}
?>[/QUOTE]
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 02:03pm
By: Dirk
Remove the {site_url} (both of them) from the piece oc code you posted.
Btw, the forum's CODE tag (available as a button when writing a forum post) is exactly for when you need to post a piece of code - it makes sure all those special characters are kept.
bye, Dirk
Login and Logout issue as well as a theme issue
Posted on: 07/23/04 08:32pm
By: Crissy
Cool thanks. It's fixed
Thanks,
Crissy
Re: Login and Logout issue as well as a theme issue
Posted on: 06/03/15 06:13pm
By: koalasoft
In my themplate (header.thtml), the following code template is used to display the user menu:
Quote by: AnonymousBelow is all I could find in the header.thtml for login, logout what do you recommend?
if ($_USER['uid'] > 1) {
print '<a href="' . $_CONF['site_url'] . '{site_url}/users.php?mode=logout">Logout</a>';
} else {
print '<a />
'{site_url}/users.php?mode=login">Login</a>';
}
?>
That way I can do that in case the user-administrator type (or the administrators group), it can also show other choice but the menu, such as a shortcut to http://mysite.com/admin
Thank's