İndex.template.phpyi açın

[code=bul] // Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
[/code]

[code=altına bunu ekle]<script language="JavaScript" type="text/javascript">< -- // -->< [CDATA[
var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';

function shrinkHeaderLeftbar(mode)
{';

// Guests don't have theme options
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '"';
echo '
document.getElementById("upshrinkLeftbar&quot.src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif"

document.getElementById("leftbarHeader&quot.style.display = mode ? "none" : "";

current_leftbar = mode;
}
// ]]></script>
<script language="JavaScript" type="text/javascript">< -- // -->< [CDATA[
var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

function shrinkHeaderRightbar(mode)
{';

// Guests don't have theme options
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '"';

echo '
document.getElementById("upshrinkRightbar&quo t.src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif"

document.getElementById("rightbarHeader&quot.style.display = mode ? "none" : "";

current_rightbar = mode;
}
// ]]></script>
[/code]

[code=bul]<body>';[/code]

[code=altına bunu ekle]// TinyPortal start
if($context['TPortal']['fixed_width'] =0)
echo '<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>' ;

// TinyPortal end[/code]

[code=bul]// display user name[/code]

[code=üstüne ekle]// TinyPortal
if($context['TPortal']['showtop']==1)
{
// TinyPortal end[/code]

[code=bul]echo '
</form>
</td>
</tr>
</table>
[/code]

[code=altına ekleyin]';
// TinyPortal
}
// end
echo '[/code]

[code=bul] // The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';[/code]

[code=bununla değiştir] // The main content should go here. A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';

// TinyPortal integrated bars
if($context['TPortal']['leftbar'])
{
echo '<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
<div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
TPortal_sidebar('left'
echo '</div></td>';

}

echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
if($context['TPortal']['centerbar'])
echo '<div>' , TPortal_sidebar('center&#039 , '</div>';[/code]

[code=bul]echo '
</div>';[/code]

[code=değiştirin]echo '</td>';

// TinyPortal integrated bars
if($context['TPortal']['rightbar']){
echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px; padding-left: 1ex;" valign="top" align="right">
<div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', ' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
TPortal_rightbar();
echo '</div></td>';
}

echo '</tr></table>';[/code]

[code=bul]echo '
</div>';[/code]

[code=değiştirin]echo '</td>';

// TinyPortal integrated bars
if($context['TPortal']['rightbar']){
echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px; padding-left: 1ex;" valign="top" align="right">
<div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', ' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
TPortal_rightbar();
echo '</div></td>';
}

echo '</tr></table>';[/code]

[code=bul] <td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>[/code]

[code=değiştir] <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
', theme_copyright(), ' <br />', tportal_version() , '
</td>[/code]

[code=bul]</body></html>';[/code]

[code=üstüne ekleyin]';
// TinyPortal
if($context['TPortal']['fixed_width'] =0)
echo '</td></tr></table>';
// end
echo '[/code]

[code=bul]if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm&#039))[/code]

[code=değiştirin] if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin&#039))[/code]

[code=bul] $current_action = 'search';[/code]

[code=altına ekleyin]if (isset($_GET['dl']))
$current_action = 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';[/code]

[code=bul] // Show the [help] button.[/code]

[code=üstüne ekleyin]if($settings['TPortal_front_type'] ='boardindex&#039
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">FORUM</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';[/code]

[code=bul] // The end of tab section.
echo '
<td class="maintab_' , $last , '"> </td>[/code]

[code=üstüne ekleyin]';
// TinyPortal
if($context['TPortal']['leftbar'])
echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar( current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
if($context['TPortal']['rightbar'])
echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar( current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
echo '[/code]

style.css dosyasını açın

[code=bul]/* Normal, standard links. */[/code]

[code=üstüne ekleyin]/* TP specific classes */
.sitemap{
margin: 0;
padding: 0;
list-style: none;
}
.sitemap_topheader{
background: #f0f0ff;
border-bottom: solid 1px #ffffff;
padding: 4px;
}

.sitemap_header{
background: #cDdBe8;
border-bottom: solid 1px #ffffff;
padding: 4px;
display: block;
font-weight: bold;
}

.sitemap_header_active{
background: #bDcBd8;
border-bottom: solid 1px #ffffff;
padding: 4px;
display: block;
font-weight: bold;
}

.sitemap_header:hover , .sitemap_header_active:hover{
background: #dDeBf8;
border-bottom: solid 1px #ffffff;
padding: 4px;
display: block;
text-decoration: none;
}

ul#articlelist
{
margin: 0 0 0 1ex;
padding: 0.5ex 0;
list-style: none;
}
ul#catlist
{
margin: 0 0 0 0;
padding: 0;
border-top: dotted 1px;
}

ul#articlelist li
{
display: block;
padding: 1ex 0 0 3ex;
background: url(images/divider.gif) no-repeat 1ex 1.5ex;
}
ul#catlist li
{
display: block;
padding: 1ex 0 0 3ex;
}[/code]