wersja skryptu MyBB: 1.6
adres forum: www.Gamespad.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Po dodaniu NivoSlider, nie zwijają się działy oraz lista serwerów i panel boczny.
Wykonałem to i dalej jest.
Dla sprawdzenia dodanego ostatnio NivoSlider'a usunąłem, go na chwilę i problem ustał, lecz po dodaniu go znowu nie da się zwijać.
Co to robi na Twojej stronie?
Pokaż szablon headerinclude (niezgrupowane szablony).
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=1610"></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="jscripts/thread.js?ver=1603"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/login.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/panel.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/tiptip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/cookies.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/easing.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/fancycollapses.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/script.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/sidebar_2.0.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/member.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>
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
<script type="text/javascript">
jQuery(window).load(function() {
jQuery('#slider').nivoSlider();
});
</script>
<script type="text/javascript">jQuery.noConflict();</script>
{$stylesheets}<!-- UNREADPOSTS_CSS -->
<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>
<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/light/light.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/dark/dark.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/bar/bar.css" type="text/css" media="screen" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
{$newpmmsg}
A co do jQuery.noConflict, nie mam pojęcia :O
Kod PHP:
<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=1610"></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="jscripts/thread.js?ver=1603"></script>
{$stylesheets}<!-- UNREADPOSTS_CSS -->
<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>
<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/light/light.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/dark/dark.css" type="text/css" media="screen" />
<link rel="stylesheet" href="themes/bar/bar.css" type="text/css" media="screen" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/login.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/panel.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/tiptip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/cookies.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/easing.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/fancycollapses.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/script.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/sidebar_2.0.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/Shit_V1/js/member.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>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
<script type="text/javascript">
jQuery(window).load(function() {
jQuery('#slider').nivoSlider();
});
</script>
{$newpmmsg}
i wklej to najpierw do notepad++, potem w szablon, albo użyj innej przeglądarki.
To tak, napis jQuery ze strony zniknął, lecz nie działa dalej zwijanie.
Zauważyłem, że ten błąd jest wtedy, gdy NivoSlider jest właczony
Problem rozwiązany.
Pomogła zmiana wersji JQuery na 1.7.2