Webboard

Pełna wersja: Ostatnio aktywne wątki - umiejscowienie w panelu bocznym
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2
wersja skryptu MyBB:
adres forum:micromars.pl
na czym polega problem (screen, opis, komunikaty, nazwa i wersja wtyczki):
witam mam pytanie jak przesunąć Ostatnio aktywne wątki tak zeby było po prawej stronie (zaznaczyłem na zdj)
Pokaż szablon index (strona główna)
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}{$serversboard}{$dvz_shoutbox}{$recenttopics}



<table id="sponsor_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word;" border="0" cellspacing="0" cellpadding="0" class="tborder sponsor_panel_boczny_2">
<thead>
    <tr>
        <td class="thead"><div class="expcolimage"><img src="images/memory_djhehe/collapse.gif" id="sponsor_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Sponsorzy</div>
        </td>
    </tr>
</thead>
<tbody style="" id="sponsor_panel_8_e">
    <tr>
        <td class="trow_kat5">
<center>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/pukawka2.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/dedyki.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
</center>
        </td>
    </tr>
</tbody>
</table>



<a class="clickedbuttons" style="float: right;">«</a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 24%;">
<a class="buttons" >×</a>




<table id="zwijany_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word; margin-bottom: 10px;" border="0" cellspacing="0" cellpadding="0" class="tborder zwijany_panel_boczny_2">
<thead>
    <tr>
        <td class="thead_boxB"><div class="expcolimage2"><img src="images/memory_djhehe/icon/collapse.gif" id="zwijany_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Przydatne linki</div>
        </td>
    </tr>
</thead>
<tbody style="" id="zwijany_panel_8_e">
    <tr>
        <td class="trow_kat5">
<center>
<div><a href="http://microsklep.boo.pl"><font size="5px">Sklep micromars.pl</font></a></div>
</center>
        </td>
    </tr>
</tbody>
</table>




<table id="box_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word; margin-bottom: 10px;" border="0" cellspacing="0" cellpadding="0" class="tborder box_panel_boczny_2">
<thead>
    <tr>
        <td class="thead_boxB"><div class="expcolimage2"><img src="images/memory_djhehe/icon/collapse.gif" id="box_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Sponsorzy</div>
        </td>
    </tr>
</thead>
<tbody style="" id="box_panel_8_e">
    <tr>
        <td class="trow_kat5">
<center>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/pukawka2.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/dedyki.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
</center>
        </td>
    </tr>
</tbody>
</table>






</div>

<div class="forums" style="float: left;width: 75%;">
{$forums}
</div>
<br class="clear" />
<br>
{$boardstats}
<br style="clear: both" />
{$footer}
</body>
</html>
Spróbuj tak:
Kod PHP:
<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}{$serversboard}{$dvz_shoutbox}



<
table id="sponsor_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word;" border="0" cellspacing="0" cellpadding="0" class="tborder sponsor_panel_boczny_2">
<
thead>
    <
tr>
        <
td class="thead"><div class="expcolimage"><img src="images/memory_djhehe/collapse.gif" id="sponsor_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Sponsorzy</div>
        </
td>
    </
tr>
</
thead>
<
tbody style="" id="sponsor_panel_8_e">
    <
tr>
        <
td class="trow_kat5">
<
center>
<
a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/pukawka2.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​40" /></a>
<
a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​40" /></a>
<
a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/dedyki.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​40" /></a>
</
center>
        </
td>
    </
tr>
</
tbody>
</
table>



<
class="clickedbuttons" style="float: right;">«</a>
<
br class="clear" />
<
div class="sidebar" style="float: right;width: 24%;">
<
class="buttons" >×</a>




<
table id="zwijany_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word; margin-bottom: 10px;" border="0" cellspacing="0" cellpadding="0" class="tborder zwijany_panel_boczny_2">
<
thead>
    <
tr>
        <
td class="thead_boxB"><div class="expcolimage2"><img src="images/memory_djhehe/icon/collapse.gif" id="zwijany_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Przydatne linki</div>
        </
td>
    </
tr>
</
thead>
<
tbody style="" id="zwijany_panel_8_e">
    <
tr>
        <
td class="trow_kat5">
<
center>
<
div><a href="http://microsklep.boo.pl"><font size="5px">Sklep micromars.pl</font></a></div>
</
center>
        </
td>
    </
tr>
</
tbody>
</
table>

<
table id="box_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word; margin-bottom: 10px;" border="0" cellspacing="0" cellpadding="0" class="tborder box_panel_boczny_2">
<
thead>
    <
tr>
        <
td class="thead_boxB"><div class="expcolimage2"><img src="images/memory_djhehe/icon/collapse.gif" id="box_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Sponsorzy</div>
        </
td>
    </
tr>
</
thead>
<
tbody style="" id="box_panel_8_e">
    <
tr>
        <
td class="trow_kat5">
<
center>
<
a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/pukawka2.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​40" /></a>
<
a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​40" /></a>
<
a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/dedyki.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​40" /></a>
</
center>
        </
td>
    </
tr>
</
tbody>
</
table>
{
$recenttop​ics}






</
div>

<
div class="forums" style="float: left;width: 75%;">
{
$forums}
</
div>
<
br class="clear" />
<
br>
{
$boardstats}
<
br style="clear: both" />
{
$footer}
</
body>
</
html
micromars.pl napisał(a):...
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png" style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=10​​0" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=​​40" /></a>
...

Aż na tyle jesteś leniwy żeby chociaż pobrać te obrazki i wrzucić do siebie?...
SLAVOO mogł byś napisać co gdzie jak dodać bo jak robie kopiuj wklej to wyskakuje to
"W tym szablonie została wykryta potencjalna luka bezpieczeństwa. Zweryfikuj szablon lub skontaktuj się z twórcami MyBB w celu uzyskania pomocy."

GiboneKPL - dzieki za info poprawie to (bo to nie moje forum tylko ja je poprawiam tylko)
Zobacz w którym miejscu w moim kodzie dodałem {$recenttop​ics} i skąd skasowałem i tam wklej.
Porównaj oba kody.
dobra zrobiłem tak jak ty itd :
ale wyskakuje mi to : W tym szablonie została wykryta potencjalna luka bezpieczeństwa. Zweryfikuj szablon lub skontaktuj się z twórcami MyBB w celu uzyskania pomocy.
Przeklej ten wklejony przez Ciebie szablon tutaj, ten z tą luką rzekomą.
Kod:
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/login.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/panel.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/tiptip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/cookies.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/easing.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/fancycollapses.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/script.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/sidebar_2.0.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/memory_djhehe/js/member.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
jQuery(window).load(function(){
jQuery('#wczytywanie').fadeOut('slow',function(){
jQuery(this).remove();
});
});
</script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {

    jQuery('a[href=#top]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });
});
</script>
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery(".tipTip").tipTip();
});
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</script>
{$stylesheets}
<script type="text/javascript">
<!--
    var cookieDomain = "{$mybb->settings['cookiedomain']}";
    var cookiePath = "{$mybb->settings['cookiepath']}";
    var cookiePrefix = "{$mybb->settings['cookieprefix']}";
    var deleteevent_confirm = "{$lang->deleteevent_confirm}";
    var removeattach_confirm = "{$lang->removeattach_confirm}";
    var loading_text = '{$lang->ajax_loading}';
    var saving_changes = '{$lang->saving_changes}';
    var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
    var my_post_key = "{$mybb->post_code}";
    var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}
No ale co ma headerinclude do tego, skoro zmiany wprowadzasz w szablonie 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}{$serversboard}{$dvz_shoutbox}



<table id="sponsor_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word;" border="0" cellspacing="0" cellpadding="0" class="tborder sponsor_panel_boczny_2">
<thead>
    <tr>
        <td class="thead"><div class="expcolimage"><img src="images/memory_djhehe/collapse.gif" id="sponsor_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Sponsorzy</div>
        </td>
    </tr>
</thead>
<tbody style="" id="sponsor_panel_8_e">
    <tr>
        <td class="trow_kat5">
<center>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/pukawka2.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/dedyki.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
</center>
        </td>
    </tr>
</tbody>
</table>



<a class="clickedbuttons" style="float: right;">«</a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 24%;">
<a class="buttons" >×</a>




<table id="zwijany_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word; margin-bottom: 10px;" border="0" cellspacing="0" cellpadding="0" class="tborder zwijany_panel_boczny_2">
<thead>
    <tr>
        <td class="thead_boxB"><div class="expcolimage2"><img src="images/memory_djhehe/icon/collapse.gif" id="zwijany_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Przydatne linki</div>
        </td>
    </tr>
</thead>
<tbody style="" id="zwijany_panel_8_e">
    <tr>
        <td class="trow_kat5">
<center>
<div><a href="http://microsklep.boo.pl"><font size="5px">Sklep micromars.pl</font></a></div>
</center>
        </td>
    </tr>
</tbody>
</table>




<table id="box_panel_boczny_2" style="table-layout: fixed; word-wrap: break-word; margin-bottom: 10px;" border="0" cellspacing="0" cellpadding="0" class="tborder box_panel_boczny_2">
<thead>
    <tr>
        <td class="thead_boxB"><div class="expcolimage2"><img src="images/memory_djhehe/icon/collapse.gif" id="box_panel_8_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div><div>Sponsorzy</div>
        </td>
    </tr>
</thead>
<tbody style="" id="box_panel_8_e">
    <tr>
        <td class="trow_kat5">
<center>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/pukawka2.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/zabijaka3.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
<a href="#" target="_blank"><img src="http://img.rzeznia.eu/partner/dedyki.png"  style="margin: 0 10px;opacity: 0.6" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6;this.filters.alpha.opacity=40" /></a>
</center>
        </td>
    </tr>
</tbody>
</table>
{$recenttop​ics}





</div>

<div class="forums" style="float: left;width: 75%;">
{$forums}
</div>
<br class="clear" />
<br>
{$boardstats}
<br style="clear: both" />
{$footer}
</body>
</html>
Błąd leży w zmiennej {$recenttop​ics}.
Co masz na myśli?
Przecież w innym miejscu działa w tym samym szablonie.
jak to naprawic ?
Stron: 1 2