TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 135
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 124
  • Total: 125
  • @rjen

menu button again, but active?

Started by Hobox, June 02, 2007, 07:31:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hobox

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';


Hobox

Just figured it out by my self

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

IchBin

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';

This website is proudly hosted on Crocweb Cloud Website Hosting.