MyBB Community Forums

Full Version: set class=active to active link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I've quite some strong problems. At the top of the header.tpl I've a menu like

<div id = "top_menu">
    <div class = "mnu_inside">
        <ul id = "tm_list">
            <li class = ""><a href = "{$mybb->settings['bburl']}/index.php">Home</a></li>

            <li class = "sep"> </li>

            <li class = ""><a href = "{$mybb->settings['bburl']}/project.php">Über dieses Projekt</a></li>

            <li class = "sep"> </li>

            <li class = ""><a href = "{$mybb->settings['bburl']}/contact.php">Kontaktformular</a></li>

            <li class = "sep"> </li>

No I would like to set a class='active to the active link ... for example if you click project.php this link should have the class active. But I've no idea to handle this.

Thanks for some instructions
Mad4Milk