SimplePortal

Support => English Support => Topic started by: raffo on February 19, 2011, 02:47:44 AM

Title: Pages and tabs of SMF
Post by: raffo on February 19, 2011, 02:47:44 AM
I added a page with SP.

Then i create a tab in SMF to be able to call this page from the horizontal menu, just near homepage and forum.

But i noticed a thing:
- after i click one of the tab (one of the default ones: i mean, search, profile, forum), it becomes highlighted when my browser loads it;
- if i click the tab i created for the "page", it doesn't become highlighted, and the only tab highlighted remains the "homepage" one.

Do you know how to solve my problem?

Thanks!
Title: Re: Pages and tabs of SMF
Post by: Neo_TE on February 19, 2011, 09:14:52 AM
Hey dude

Did you use any of the "custom button" mods to create a new tab in the main menu ?

If so then the problem is with the mod.

It has nothing to do with Simpleportal.

I also have installed 6 Custom buttons / tabs and menu's (http://custom.simplemachines.org/mods/index.php?mod=2657) and I also have that problem.  Its a bug that the mod author have to update it.
Title: Re: Pages and tabs of SMF
Post by: raffo on February 19, 2011, 09:45:19 AM
Hi.

No, i just added a tab following this (http://www.simplemachines.org/community/index.php?topic=261880.0).
Title: Re: Pages and tabs of SMF
Post by: Neo_TE on February 19, 2011, 11:05:27 AM
Then you should start a topic in SMF community. :)

I believe arantor will be able to help you.
Title: Re: Pages and tabs of SMF
Post by: AngelinaBelle on February 19, 2011, 01:19:29 PM
Please let us know how things work out with that mod.
Thanks!
Title: Re: Pages and tabs of SMF
Post by: raffo on February 19, 2011, 02:17:48 PM
thanks :O
Title: Re: Pages and tabs of SMF
Post by: AngelinaBelle on February 21, 2011, 09:23:32 AM
Did you fix your problem?
Title: Re: Pages and tabs of SMF
Post by: raffo on February 21, 2011, 09:30:37 AM
Nope.

I just wrote a message in SMF forum and i'm waiting for the help of someone who can "play" with the code... :)
http://www.simplemachines.org/community/index.php?topic=423216.0
Title: Re: Pages and tabs of SMF
Post by: AngelinaBelle on February 21, 2011, 11:49:47 AM
The advice from Miss All Sunday is the correct one.
She is good.
Title: Re: Pages and tabs of SMF
Post by: raffo on February 21, 2011, 01:19:40 PM
This was the solution: http://www.simplemachines.org/community/index.php?topic=423216.msg2962992#msg2962992
Code: [Select]
to highlight that particular page on your Subs.php ifle find:


$current_action = 'login';
   elseif ($context['current_action'] == 'groups' && $context['allow_moderation_center'])
      $current_action = 'moderate';


below add:

elseif ($_REQUEST['page'] == 'chisiamo')
      $current_action = 'chisiamo';
SimplePortal 2.3.8 © 2008-2024, SimplePortal