wersja skryptu MyBB: 1.8.6
adres forum:
http://holygames.pl/
na czym polega problem (screen, opis, komunikaty, nazwa i wersja wtyczki): no więc po kliknięciu w dodaj komentarz nie działa nie wiem czemu dodałem do index po headerinclude dobry kod i zainstalowałem proszę o pomoc.
usun to z headerinclude i sprawdz
konto testowe będzie potrzebne.
login test
hasło 12345678
dodałem to z powrotem
Kod:
{$headerinclude}
{$statusupdate_script}
<script type="text/javascript">
jQuery(document).ready(function($) {
var secondButton, button, buttonShow, buttonHide;
buttonHide = "{$lang->statusupdate_hidecomments}";
buttonShow = "{$lang->statusupdate_showcomments}";
button = $(".showcomment");
secondButton = $(".addcomment");
button.html(buttonShow);
button.click(function(e) {
e.preventDefault();
if (!$(this).nextAll(".showcomment_row").is(":animated")) {
$(this).nextAll(".showcomment_row").slideToggle("slow", function() {
if($(this).is(":visible")) {
$(this).prevAll(".showcomment:first").html(buttonHide);
} else {
$(this).prevAll(".showcomment:first").html(buttonShow);
}
});
}
});
secondButton.click(function(e) {
e.preventDefault();
if (!$(this).nextAll(".addcomment_row").is(":animated")) {
$(this).nextAll(".addcomment_row").slideToggle("slow");
}
});
});
</script>
i po co?
to to wyrzuć
zmienna {$statusupdate_script} zawiera ten sam kod, ona ma zostac
pokaz swoj szablon headerinclude
(15.01.2016, 20:08)Supryk napisał(a): [ -> ]pokaz swoj szablon headerinclude
Kod:
{$headerinclude}
{$statusupdate_script}
<script src="http://code.jquery.com/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="http://banid.pl/banid-widget.js" type="text/javascript"></script>
<link href="http://banid.pl/banid-widget.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
banidwidget.init({
side: 'right',
action: 'click',
border: 'white'
});
</script>
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pl_PL/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script src="http://code.jquery.com/jquery-1.5.2.min.js" type="text/javascript"></script>
{$headerinclude} w headerinclude?
tego nie powinno byc
ogólny bałagan
zamień lepiej na domyslny
ok zrobiłem już działa
Ale jak podmienie header include na domyślne to forum się wali obrazy nie działają ikonki na górze podgląd profilu też co am tam zmienić
a to mój header inlude to co podałem to był index
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->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1806"></script>
{$stylesheets}
<script type="text/javascript">
<!--
lang.unknown_error = "{$lang->unknown_error}";
lang.select2_match = "{$lang->select2_match}";
lang.select2_matches = "{$lang->select2_matches}";
lang.select2_nomatches = "{$lang->select2_nomatches}";
lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
lang.select2_loadmore = "{$lang->select2_loadmore}";
lang.select2_searching = "{$lang->select2_searching}";
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 rootpath = "{$mybb->settings['bburl']}";
var imagepath = "{$theme['imgdir']}";
var yes_confirm = "{$lang->yes}";
var no_confirm = "{$lang->no}";
var MyBBEditor = null;
var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->
</script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/skillgame/js/jquery.tipTip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/skillgame/js/jquery.tipTip.minified.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/skillgame/js/skillgame.js"></script>
<script type='text/javascript'>
jQuery(function() {
});
</script>