my code is much different but here is a mod ive been playing with.
in account.php show when a link is active - had a quick look at v3 account.php navmenu() and i moved it to functions.php so i can use it on seedbonus, messages etc you could also use it on the header navbar
highlight link to show which is active
so for just example on account.php
above
add
then edit navmenu() function
find
replace
now one button should be different colour just add for each link placing the href url inside the activelink() in example above i use account.php
example of the message link in navbarfunction
If it doesn't work try remove the .php example activelink('mailbox')
in account.php show when a link is active - had a quick look at v3 account.php navmenu() and i moved it to functions.php so i can use it on seedbonus, messages etc you could also use it on the header navbar
highlight link to show which is active
so for just example on account.php
above
function navmenu(){add
// Active Link
function activelink($page)
{
$active = $_GET['url'] == $page ? '#fff' : '#000';
return $active;
}then edit navmenu() function
find
<?php print("<a href='account.php'><b>".T_("YOUR_PROFILE")."</b></a>");?>replace
<?php print("<a href='account.php'><font color=". activelink('account.php')."><b>".T_("YOUR_PROFILE")."</b></font></a>"); ?>;now one button should be different colour just add for each link placing the href url inside the activelink() in example above i use account.php
example of the message link in navbarfunction
<?php print("<a href='mailbox.php'><font color=". activelink('mailbox.php')."><b>".T_("YOUR_MESSAGES")."</b></font></a>");?>If it doesn't work try remove the .php example activelink('mailbox')
Last edited by M-jay
on 2021-12-21 08:18:22
on 2021-12-21 08:18:22