1

(2 replies, posted in PunBB 1.3 extensions)

            else if (FORUM_PAGE_SECTION == 'mods')
            {
                $forum_page['admin_submenu']['welcome'] = '<li class="'.((FORUM_PAGE == 'admin-welcome') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_welcome']).'">'.$lang_admin_common['Welcome'].'</a></li>';
            }
            $forum_page['admin_menu']['welcome'] = '<li class="'.((FORUM_PAGE_SECTION == 'mods') ? 'active' : 'normal').((empty($forum_page['admin_menu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_welcome']).'"><span>'.$lang_admin_common['Mods'].'</span></a></li>';

2

(2 replies, posted in PunBB 1.3 extensions)

I figured out how to make the name show on the panel, but when I click it, it goes back to the forums, instead of showing the subcategories of that panel.


If you dont get what Im talking about, go to the admin page and I need help with adding another page to:
Start | Settings | Users | Management | Extensions | Mods

I figured out how to add Mods, but the it doesnt go to the subsection called welcome

3

(1 replies, posted in PunBB 1.3 troubleshooting)

My site also has a main page, so I was wondering if anyone could help me with adding a login page to my main page so that the site and forums are connected. Iv been messing around with this forever and nothing works. Please help me as soon as possible.


Im using this code, but it doesnt keep you logged in, what do I need to add to this in order to make it a real login form?

<?php
 
// Define the path to the forum root
define('FORUM_ROOT', '');
require FORUM_ROOT.'include/common.php';
 
// Where will we go after login?
$forum_page['redirect_url'] = 'http://graphicdesign.netii.net/Home/site/Banner-List..php';
 
$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" ?>
 
    Username:
    <input type="text" id="fld1" name="req_username" value="" />
    <br />
 
    Password:
    <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" />
</form>