Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2019-10-08 20:40:04

Peeteris
Member
Registered: 2019-10-06
Posts: 10

Location of 'pun_active_page' or how to make added navbar links glow

Hi there!
I've changed the header code (see below) a bit and want that second forums entry to ''light'' up as every other entry on navbar.
I guess I need to find the root of 'pun_active_page' and add a line there so it recognizes 'forums', but where to find it?
Or maybe it should be fixed in an another way?

// Index should always be displayed
$links[] = '<li id="navindex"'.((PUN_ACTIVE_PAGE == 'index') ? ' class="isactive"' : '').'><a href="/">'.$lang_common['Index'].'</a></li>';
	
$links[] = '<li id="navforums"'.((PUN_ACTIVE_PAGE == 'forums') ? ' class="isactive"' : '').'><a href="forums.php">'.$lang_common['Forums'].'</a></li>';

if ($pun_user['g_read_board'] == '1' && $pun_user['g_view_users'] == '1')
	$links[] = '<li id="navuserlist"'.((PUN_ACTIVE_PAGE == 'userlist') ? ' class="isactive"' : '').'><a href="userlist.php">'.$lang_common['User list'].'</a></li>';

if ($pun_config['o_rules'] == '1' && (!$pun_user['is_guest'] || $pun_user['g_read_board'] == '1' || $pun_config['o_regs_allow'] == '1'))
	$links[] = '<li id="navrules"'.((PUN_ACTIVE_PAGE == 'rules') ? ' class="isactive"' : '').'><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a></li>';

Thank you!

Offline

#2 2019-10-13 21:55:30

Peeteris
Member
Registered: 2019-10-06
Posts: 10

Re: Location of 'pun_active_page' or how to make added navbar links glow

I mean this:
Bez-nosaukuma.png
I've chosen 2nd navbar option (which I've added) - Forums
But in this case 1st option - Index, is still showing up as chosen.

Offline

Board footer

Powered by FluxBB