Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortololo
    • CommentTimeMay 21st 2008
     permalink
    I am using css+html scripts to generate a navmenu for my forum.The problem is that all buttons are visible all the time..For example,the LOGOUT option is visible even when i am not logged in.How do i show different buttons before and after login?Any ideas?Thanks
    •  
      CommentAuthoreltiare
    • CommentTimeMay 22nd 2008 edited
     permalink
    What forum do you have? Usually with the forum software it has a variable that indicates whether the user is logged in. If your site uses PHP:

    <?php if $logged_in { ?>
    <!-- HTML for logging out -->
    <?php } else { ?>
    <!-- HTML for logging in -->
    <?php } ?>
    • CommentAuthortololo
    • CommentTimeMay 22nd 2008 edited
     permalink
    I am using css+html script to generate a navmenu because php script is not supported from my forum...Any ideas?
  1.  permalink
    If PHP isn't supported, what is? It has to run on something, doesn't it? You can't dynamically declare a state in HTML or CSS, so you need to be a bit more specific. Which forum have you set up? phpBB, Vanilla?
    • CommentAuthortololo
    • CommentTimeMay 22nd 2008 edited
     permalink
    I have set up a phpBB free hosting forum...php script isn't supported for security reasons...I can use html-java sripts...
  2.  permalink
    OK, so perhaps it's a problem with phpBB, or have you put in the logout option yourself?

    This is what your log in/log out link should look like:

    <h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>


    Did you by any chance mistakenly remove some of the original phpBB code while designing the navigation?
Add your comments
    Username Password
  • Format comments as (Help)