Dołącz do zespołu ekspertów! Backend lub Frontend Developer?

Sprawdź najnowsze oferty pracy naszego partnera - 8lines.io!

Problem z wysuwanym panelem bocznym.

Błąd   Założony przez  pp108.

wersja skryptu MyBB: 1.6.10
adres forum: n. d.
na czym polega problem (screen, opis, komunikaty, nazwa i wersja wtyczki):
Mam problem z tym sideboxem https://webboard.pl/wiki.php?zwijany-pan...posob.html

Po dodaniu kodu w headerinclude nie działa wysuwany panel użytkownika / panel logowania.
DirkOne napisał 28.06.2013, 12:29:
[Obrazek: modnotice_howto.png]
Przed dodaniem tego tematu warto było wcześniej zapoznać się z akcją '''Jak szybko otrzymać pomoc?'' między innymi w celu sprawdzenia gotowego rozwiązania :)
------Poprawiłem temat.
Coś mi się wydaje że zle dodałeś kod, jeśli jednak myle się podaj kod szablonu ''headerinclude ''.

Postaraj się jeszcze raz przejrzeć kody, jeśli nic nie pomoże to pewnie trzeba rozwiązać konflikt.
Proszę:
<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://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.leanModal.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.idTabs.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
jQuery(function() {
jQuery('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
<script type="text/javascript">
    jQuery(document).ready(function(){
     jQuery('#loged-toggle').click(function() {
      jQuery('#loged-content').slideToggle(300, function() {
      jQuery("#loged-toggle p").toggle();
      });
     });
    });
</script>
<script type="text/javascript">
jQuery(document).ready(function()
{
    jQuery('div.htmltabs div.tabsContent').hide();//tabsContent class is used to hide all the tabs content in the start
    jQuery('div.tab1').show(); // It will show the first tab content when page load, you can set any tab content you want - just put the tab content class e.g. tab4
    jQuery('div.htmltabs ul.tabs li.tab1 a').addClass('tab-current');// We will add the class to the current open tab to style the active state
    //It will add the click event on all the anchor tag under the htmltabs class to show the tab content when clicking to the tab
    jQuery('div.htmltabs ul li a').click(function()
    {
        var thisClass = this.className.slice(0,4);//"this" is the current anchor where user click and it will get the className from the current anchor and slice the first part as we have two class on the anchor
        jQuery('div.htmltabs div.tabsContent').hide();// It will hide all the tab content
        jQuery('div.' + thisClass).show(); // It will show the current content of the user selected tab
        jQuery('div.htmltabs ul.tabs li a').removeClass('tab-current');// It will remove the tab-current class from the previous tab to remove the active style
        jQuery(this).addClass('tab-current'); //It will add the tab-current class to the user selected tab
    });
});
</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="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar_2.0.js"></script>
<script type="text/javascript">jQuery.noConflict();</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}
Zamianka:
<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://code.jquery.com/jquery-latest.js"></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="{$mybb->settings['bburl']}/jscripts/jquery.leanModal.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar_2.0.js"></script>
<script type="text/javascript">jQuery.noConflict();</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}
<script type="text/javascript">
jQuery(function() {
jQuery('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
<script type="text/javascript">
    jQuery(document).ready(function(){
     jQuery('#loged-toggle').click(function() {
      jQuery('#loged-content').slideToggle(300, function() {
      jQuery("#loged-toggle p").toggle();
      });
     });
    });
</script>
<script type="text/javascript">
jQuery(document).ready(function()
{
    jQuery('div.htmltabs div.tabsContent').hide();//tabsContent class is used to hide all the tabs content in the start
    jQuery('div.tab1').show(); // It will show the first tab content when page load, you can set any tab content you want - just put the tab content class e.g. tab4
    jQuery('div.htmltabs ul.tabs li.tab1 a').addClass('tab-current');// We will add the class to the current open tab to style the active state
    //It will add the click event on all the anchor tag under the htmltabs class to show the tab content when clicking to the tab
    jQuery('div.htmltabs ul li a').click(function()
    {
        var thisClass = this.className.slice(0,4);//"this" is the current anchor where user click and it will get the className from the current anchor and slice the first part as we have two class on the anchor
        jQuery('div.htmltabs div.tabsContent').hide();// It will hide all the tab content
        jQuery('div.' + thisClass).show(); // It will show the current content of the user selected tab
        jQuery('div.htmltabs ul.tabs li a').removeClass('tab-current');// It will remove the tab-current class from the previous tab to remove the active style
        jQuery(this).addClass('tab-current'); //It will add the tab-current class to the user selected tab
    });
});
</script>
Owszem, sidebar i panel działają, ale teraz zepsół się MyShoutbox oraz zwijanie działów



Użytkownicy przeglądający ten wątek:

2 gości