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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,991
  • Total Topics: 21,323
  • Online today: 545
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 357
  • Total: 357

[Solved] How to add a top buttons??

Started by cod4guy, April 18, 2008, 03:35:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cod4guy

I installed a Template that works with TP 1.0.5 and it said I have to add a Forum Button. Can someone give me the code to put in the php to do it? Also, can you tell me what PHP I have to put it into.

My Website

Template Source

IchBin

Shouldn't you ask where you got the template to show you how to put a button in their template?

Lord Anubis

#2
Every template makes the button a different way...

Some use images others use tabs, they are all unique

WHOOPS, LOL Ich that is what I was hinting at

cod4guy

QuoteShouldn't you ask where you got the template to show you how to put a button in their template?

I know yall know how to do it and I like this site. Can yall plz help...

QuoteEvery template makes the button a different way...

Some use images others use tabs, they are all unique

I gave you the source.


cod4guy

Ok. I did the tutorial and it did not work out to well.



Someone plz help....

cod4guy

I put in:

// Show the [forum] button.

   echo ($current_action == 'Forums' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
               Forums
            </td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

fangweile

#7
the code must be similar to this:

// Show the [forum] buttons.
echo '   <a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum Index" style="margin: 2px 0;" border="0" />' : 'Forum Index'), '</a>', $context['menu_separator'];

}



insert this code after the // show [home] buttons

G6Cad

Non of the codes will work as it renders wrongly in the post when you dont use the code tags.
You MUST use codetags when posting up code in the forum posts.

IchBin

Make sure you read smoky's link cod4guy. At the very bottom it states that the code is for the default theme. Other themes will be similar, but not the same in some cases. You'll need to copy one of the other buttons thats already in your template and then make the necessary changes.

This website is proudly hosted on Crocweb Cloud Website Hosting.