SimplePortal

Support => English Support => Topic started by: codebirth on November 09, 2008, 10:56:47 AM

Title: Home section highlight
Post by: codebirth on November 09, 2008, 10:56:47 AM
Hello!

I have installed SimplePortal Version Classic 2.0.5 Stable in a fresh install of SMF 2.0 Beta 4 and everything seems to be ok, but I have a problem with the section highlight in the nav bar. I attach a image of this problem.

When I am in the Home section, the nav bar highlights the word Forum instead of Home. How can I fix that?  :scared-blue:

Any help would be appreciated  ;)
Title: Re: Home section highlight
Post by: codebirth on November 10, 2008, 03:50:27 AM
Can anyone tell me if this is a bug please?
Title: Re: Home section highlight
Post by: Manu on November 10, 2008, 04:18:51 AM
I'm not sure, but I think there is a code missing.
You installed it manual to your theme, I'm right?

Please check if the following codes are there:
Find
Code: [Select]
$current_action = 'search';
Replace with
Code: [Select]
$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';

And please check if this is there too:

Find
Code: [Select]
, 'login', 'help', 'pm'Replace with
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin'
Maybe the developers of the Portal can take a look of what I wrote.  ;)
Title: Re: Home section highlight
Post by: Nathaniel on November 10, 2008, 04:35:04 AM
@codebirth,
Not sure if thats a bug. It works fine in the default theme, and should work for all custom themes because its SMF 2 Beta. Any chance you could post a copy of your '/Themes/{themename}/index.template.php' and 'Subs.php' files as attachments (see additional options when you post) so that I could have a look?

@Manu,
Those are the edits for SMF 1.1.x.
Title: Re: Home section highlight
Post by: codebirth on November 10, 2008, 05:24:07 AM
Here are both files.

Thanks for your help :)

BTW: I installed through the Packages section, not manual.
Title: Re: Home section highlight
Post by: [SiNaN] on November 10, 2008, 05:56:48 AM
Is it always like that? Or just happens when you are viewing the second page of articles on portal?

Can we see your forum? You pm me if you don't want to post it public.
Title: Re: Home section highlight
Post by: codebirth on November 10, 2008, 06:13:01 AM
Sorry the forum is not online yet, I'm working on local with WAMP server.

This happens always. I tried few minutes ago to do another fresh intall with SMF 2.0 Beta 4 + DS-Natural theme + Simple Portal and when I enable SimplePortal without even adding any block or article it's already highlighting FORUM when i go to HOME.
Title: Re: Home section highlight
Post by: [SiNaN] on November 10, 2008, 06:14:23 AM
Can you try the suggested fix here?:

http://simpleportal.net/index.php?topic=788.0
Title: Re: Home section highlight
Post by: codebirth on November 10, 2008, 06:23:22 AM
Can you try the suggested fix here?:

http://simpleportal.net/index.php?topic=788.0

Thanks, that fixed the problem :D
Title: Re: Home section highlight
Post by: [SiNaN] on November 10, 2008, 06:39:09 AM
Okay. I guess XAMMP appended something to query_sting. Anyway, note this change, as you may need to take it back before upgrading the mod to next version.
Title: Re: Home section highlight
Post by: codebirth on November 10, 2008, 06:56:40 AM
Yes, my query strings look like this in FORUM section

Code: [Select]
index.php?PHPSESSID=1cc3d85047b3a7c4ed5bbac398cd9545&action=forum
and like this in HOME section

Code: [Select]
index.php?PHPSESSID=1cc3d85047b3a7c4ed5bbac398cd9545&
Is that PHPSESSID added by WAMP server?  :o


Edit: Hmmm it's strange, IE is not appending anything to the query string and the active button works perfect without the fix you posted. The PHPSESSID is being appended only with Firefox...  :0
Title: Re: Home section highlight
Post by: [SiNaN] on November 10, 2008, 07:08:31 AM
It is related to the cookies. You might have some restrictions for cookies in IE.
Title: Re: Home section highlight
Post by: codebirth on November 10, 2008, 07:13:53 AM
Arghh you are right, I had the cookies blocked for localhost domain in Firefox. Now it works perfect  8)

Thanks again SiNaN!  :applause:
Title: Re: Home section highlight
Post by: [SiNaN] on November 10, 2008, 07:14:17 AM
You're welcome. ;)
SimplePortal 2.3.8 © 2008-2024, SimplePortal