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: 100
  • Total: 100

New link button question

Started by Future, April 15, 2008, 12:03:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Future

 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] , '
            </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 :-\

IchBin

Replace ' , $txt[103] , ' with your name that you need.

Future

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

G6Cad

Lets put the Solved icon to this topic then :)

This website is proudly hosted on Crocweb Cloud Website Hosting.