Webboard

Pełna wersja: Szukajka kieruje do wątku
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB:1.6.12
adres forum:www.scenic-forum.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Szukajka, która jest na głównej stronie kieruje do wątku "gadżetów".

Może ktoś sprawdzić gdzie jest błąd i jak go naprawić ?
Pokaż jej kod.
header:

Kod:
<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
            <div class="logo"><a href="{$mybb->settings['bburl']}/index.php" ><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
            </div>
        <div class="rotator">
<ul>
<?php
$img_i = 1;
$rot_class = "";
$images_rotator = glob("images/rotator/*.{jpg,png,gif}", GLOB_BRACE);
foreach($images_rotator as $image_r)
{
  if(i==1) $rot_class= 'class="show"';
  echo '<li '.$rot_class.'>
<a href="http://www.scenic-forum.pl" target="_blank">
<img src="'.$image_r.'" alt="pic'.++$img_i.'" />
</a>
</li>';
}
?>
</ul>
</div>



<br class="clear" />
        </div>



<br style="clear:both;" />

        <div id="content">

<div class="menu">
<table class="tborder" border="0" cellpadding="4" cellspacing="1">
    <thead>
        <tr>
          

  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/index.png" alt="Forum Index Page" title="Forum" /><strong><a href="{$mybb->settings['bburl']}/index.php">Forum</a></strong></td>


          
  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.png" alt="Użytkownicy" title="Użytkownicy" /><strong><a href="{$mybb->settings['bburl']}/memberlist.php">Użytkownicy</a></strong></td>
  

  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/Email.png" alt="Wiadomości" title="Wiadomości" /><strong><a href="{$mybb->settings['bburl']}/private.php">Wiadomości</a></strong></td>


  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/Images.png" alt="Galeria" title="Galeria" /><strong><a href="{$mybb->settings['bburl']}/attachment.php?aid=1101">Galeria</a></strong></td>


<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/calendar.png" alt="Kalendarz" title="Kalendarz" /><strong><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></strong></td>
            

            
<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/search.png" alt="Szukaj" title="Szukaj" /><strong><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></strong></td>
          
<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/help.png" alt="Pomoc" title="Pomoc" /><strong><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></strong></td>


                    
    </tr>
    </thead>
</table>
</div>



<div align="center">
<a href="http://www.scenic-forum.pl/Watek-Konkurs-fotograficzny"><img src="http://scenic-forum.pl/uploads/ogloszenia/konkurs_foto.png" style="height:100%;width:50%;" /><a href="http://www.scenic-forum.pl/Forum-Gadzety"><img src="http://scenic-forum.pl/uploads/ogloszenia/gadzety.png" style="height:100%;width:50%;" />
</div>


            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}<!-- NewCommentInImage -->
            {$alertprofilealbums}<!-- /NewCommentInImage -->
{$headerannounce}{$mysupport_tech_notice}{$mysupport_assign_notice}

            {$msg}{$myshowcase_unapproved}{$myshowcase_reported}<navigation><div id="panel">
                {$welcomeblock}
            </div>

<div class="sticky-container">
        <ul class="sticky">
            <li>
                <a href="http://www.facebook.com/scenicforumPolska"target="_blank"><img width="32" height="32" title="" alt="" src="img/fb1.png" />
                <p>Facebook</p></a>
            </li>
            <li>
                <a href="https://twitter.com/scenic_forumPL"target="_blank"><img width="32" height="32" title="" alt="" src="img/tw1.png" />
                <p>Twitter</p></a>
            </li>
            <li>
                <a href="https://plus.google.com/116547280667545961389"target="_blank"><img width="32" height="32" title="" alt="" src="img/gp1.png" />
                <p>Google Plus</p></a>
            </li>
            
            <li>
                <a href="http://www.youtube.com/user/ScenicForum"target="_blank"><img width="32" height="32" title="" alt="" src="img/yt1.png" />
                <p>Youtube</p></a>
            </li>            
            
<li>
                <a href="http://www.pinterest.com/scenicforumpl/"target="_blank"><img width="32" height="32" title="" alt="" src="img/pin1.png" />
                <p>Pinterest</p></a>
            </li>
<li>
                <a href="https://maps.google.com/maps/ms?msid=209620545390670979099.0004f07fe0341af5d794a&msa=0&ll=52.589701,20.192871&spn=7.223972,14.963379&dg=feature"target="_blank"><img width="32" height="32" title="" alt="" src="img/gmap1.png" />
                <p>Mapa</p></a>
            </li>

        </ul>
    </div><!--advadsman_z1-->
Kod PHP:
<div id="container">
        <
a name="top" id="top"></a>
        <
div id="header">
            <
div class="logo"><a href="{$mybb->settings['bburl']}/index.php" ><img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/></a>
            </
div>
        <
div class="rotator">
<
ul>
<?
php
$img_i 
1;
$rot_class "";
$images_rotator glob("images/rotator/*.{jpg,png,gif}"GLOB_BRACE);
foreach(
$images_rotator as $image_r)
{
  if(
i==1$rot_class'class="show"';
  echo 
'<li '.$rot_class.'>
<a href="http://www.scenic-forum.pl" target="_blank">
<img src="'
.$image_r.'" alt="pic'.++$img_i.'" />
</a>
</li>'
;
}
?>
</ul>
</div>



<br class="clear" />
        </div>



<br style="clear:both;" />

        <div id="content">

<div class="menu">
<table class="tborder" border="0" cellpadding="4" cellspacing="1">
    <thead>
        <tr>
          

  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/index.png" alt="Forum Index Page" title="Forum" /><strong><a href="{$mybb->settings['bburl']}/index.php">Forum</a></strong></td>


          
  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.png" alt="Użytkownicy" title="Użytkownicy" /><strong><a href="{$mybb->settings['bburl']}/memberlist.php">Użytkownicy</a></strong></td>
  

  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/Email.png" alt="Wiadomości" title="Wiadomości" /><strong><a href="{$mybb->settings['bburl']}/private.php">Wiadomości</a></strong></td>


  <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/Images.png" alt="Galeria" title="Galeria" /><strong><a href="{$mybb->settings['bburl']}/attachment.php?aid=1101">Galeria</a></strong></td>


<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/calendar.png" alt="Kalendarz" title="Kalendarz" /><strong><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></strong></td>
            

            
<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/search.png" alt="Szukaj" title="Szukaj" /><strong><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></strong></td>
           
<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/help.png" alt="Pomoc" title="Pomoc" /><strong><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></strong></td>


                    
    </tr>
    </thead>
</table>
</div>



<div align="center">
<a href="http://www.scenic-forum.pl/Watek-Konkurs-fotograficzny"><img src="http://scenic-forum.pl/uploads/ogloszenia/konkurs_foto.png" style="height:100%;width:50%;" /></a><a href="http://www.scenic-forum.pl/Forum-Gadzety"><img src="http://scenic-forum.pl/uploads/ogloszenia/gadzety.png" style="height:100%;width:50%;" /></a>
</div>


            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}<!-- NewCommentInImage -->
            {$alertprofilealbums}<!-- /NewCommentInImage -->
{$headerannounce}{$mysupport_tech_notice}{$mysuppo​rt_assign_notice}

            {$msg}{$myshowcase_unapproved}{$myshowcase_re​ported}<navigation><div id="panel">
                {$welcomeblock}
            </div>

<div class="sticky-container">
        <ul class="sticky">
            <li>
                <a href="http://www.facebook.com/scenicforumPolska"target="_blank"><img width="32" height="32" title="" alt="" src="img/fb1.png" />
                <p>Facebook</p></a>
            </li>
            <li>
                <a href="https://twitter.com/scenic_forumPL"target="_blank"><img width="32" height="32" title="" alt="" src="img/tw1.png" />
                <p>Twitter</p></a>
            </li>
            <li>
                <a href="https://plus.google.com/116547280667545961389"target="_blank"><img width="32" height="32" title="" alt="" src="img/gp1.png" />
                <p>Google Plus</p></a>
            </li>
            
            <li>
                <a href="http://www.youtube.com/user/ScenicForum"target="_blank"><img width="32" height="32" title="" alt="" src="img/yt1.png" />
                <p>Youtube</p></a>
            </li>            
            
<li>
                <a href="http://www.pinterest.com/scenicforumpl/"target="_blank"><img width="32" height="32" title="" alt="" src="img/pin1.png" />
                <p>Pinterest</p></a>
            </li>
<li>
                <a href="https://maps.google.com/maps/ms?msid=209620545390670979099.0004f07fe0341af5d794​a&msa=0&ll=52.589701,20.192871&spn=7.223972,14.963379&dg=feature"target="_blank"><img width="32" height="32" title="" alt="" src="img/gmap1.png" />
                <p>Mapa</p></a>
            </li>

        </ul>
    </div><!--advadsman_z1--> 
Przy próbie wklejenia tego wyświetla się ostrzeżenie:


W tym szablonie została wykryta potencjalna luka bezpieczeństwa. Zweryfikuj szablon lub skontaktuj się z twórcami MyBB w celu uzyskania pomocy.
A spróbuj teraz kod wkleić z Twojego posta i dopisać 2x </a>:
Kod PHP:
<a href="http://www.scenic-forum.pl/Watek-Konkurs-fotograficzny"><img src="http://scenic-forum.pl/uploads/ogloszenia/konkurs_foto.png" style="height:100%;width:50%;" />TUTAJ<a href="http://www.scenic-forum.pl/Forum-Gadzety"><img src="http://scenic-forum.pl/uploads/ogloszenia/gadzety.png" style="height:100%;width:50%;" />TUTAJ 

odszukaj 2 "TUTAJ" i wstaw </a>