TinyPortal

Development => Support => Topic started by: Future on April 15, 2008, 12:03:11 AM

Title: New link button question
Post by: Future on April 15, 2008, 12:03:11 AM
 I think I'm missing the correct answer here after searching.

What I'm trying to do is get a tabbed button such as the Home, Forum, Admin, etc.. with a specified name. In this case it will be the website name linked to the main website home page.

Now so far I have 2 Home tabs, the first directs to the main website page and the 2nd directs to the forum home. These are working fine, However... I know it's the $txt[103] that is holding me down here, I simply can't figure out how to properly write this.

Here is how I have the code right now

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

I either need it to read as Main or the website name, what am I missing here :-\
Title: Re: New link button question
Post by: IchBin on April 15, 2008, 06:21:09 PM
Replace ' , $txt[103] , ' with your name that you need.
Title: Re: New link button question
Post by: Future on April 16, 2008, 12:58:05 AM
Yea, I did that last night when I figured out I was trying to edit the wrong theme's :2funny:

Thank you for the reply
Title: Re: New link button question
Post by: G6Cad on April 16, 2008, 08:25:57 AM
Lets put the Solved icon to this topic then :)