Status update błąd z kodem skryptu w index

Błąd   Założony przez  Reees.

wersja skryptu MyBB: 1.8
adres forum: cspostrzelaj.pl/forum
na czym polega problem (screen, opis, komunikaty, nazwa i wersja wtyczki): Gdy instaluje plugin Status update - https://webboard.pl/thread-63359.html      to przy dodawaniu do index wyświetla się taki błąd http://screenshot.sh/m19tt0YPFE1hF
Sprawdzałem i wywala ten sam błąd przy wrzuceniu tego kodu w inny szablon. Dodaje prawidłowo pod {$headerinclude}, sprawdzałem z wyłączoną i właczoną wtyczką.
Kod skryptu ktory trzeba dodać do index:
<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>

@edit - Temat do zamknięcia/usunięcia. Plugin dodał odpowiednie zmienne sam lecz dopiero po którymś tam resecie, więc temat nieaktualny :)
(25.02.2016, 23:03)Reees napisał(a): Kod skryptu ktory trzeba dodać do index:
<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>
Supryk napisał(a): Do szablony index dopisz zmienną {$statusupdate}

nie widze w tym temacie nic o wpisywaniu tego kodu do index
(25.02.2016, 23:15)musicpower napisał(a): nie widze w tym temacie nic o wpisywaniu tego kodu do index

W pacze pluginu jest, pokaz swoj szablon index



Użytkownicy przeglądający ten wątek:

1 gości