Webboard

Pełna wersja: Odstęp pomiędzy działami a SideBoxem
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.16
adres forum: http://freehs.za.pl/index.php
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Problem polega na tym, iż chciałbym zrobić malutki odstęp pomiędzy działami forum a bocznym panelem, tylko nie wiem jak :s
Podaj tutaj zawartość Twojego szablonu index.
Kod:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    lang.no_new_posts = "{$lang->no_new_posts}";
    lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$forums}

{$boardstats}

<dl class="forum_legend smalltext">
    <dt><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <dd>{$lang->new_posts}</dd>

    <dt><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <dd>{$lang->no_new_posts}</dd>

    <dt><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
    <dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

LikeLoveHate

Na razie nie widzę tu żadnego panelu bocznego.
Bo go tutaj nie ma :s

To jest jako plugin.

LikeLoveHate

:o do tego nie potrzeba pluginu, a troszkę znajomości HTML... Daj tu ten plik wtyczki.
Oto on, w załączniku.
Kod PHP:
if($mybb->settings['sidebox1'] == 1)
    {
        if (
$mybb->settings['sidebox4'] == 2)
        {
            
//$templates->cache['index'] = str_replace('{$forums}', '<table width="100%"  border="0"><tr><td width="auto" valign="top">{$forums}',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$header}''{$header}<table width="100%"  border="0"><tr><td width="auto" valign="top">',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$footer}','{$footer}</td><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></tr></table>',$templates->cache['index']);
        }
        else 
        {
            
//$templates->cache['index'] = str_replace('{$forums}', '<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">{$forums}',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$header}''{$header}<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$footer}','{$footer}</td></tr></table>',$templates->cache['index']);
        }
    }
    
    
//Display boxes on forumdisplay
    
if($mybb->settings['sidebox2'] == 1)
    {
        if (
$mybb->settings['sidebox4'] == 2)
        {
            
//$templates->cache['forumdisplay'] = str_replace('{$subforums}','',$templates->cache['forumdisplay']);
            //$templates->cache['forumdisplay'] = str_replace('{$threadslist}','<table width="100%"  border="0"><tr><td width="auto" valign="top">{$subforums}{$threadslist}',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$header}','{$header}<table width="100%"  border="0"><tr><td width="auto" valign="top">',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$footer}','{$footer}</td><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></tr></table>',$templates->cache['forumdisplay']);
        }
        else
        {
            
//$templates->cache['forumdisplay'] = str_replace('{$moderatedby}','<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">{$moderatedby}',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$header}','{$header}<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$footer}','{$footer}</td></tr></table>',$templates->cache['forumdisplay']);
        }
    }
    
//Display boxes on showthread
    
if($mybb->settings['sidebox3'] == 1)
    {
        if (
$mybb->settings['sidebox4'] == 2)
        {
            
$templates->cache['showthread'] = str_replace('{$header}','    {$header}<table width="100%"  border="0"><tr><td width="auto" valign="top">',$templates->cache['showthread']);
            
$templates->cache['showthread'] = str_replace('{$footer}','{$footer}</td><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></tr></table>',$templates->cache['showthread']);
        }
        else
        {
            
$templates->cache['showthread'] = str_replace('{$header}','    {$header}<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></td><td width="auto" valign="top">',$templates->cache['showthread']);
            
$templates->cache['showthread'] = str_replace('{$footer}','{$footer}</td></tr></table>',$templates->cache['showthread']);
        }
    } 
zamień na:
Kod PHP:
    if($mybb->settings['sidebox1'] == 1)
    {
        if (
$mybb->settings['sidebox4'] == 2)
        {
            
//$templates->cache['index'] = str_replace('{$forums}', '<table width="100%"  border="0"><tr><td width="auto" valign="top">{$forums}',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$header}''{$header}<table width="100%"  border="0"><tr><td width="auto" valign="top">',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$footer}','{$footer}</td><td>&nbsp</td><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></tr></table>',$templates->cache['index']);
        }
        else 
        {
            
//$templates->cache['index'] = str_replace('{$forums}', '<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">{$forums}',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$header}''{$header}<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">',$templates->cache['index']);
            
$templates->cache['index'] = str_replace('{$footer}','{$footer}</td><td>&nbsp</td></tr></table>',$templates->cache['index']);
        }
    }
    
    
//Display boxes on forumdisplay
    
if($mybb->settings['sidebox2'] == 1)
    {
        if (
$mybb->settings['sidebox4'] == 2)
        {
            
//$templates->cache['forumdisplay'] = str_replace('{$subforums}','',$templates->cache['forumdisplay']);
            //$templates->cache['forumdisplay'] = str_replace('{$threadslist}','<table width="100%"  border="0"><tr><td width="auto" valign="top">{$subforums}{$threadslist}',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$header}','{$header}<table width="100%"  border="0"><tr><td width="auto" valign="top">',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$footer}','{$footer}</td><td>&nbsp</td><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></tr></table>',$templates->cache['forumdisplay']);
        }
        else
        {
            
//$templates->cache['forumdisplay'] = str_replace('{$moderatedby}','<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">{$moderatedby}',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$header}','{$header}<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td><td width="auto" valign="top">',$templates->cache['forumdisplay']);
            
$templates->cache['forumdisplay'] = str_replace('{$footer}','{$footer}</td><td>&nbsp</td></tr></table>',$templates->cache['forumdisplay']);
        }
    }
    
//Display boxes on showthread
    
if($mybb->settings['sidebox3'] == 1)
    {
        if (
$mybb->settings['sidebox4'] == 2)
        {
            
$templates->cache['showthread'] = str_replace('{$header}','    {$header}<table width="100%"  border="0"><tr><td width="auto" valign="top">',$templates->cache['showthread']);
            
$templates->cache['showthread'] = str_replace('{$footer}','{$footer}</td><td>&nbsp</td><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></tr></table>',$templates->cache['showthread']);
        }
        else
        {
            
$templates->cache['showthread'] = str_replace('{$header}','    {$header}<table width="100%"  border="0"><tr><td width="'.$lmao1.'" valign="top">'.$lol1."".$lol2."".$lol3."".$lol4."".$lol5."".$lol6."".$lol7."".$lol8."".$lol9.'</td></td><td width="auto" valign="top">',$templates->cache['showthread']);
            
$templates->cache['showthread'] = str_replace('{$footer}','{$footer}</td><td>&nbsp</td></tr></table>',$templates->cache['showthread']);
        }
    } 
Dziękuję Ci wielkie! <3