TinyPortal
Development => Feedback => Topic started by: SADISM on December 16, 2005, 01:09:49 AM
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
No, its correct..but the problem is different themes will perhaps have different paddings etc. This is for default theme right?
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.