Forums

cookies problem i think (9 posts)

  1. m3tsys
    Member
    Posted 1 year ago #

    Hello,

    I've installed wordpress 3.0.1 on my site (on a subdirectory)

    http://example.com/blog/

    i have a simple php page

    http://example.com/about-us/

    i've added <?php include 'blog/wp-blog-header.php'; ?> in the header of this page and <?php wp_loginout(); ?> somewhere in the page...

    this code display's Log in all the time

    how can i resolve this problem?

  2. tom_taylor_85
    Member
    Posted 1 year ago #

    you want the login/out to disapear after you are logged in?

  3. m3tsys
    Member
    Posted 1 year ago #

    No, i want it to remain there, but change to Log out when i'm logged in and Log in when i'm logged out

    Excuse me for my bad english, but i'm not a native english speaker.

    Thanks in advance.

  4. tom_taylor_85
    Member
    Posted 1 year ago #

    I do not use this code, so I am a little confused. Can I ask this first...if you log in from the side bar, does it work?

    If it does work, can you click a button ON THE SIDE BAR to log out?

  5. m3tsys
    Member
    Posted 1 year ago #

    yes it works (when i'm on /blog/ ) but you need to have in mind that

    http://example.com/blog/ is an wordpress instalation

    and

    http://example.com/about-us/ a simple php file with

    that wp header include and that wp login code.

  6. tom_taylor_85
    Member
    Posted 1 year ago #

    would you mind sharing your site URL?

  7. m3tsys
    Member
    Posted 1 year ago #

    PS: <?php wp_loginout(); ?> is the code from default sidebar.php

  8. m3tsys
    Member
    Posted 1 year ago #

    the site is not online, it's on localhost (it's not done yet, i am still working on it.)

  9. m3tsys
    Member
    Posted 1 year ago #

    can anybody help me?

Topic Closed

This topic has been closed to new replies.

About this Topic