TinyPortal

Development => Support => Topic started by: zsolteey on November 24, 2015, 08:19:24 AM

Title: Forum button order
Post by: zsolteey on November 24, 2015, 08:19:24 AM
Hi!

I have an SMF 2.0.11 and TP 1.1 website. I created custom buttons in the SMF menu as you can see in the attached screenshot. I used this for help: www.simplemachines.org/community/?topic=261880.0

In my subs.php these button are defined in this order:
Főoldal (it'h home in English)
Hírek (News)
Tudástár (Knowledbe Base)
etc.etc.

As I can see the Fórum (Forum) button is defined somewhere else.

I want to change the order to Főoldal Hírek Fórum Tudástár.

How/where can I change the Forum button location?

Thank you!

Sincerely,
Zsolteey.

Title: Re: Forum button order
Post by: zsolteey on November 24, 2015, 09:38:04 AM
I found it:

In TPAssimilate.php:

if($but == '[b]home[/b]')
{
$new_buttons['forum'] = array(
'title' => isset($txt['tp-forum']) ? $txt['tp-forum'] : 'Forum',
'href' => $scripturl . '?action=forum',
'show' => ($context['TPortal']['front_type'] != 'boardindex') ? true : false,
);
}


Replace "home" to the name of button what after you want the Forum button.