Webboard

Pełna wersja: Informacja o cookie
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2
Zmień na:
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="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" src="{$mybb->settings['bburl']}/jscripts/slide.js"></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>
<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>
{$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}

, spróbuj jeszcze tego...
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">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/slide.js"></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>
<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>
{$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}
Poza logowaniem wszystko chodzi...
Ewentualnie tak:
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>

<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}
Nadal nie działa
No to wróć do oryginalnego szablonu (tego, który podałeś mi na początku)
i zastosuj to:
http://webhelp.pl/artykuly/okienko-z-inf...h-cookies/

Pobierasz TEN plik
rozpakowujesz archiwum i wrzucasz go na serwer do katalogu jscripts

W headerinclude dodajesz na górze:
Kod:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/whcookies.js"></script>

I to wszystko. Ja tego używam u siebie.
Sprawa się bardziej skomplikowała ;D Bo nawet na oryginalnym mi nie chodzi logowanie ;p
Wyczyść ciasteczka i pamięć przeglądarki. Nic nie zrobiliśmy co by mogło popsuć logowania. Skrypt nie ingeruje w MyBB
Stron: 1 2