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: 196,147
  • Total Topics: 21,347
  • Online today: 664
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 490
  • Total: 490

how to change name of 'home' tab on tiny portal

Started by elliel, February 01, 2007, 10:43:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elliel

hi

I would like my 'home' tab on tiny portal to say 'welcome' instead of 'home'

I looked at the index template but don't know which instances of the word 'home' I should change as I'm not a coder and don't know the implications.

here is the part of the index template I think I have to change:

Quote// Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

if($settings['TPortal_front_type']!='boardindex')
   // Show the [forum] button.

can someone please tell me which of all these 'homes' I have to change to get the tab to say welcome but still take you to the tiny portal home page?

~thanks

JPDeni

Change


$txt['tp-home'] = 'Home';


in Themes/default/languages/TPortal.english.php


elliel

whoops, so I dont change anything in the index template at all? wow I'm glad I asked - thanks

elliel

hmm ok I changed it in lang file but it hasnt changed anything?

JPDeni

Try changing


$txt[103] = 'Home';


in

in Themes/default/languages/index.english.php

Sorry. I didn't look at the code and assumed that it was a TP file that was being used.


This website is proudly hosted on Crocweb Cloud Website Hosting.