EzPortal - Portal Software for Forums

EzPortal Forums => Support => Topic started by: n1k on September 29, 2012, 11:35:24 pm

Title: Forum link doesn't stay highlighted if URL isn't index.php?action=forum
Post by: n1k on September 29, 2012, 11:35:24 pm
the Forum link in the menu bar doesn't stay highlighted if the URL isn't index.php?action=forum

the following URLs are part of the forum but the Home link becomes highlighted when they are used:

index.php?board=6.0
index.php?topic=50.0

try it on this site as an example:

http://www.ezportal.com/index.php?action=forum highlights the Forum link.
http://www.ezportal.com/support/ highlights the Home link even though it's part of the forum.
http://www.ezportal.com/support/adding-picture-or-videos/ this post highlights the Home link even though it's part of the forum.

how do i keep the Forum link highlighted when browsing index.php?board=6.0 and index.php?topic=50.0 ?
Title: Re: Forum link doesn't stay highlighted if URL isn't index.php?action=forum
Post by: EzPortal on October 01, 2012, 01:00:23 pm
You would need to add a check to the hightlight code if board or topic id are present in the url then do the hightlight.