SSI help - current action

Started by ɔɔɔɔɔɔuɥoɾ, June 02, 2011, 11:21:11 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

Hi everybody.

I have finally constructed my SSI page and its starting to look good now, I have one feature I want to add but its proving to be a little difficult for me.

Okay, So I used the ssi menu bar function, it works perfectly.

I added a home button before the forum button, it link is "../index.php

Since domain.com/index.php is my SSI page and domain.com/forum/index.php is the forum.

The link works and does take me to the SSI page from the forum, what I want to add is the current action part, so when I'm on the SSI page the home button is the selected one.

Thanks for any tips in advanced :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

Let me add I'm will to pay someone a little something for their services...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

All Colours Sam

since theres no  parameter such as get, you can't use something like this:


if($_GET['my_page'])
   $current_action = 'home';    // where "home"  is the name of your button.


instead you may have to use somthing like   $_SERVER["REQUEST_URI"]   to make the if statement:


if($_SERVER["REQUEST_URI"] ==  'http://mysite.com')
     $current_action = 'home';

Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

ɔɔɔɔɔɔuɥoɾ

Thanks I will certainly try that, I will reply back see how it goes :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: