2013-05-04, 10:45 AM
2013-05-04, 10:57 AM
2013-05-04, 06:10 PM
There is also another solution, quicker and better (don't need to add stuff to body of every page) but needs plugin, which is useful for more things.
1. Get Template Conditionals http://mybbhacks.zingaburga.com/showthread.php?tid=464
2. Change your links from for example:
Or if the link is more advanced (like help documents):
Then put active class to global.css and you're done.
1. Get Template Conditionals http://mybbhacks.zingaburga.com/showthread.php?tid=464
2. Change your links from for example:
<a href="portal.php">Portal</a>
To:<a <if THIS_SCRIPT == "portal.php" then>class="active"</if> href="portal.php">Portal</a>
Or if the link is more advanced (like help documents):
<a href="misc.php?action=help">Help</a>
To:<a <if THIS_SCRIPT == "misc.php" && $GLOBALS['mybb']->input['action'] == "help" then>class="active"</if> href="misc.php?action=help">Help</a>
Then put active class to global.css and you're done.