Webboard

Pełna wersja: Nie działa moderacja zbiorowa, szybka odpowiedź i modnotice
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.8.6
adres forum: http://silverhax.pl/
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Cześć, wiem że taki wątek był setki razy, lecz przejrzałem multum tych wątków i żaden mi nie pomógł.

Nie działa moderacja zbiorowa, szybka odpowiedź i modnotice. To wszystko przez pliki JS tak myślę. Wgrywałem do headerinclude czyste linijki z szablonu, w którym wszystko działało i nic nie mam pojęcia co i jak.

Moje headerinclude:
Kod:
<link rel="stylesheet" href="{$mybb->asset_url}/inc/sh5/css/bootstrap.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="{$mybb->asset_url}/inc/sh5/css/AdminLTE.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="{$mybb->asset_url}/inc/sh5/css/_all-skins.css">

<link rel="shortcut icon" href="images/bootstrap/favicon.ico" type="image/x-icon" />
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<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=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/mylikes.js?ver=100"></script>


<script>
$(document).ready(function(){
   $('[data-toggle="tooltip"]').tooltip();
});
</script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
 $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.5 -->
<script src="{$mybb->asset_url}/inc/sh5/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="{$mybb->asset_url}/inc/sh5/js/app.min.js"></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='' />";
    var modal_zindex = 9999;
</script>
<script>
 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

 ga('create', 'UA-59786616-1', 'auto');
 ga('send', 'pageview');
</script>
Trudno w strzelić w dziesiątkę przy takim problemie, więc najlepiej wgraj czysty headerinclude (robiąc kopię obecnego, choć jest u nas na forum, więc nie zginie) i po kolei dodawaj skrypty zewnętrzne.
Wszytko działa oprócz szybkiej odpowiedzi. Szybka odpowiedź działa ale po odświeżeniu strony, a tak nie powinno być.

Obecny headerinclude

Kod:
<link rel="stylesheet" href="{$mybb->asset_url}/inc/sh5/css/bootstrap.css">
<link rel="stylesheet" href="{$mybb->asset_url}/inc/sh5/css/AdminLTE.css">
<link rel="stylesheet" href="{$mybb->asset_url}/inc/sh5/css/_all-skins.css">
<link href="{$mybb->asset_url}/inc/sh5/icheck/skins/square/green.css" rel="stylesheet">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">

<link rel="shortcut icon" href="images/bootstrap/favicon.ico" type="image/x-icon" />
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<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=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/mylikes.js?ver=100"></script>


<!-- <script src="http://silverhax.pl/inc/sh5/icheck/js/icheck.js"></script>
<script>
$(document).ready(function(){
 $('input').iCheck({
   checkboxClass: 'icheckbox_square-green',
   radioClass: 'iradio_square-green',
   increaseArea: '20%' // optional
 });
});
</script> -->

<script src="http://silverhax.pl/inc/sh5/js/bootstrap.min.js"></script>
<!-- <script src="http://silverhax.pl/inc/sh5/js/app.js"></script>
<script src="http://silverhax.pl/inc/sh5/js/dashboard.js"></script>-->

<script>
$(document).ready(function(){
   $('[data-toggle="tooltip"]').tooltip();
});
</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>
Czyli skoro tylko to nie działa, to może być problem w szablonie postbit.
Wklejałem do siebie domyślny szablon postbit i też nic nie pomagało.

Mój postbit:
Kod:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
  <div class="post_head">
     <span class="post_date" style="float: left;">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
     <div style="float: right;">{$post['posturl']}</div>
     {$post['subject_extra']}
  </div>
  <div class="post_author">
     {$post['useravatar']}
     <div class="author_information">
        <span class="author_link">{$post['profilelink']}</span><br />
        <span class="author_title">
        {$post['usertitle']}<br />
        </span>
     </div>
  </div>
  <div class="post_content">
     <div class="post_body scaleimages" id="pid_{$post['pid']}">
        {$post['message']}
     </div>
     {$post['attachments']}
     {$post['signature']}
  </div>
  <div class="post_controls">
     <div class="author_buttons float_left" style="margin-bottom: 5px;">
        {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_like']}
     </div>
     <div class="post_management_buttons float_right" style="margin-bottom: 5px;">
        {$post['button_edit']}
        {$post['button_report']}
     </div>
  </div>
</div>