TinyPortal

Development => Support => Topic started by: elliel on February 01, 2007, 10:43:56 PM

Title: how to change name of 'home' tab on tiny portal
Post by: elliel on February 01, 2007, 10:43:56 PM
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
Title: Re: how to change name of 'home' tab on tiny portal
Post by: JPDeni on February 01, 2007, 11:02:21 PM
Change


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


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

Title: Re: how to change name of 'home' tab on tiny portal
Post by: elliel on February 01, 2007, 11:34:10 PM
whoops, so I dont change anything in the index template at all? wow I'm glad I asked - thanks
Title: Re: how to change name of 'home' tab on tiny portal
Post by: elliel on February 01, 2007, 11:37:33 PM
hmm ok I changed it in lang file but it hasnt changed anything?
Title: Re: how to change name of 'home' tab on tiny portal
Post by: JPDeni on February 02, 2007, 01:07:45 AM
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.
Title: Re: how to change name of 'home' tab on tiny portal
Post by: elliel on February 07, 2007, 11:10:41 PM
cool, thanks that did it :)