TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 142
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 70
  • Total: 70

Forum button order

Started by zsolteey, November 24, 2015, 08:19:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zsolteey

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.


zsolteey

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.