TinyPortal

Development => Support => Topic started by: ogmios on April 26, 2012, 07:26:02 PM

Title: GO DIRECTLY TO FORUM INDEX option does not remove FORUM button
Post by: ogmios on April 26, 2012, 07:26:02 PM
i searched and searched and couldn't find anyone needing the same resolution i need...

i recently upgraded to smf 2.0 and installed tinyportal and while everything is fine and working good, i have one 'quirk' that i can't seem to figure out... i can't find any information on it as well...

when running smf 1.1.x with tinyportal 0.9.8, i would check mark 'go directly to forum index' and this in turn would remove the FORUM button and visitors would be taken directly to the forum index as the home page... this is how i like it :)

after installing smf 2.0 and tinyportal 1.0, i incorporated the same settings, but the FORUM button does not get removed...

i can select the option to show the tinyportal panels on the frontpage, but then i am still stuck with the HOME button and FORUM button both showing... i would like to get it to work as it did with the older version where once i select 'go directly to forum index', it will remove the FORUM button...

Link to my OLD installation working how i like: http://www.beatnip.org/waveforum
Link to my NEW installation where both buttons show: http://www.beatnip.org/waveforum2
Default Forum Language: english
Theme name and version: old: default, new: default/curve
Browser Name and Version: Browser name/version here

Title: Re: GO DIRECTLY TO FORUM INDEX option does not remove FORUM button
Post by: IchBin on April 27, 2012, 07:26:37 PM
In Subs.php find this section:

'forum' => array(
                                'title' => isset($txt['tp-forum']) ? $txt['tp-forum'] : 'Forum',
                                'href' => $scripturl . '?action=forum',
                                'show' => true,


Change with this:
'forum' => array(
                                'title' => isset($txt['tp-forum']) ? $txt['tp-forum'] : 'Forum',
                                'href' => $scripturl . '?action=forum',
                                'show' => ($context['TPortal']['front_type'] != 'boardindex') ? true : false,
Title: Re: GO DIRECTLY TO FORUM INDEX option does not remove FORUM button
Post by: ogmios on April 28, 2012, 07:13:06 PM
bee-yoo-tee-full  O0 --- many thanks IchBin™!

(solved.)