1 (edited by f3nixxx 2008-06-05 15:51)

Topic: Login link missing

The login link is missing from Nav Bar.  I have not made any changes to the Nav Bar except for renaming the "Index" and "Rules".  Thanks for your help

function generate_navlinks()
{
    global $pun_config, $lang_common, $pun_user;

    // Index and Userlist should always be displayed
    $links[] = '<li id="navindex"><a href="index.php">Forum Home</a>';
    //$links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

    if ($pun_config['o_rules'] == '1')
        $links[] = '<li id="navrules"><a href="misc.php?action=rules">Forum Rules</a>';

    if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

        $links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="navlogin"><a href="login.php">'.$lang_comomon['Login'].'</a>';

        $info = $lang_common['Not logged in'];
    }

When any user is logged in the "Logout" link appears.

2

Re: Login link missing

Post the rest of the code from that function.