wersja skryptu MyBB:1.6.11
adres forum:boostpc.pl
na czym polega problem (screen, opis, komunikaty):
Jak zrobić, zeby po wejsciu na forum pokazywał sie komunikat o plikach cookie ?
No dobra działa. A teraz takie pytanie jeszcze czy musze robic jakis odsyłacz gdzie bedzie opisana cała ta polityka plikow cookie ?
To musze odsyłacz robic czy nie ? I ktoś spolszczenie ma do tego ?
Tego nie instaluj bo tam jest bug.
EDIT: Podane tam kody należy wkleić do sekcji <head>
Podpowiem, że w przypadku MyBB jest to szablon headerinclude (niezgrupowane szablony)
A ogolnie jaki bug tam jest ?
To headerinclude znalazlem, ale nie kminie jak do sekcji head mam dodac ?
To ma wygladac tak ?
Kod:
<head><script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="http://ciasteczka.eu/cookiesEU-latest.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery.fn.cookiesEU();
});
</script></head>
Pokaż ten swój headerinclude
Taki jest oryginalny
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" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<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="{$mybb->settings['bburl']}/jscripts/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/slide.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#top").BackToTop();
jQuery(".user-slide").Wysun({przycisk: ".dd1", efekt : "fade", czas : "1000"});
jQuery("#inbox").click(function(){
jQuery("#login-box").fadeIn(300);
jQuery(".login-shadow").fadeIn(300);
jQuery(".login-shadow, .btn-close").click(function(){
jQuery("#login-box").fadeOut(300);
jQuery(".login-shadow").fadeOut(300);
});
});
});
jQuery.fn.BackToTop = function(){
var back = jQuery(this);
jQuery(window).scroll(function(){jQuery(this).scrollTop() == 0? back.finish().fadeOut(500) : back.finish().fadeIn(500);});
jQuery(this).click(function(){jQuery("html, body").animate({ scrollTop: '0px' }); back.finish().fadeOut(500);});
};
</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}
Zamień na ten:
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" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<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="{$mybb->settings['bburl']}/jscripts/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/slide.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#top").BackToTop();
jQuery(".user-slide").Wysun({przycisk: ".dd1", efekt : "fade", czas : "1000"});
jQuery("#inbox").click(function(){
jQuery("#login-box").fadeIn(300);
jQuery(".login-shadow").fadeIn(300);
jQuery(".login-shadow, .btn-close").click(function(){
jQuery("#login-box").fadeOut(300);
jQuery(".login-shadow").fadeOut(300);
});
});
});
jQuery.fn.BackToTop = function(){
var back = jQuery(this);
jQuery(window).scroll(function(){jQuery(this).scrollTop() == 0? back.finish().fadeOut(500) : back.finish().fadeIn(500);});
jQuery(this).click(function(){jQuery("html, body").animate({ scrollTop: '0px' }); back.finish().fadeOut(500);});
};
</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>
<script type="text/javascript" src="http://ciasteczka.eu/cookiesEU-latest.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery.fn.cookiesEU();
});
</script>
{$newpmmsg}
Ok działa. Ślicznie dziękuje =) + leci
Kurcze, od tej zmiany padło mi logowanie i nie moge tez np zamykac kategorii ani kasowac postów