login / logout doesn't work? login / logout doesn't work?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

login / logout doesn't work?

Started by Deirdre, May 05, 2004, 09:04:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Deirdre

uh.. still one problem:

I can't logout! it says: goodbye Deirdre... but doesn't do anything.

and my testmember can't login! Just the notice that login is not possible.

here the code from theme.php, I thought perhaps the error is there:


<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout --><br />
<!-- BEGIN album_list -->

Casper

Sounds like a cookie problem.  Try deleting your cookies.

Can you give a test user account and password (not admin).
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

uh... problem: a friend of mine who I told to create an account can't find a register-link. Don't know wether she's too stupid or if there's a bug in my template...

http://www.deirdre-design.de/album/
this is the link.. perhaps you can create an account and test?


Casper

Hi Dierdre,

First, this thread is about you being unable to log off. Please confirm if this is solved.  Then, please do not ask new questions about different problems on an existing thread, even if started by you.

Your friend cannot see the register link, because it isn't there.  I can't see it either.  Looking at your code, it is missing.

Open your theme.php, and make sure this code is there;

<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

Quote from: Deirdre on May 05, 2004, 09:04:50 PM
here the code from theme.php, I thought perhaps the error is there:


<!-- BEGIN register -->
                       <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
<!-- END register -->


it is there. And still can't logout.

Casper

Well it's not showing when I visit the site.  Please post here this full section of your code, in theme.php;
// HTML template for main menu
$template_main_menu = <<<EOT


It seems to me you have over modified your theme.php
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

only the first section?

// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu" align="right">
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
<!-- END my_gallery -->
<!-- BEGIN my_profile -->
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a>
<!-- END my_profile -->
<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a>
<!-- END upload_pic -->
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a>
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->

                        <br />
                        <!-- <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> :: -->
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> <br />
                        <a href="{FAV_TGT}">{FAV_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
                </span>
EOT;
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT


I thought I could perhaps copy it from a different layout, but it doesn't change anything :(

Casper

Suddenly it hit me  ::)

You almost certainly have 'Allow new user registrations' set to NO, in config.

As for your unable tolog out, please give us a link and test user account (not admin).
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

*hit head against wall*

ok... I am so stupid.

Testuser is: Casper PW: ghost

http://www.deirdre-design.de/album

Casper

Ok,

I was able to log in and out as normal, so I still think this is a cookie issue.  There is one other possible cause, that is that your computer internal clock is wrong, but this normally stops you logging in, not out.  Try making sure that is correct, delete all cookies related to your site, and try again.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Deirdre

Hi there,

well, I thought logging in  and out was the same problem. But as my users now can create an own account, everything is fine :)
I won't die if I can't logout.´

Thank you very very much :)

Joachim Müller

if you're logged in as admin, go to coppermine config and change the cookie name - this will log you out for sure (the disadvantage: all your users will have to re-enter their usernames and passwords on their next visit, the "remember me" setting will not work for them once).

GauGau