Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: tohtori - tammikuu 27, 2009, 06:38:48 AP

Otsikko: SSI front page, menubar problem
Kirjoitti: tohtori - tammikuu 27, 2009, 06:38:48 AP
I have a small problem, which I hope someone might help me. I have a front page /index.php for my forum /yabbse/index.php. Now I'm using SSI to implement the front page with my forum. Since my forum uses multiple themes i'm using following codes to generate the top.

echo template_html_above();
echo template_body_above();


Now my problem is that with default theme the menubar has one active tab. How I could change this show the Frontpage button as active instead of Home/Forum.

Any suggestions would be nice.
Otsikko: Re: SSI front page, menubar problem
Kirjoitti: H - tammikuu 27, 2009, 04:40:47 IP
You can probably set the current tab with $context. I'm haven't got the context variables handy right now, although someone might be able to give you a more specific answer.

On this forum there is a tutorial for SSI integration using layers. This may be better for what you want to do, although I don't know if it has been updated for SMF 2.x yet :)
Otsikko: Re: SSI front page, menubar problem
Kirjoitti: tohtori - tammikuu 27, 2009, 06:42:33 IP
I think the version 1.X.X used following code for defining active menutab
    $context['section'] = $section;

But I think this have changed somehow and just can't figure it out how to do it with 2.0B4
Otsikko: Re: SSI front page, menubar problem
Kirjoitti: tohtori - helmikuu 03, 2009, 05:44:06 AP
bumbing up. Is there anyone who would know how this have changed in 2.0?
Otsikko: Re: SSI front page, menubar problem
Kirjoitti: Rumbaar - helmikuu 12, 2009, 06:03:24 IP
I'm sure it's actually:
$context['current_action'] == '';
But I'm not sure if it's based on the action array present in the index.php, so externally or not present there not sure how the forum will handle this.