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,993
  • Total Topics: 21,324
  • Online today: 278
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 317
  • Total: 317

Making linktree in forum and on frontpage match

Started by SADISM, December 16, 2005, 01:09:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SADISM

To me it seems like the linktrees between the forum and frontpages don't match, and because of this I went and changed a few things. Here is what I did if you want to check (I basically just used the introductin of the linktree to the forum in BoardIndex.template.php as an example):

In TPortal.template.php I did the following:

Found:

// show the linktree
theme_linktree();


Replaced:

// show the linktree
        echo '
<table width="100%" cellpadding="3" cellspacing="0">
        <tr>
                <td valign="bottom">', theme_linktree(), '</td>
     </tr></table>';


-----

Found:

echo '<div style="margin-top: 4px;">' , TPortal_sidebar('front') , '</div>';


Replaced:

echo '<div style="margin-bottom: 2ex;">' , TPortal_sidebar('front') , '</div>';


-----

Found:

<table cellspacing="0" cellpadding="0" width="100%" style="margin-top: 4px; margin-bottom: 4px;" border="0" ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="tborder"' : '' , '>


Replaced:

<table cellspacing="0" cellpadding="0" width="100%" style="margin-bottom: 8px;" border="0" ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="tborder"' : '' , '>


And those changes seem to make the linktrees match up, while keeping the basic look the same. Let me know if I unknowingly messed anything up  :o


bloc

No, its correct..but the problem is different themes will perhaps have different paddings etc. This is for default theme right?

SADISM

It works for some of the themes I'm using at the moment: Amber, Oxygen, and BlackTech. Doesn't work for Apollo. And yes, it also works for the default theme.

This website is proudly hosted on Crocweb Cloud Website Hosting.