Topic: change meny


I have a custom loggin, on the first main page ( custom build page )...
based on punbb

If I whant the meny to change to another meny.

like first meny
<div>meny 1</div>

then when you login i whant to show meny 2
<div>meny 2</div>

Im using this script.

// Define the path to the forum root
define('FORUM_ROOT', './forum/');
require FORUM_ROOT.'include/common.php';
// Where will we go after login?
$forum_page['redirect_url'] = '';
$forum_page['form_action'] = forum_link($forum_url['login']);
$forum_page['hidden_fields'] = array(
    'form_sent'    => '<input type="hidden" name="form_sent" value="1" />',
    'redirect_url'    => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
    'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
<form method="post" action="<?php echo $forum_page['form_action'] ?>">
    <?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?>
    <input type="text" id="fld1" name="req_username" value="" />
    <br />
    <input type="password" id="fld2" name="req_password" value="" />
    <br />
    <input type="checkbox" id="fld3" name="save_pass" value="1" />
    <label for="fld3">Log me in automatically each time I visit.</label>
    <br />
    <input type="submit" name="login" value="Login" />


Re: change meny

Do you mean "menu" instead of "meny"? And "want", not "whant"? tongue

Use an if

if (!$forum_user['is_guest'])

Re: change meny


I mean Menu.

Im going to try to explane, but my english is not so good.

I use the login code from WIKI...

Login - forget password

And when i have login i whant to have:
Logged in as volvo_owner - Profile - Gallery