Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Active Links
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2021-12-21 06:13:17
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
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 warn on 2021-12-21 08:18:22
2021-12-23 18:03:34
I like this idea...more fine tuning!
If It Ain't Dutch, It Ain't Much!!
2021-12-23 18:37:49
Added to Torrent page links, message page links in mine  :thumb will work in header navbar but not got that far yet
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728