Webboard

Pełna wersja: Brak możloiwości odznaczenia przeczytanego postu.
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2
wersja skryptu MyBB: 1.6.1
adres forum: nauka-rp.xaa.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Cześć ! Nie mogę zaznaczyć działu jako przeczytane, o co chodzi?
SCREEN
Konsola mówi:
Kod:
Uncaught TypeError: Object [object Object] has no method 'dispatchEvent' prototype.js?ver=1603:6598
Uncaught TypeError: Object [object Object] has no method 'ColorPicker' profiledesign.js:23
Uncaught TypeError: Object function (e,t){return new x.fn.init(e,t,r)} has no method 'cookie' sidebar_2.0.js:25
Uncaught TypeError: Cannot read property 'display' of undefined prototype.js?ver=1603:847

Teraz powiedz czy zastosowałeś funkcję

Kod:
<script type="text/javascript">jQuery.noConflict();</script>

Jeżeli nie do dodaj powyższy kawałek kodu do niezgrupowane szablony > headerinclude tuż po linijce jQuery.
Znaczy gdzie?
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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tipTip/jquery.tipTip.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
jQuery(document).ready(function($) {
    $(".tooltip").tipTip({maxWidth:"270px"});
    $(".tooltip_right").tipTip({defaultPosition:"right"});
    $(".tooltip_top").tipTip({defaultPosition:"top"});
    $(".tooltip_bottom").tipTip({defaultPosition:"bottom"});
    $(".subject_editable").tipTip({defaultPosition:"bottom"});
    $(".tooltip_left").tipTip({defaultPosition:"left"});
    $(".postbutton").tipTip({defaultPosition:"top"});
    $(".bigpostbutton").tipTip({defaultPosition:"top"});
    $(".ajax_mark_read").tipTip({defaultPosition:"right"});
});
</script>
<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.leanModal.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
        $('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
<link type="text/css" rel="stylesheet" href="{$mybb->settings['bburl']}/jscripts/tipTip/tipTip.css"/>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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" src="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar_2.0.js"></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}
Kod:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

Po tym

Dodatkowo upewnij się, że masz zamienione wszystkie $ na jQuery
W sensie jak mam się upewnić? W kwestii tych głupich js jestem kompletnie zielony. Masz kod wyżej to weź zerknij :D

Nie działa wklejenie
Kod:
<script type="text/javascript">jQuery.noConflict();</script>
Sprawdź czy masz jQuery zamiast $

https://webboard.pl/thread-36416.html
No zamieniłem, jednak nadal to samo.
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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tipTip/jquery.tipTip.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
    jQuery(".tooltip").tipTip({maxWidth:"270px"});
    jQuery(".tooltip_right").tipTip({defaultPosition:"right"});
    jQuery(".tooltip_top").tipTip({defaultPosition:"top"});
    jQuery(".tooltip_bottom").tipTip({defaultPosition:"bottom"});
    jQuery(".subject_editable").tipTip({defaultPosition:"bottom"});
    jQuery(".tooltip_left").tipTip({defaultPosition:"left"});
    jQuery(".postbutton").tipTip({defaultPosition:"top"});
    jQuery(".bigpostbutton").tipTip({defaultPosition:"top"});
    jQuery(".ajax_mark_read").tipTip({defaultPosition:"right"});
});
</script>
<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.leanModal.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
        jQuery('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
<link type="text/css" rel="stylesheet" href="{$mybb->settings['bburl']}/jscripts/tipTip/tipTip.css"/>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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" src="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar_2.0.js"></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}

Jest to kod headerinclude.
Tu ładujesz jedną bibiotekę
Kod:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
za chwilę inną
Kod:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
Bajzel w tym kodzie masz, może dlatego nie działa.
Usunąłem
Kod:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
i różnicy nie widzę, pomóżcie mi prosze z resztą.
Spróbuj:
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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<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/tipTip/jquery.tipTip.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
    jQuery(".tooltip").tipTip({maxWidth:"270px"});
    jQuery(".tooltip_right").tipTip({defaultPosition:"right"});
    jQuery(".tooltip_top").tipTip({defaultPosition:"top"});
    jQuery(".tooltip_bottom").tipTip({defaultPosition:"bottom"});
    jQuery(".subject_editable").tipTip({defaultPosition:"bottom"});
    jQuery(".tooltip_left").tipTip({defaultPosition:"left"});
    jQuery(".postbutton").tipTip({defaultPosition:"top"});
    jQuery(".bigpostbutton").tipTip({defaultPosition:"top"});
    jQuery(".ajax_mark_read").tipTip({defaultPosition:"right"});
});
</script>
<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.leanModal.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(jQuery) {
        jQuery('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
<link type="text/css" rel="stylesheet" href="{$mybb->settings['bburl']}/jscripts/tipTip/tipTip.css"/>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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.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}
Niestety nie działa - może to wina innych szablonów?
Powiedz mi:

1. Czy na defaultowym to samo jest?
2. Po co Ci toolTip jak z niego nie korzystasz?
3. Po co Ci topTop jak z niego nie korzystasz?
4. Po co Ci colorpicker jak z niego nie korzystasz?
5. Spróbuj jeszcze raz:
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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<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.9.0/jquery.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.leanModal.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(jQuery) {
        jQuery('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });
});
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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}
Dalej jest to samo.. :/

Teraz mi również nie działa po kliknięciu "Edytuj" - przenosi do edycji na nowej stronie zamiast wyskakiwać menu z napisem "szybka edycja", "edycja", "moderuj"

I na innych mi działa.
To zmień styl, może jest uszkodzony.
Ale na początku wszystko działało, teraz coś się spieprzyło.

Ostatnio jedynie kombinowałem przy global.css przy obramowaniach i kolorach tabelek.
Stron: 1 2