TinyPortal

Development => Support => Topic started by: Hobox on June 02, 2007, 07:31:29 PM

Title: menu button again, but active?
Post by: Hobox on June 02, 2007, 07:31:29 PM
Followed this http://www.tinyportal.net/index.php?topic=9919 and it worked great, but how do I make the button active as well?

I use coppermine with SMF 112 an TP 098 and the problem seems to be that the link to the gallery is index.php?page=6 instead of index.php?action=gallery because I use the link to an article to keep it inside the portal.


Can I change this to something to resolve this?

if ($context['current_action'] == 'gallery')
$current_action = 'gallery';

Title: Re: menu button again, but active?
Post by: Hobox on June 02, 2007, 07:51:44 PM
Just figured it out by my self

   if (isset($_GET['page']))
      $current_action = 'gallery';
Title: Re: menu button again, but active?
Post by: IchBin on June 02, 2007, 09:18:23 PM
Quote from: Hobox on June 02, 2007, 07:51:44 PM
Just figured it out by my self

   if (isset($_GET['page']))
      $current_action = 'gallery';


This will make the gallery button highlight on any article. You'll need to add a bit more if you want it to just be that specific article with your gallery.

if (isset($_GET['page']) && $_GET['page'] == 6)
    $current_action = 'gallery';