Dołącz do zespołu ekspertów! Backend lub Frontend Developer?

Sprawdź najnowsze oferty pracy naszego partnera - 8lines.io!

Brak reakcji ze strony skryptu po kliknięciu w "Zgłoś do moderatora" - javascript

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

wersja skryptu MyBB: 1.8

Cos chyba jest z moim javascript bo nie moge np zglosic postu do moderacji. Rowniez przy odpowiadaniu z cytowaniem nie ma cytowanego tekstu. Obecnie uzywam starego szablonu grafifor ale ten sam problem jest jak przelacze sie na szablon standardowy. Rowniez edytor tekstu w obu wariantach jest niedostepny


Kod w headerinclude
<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="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<
script type="text/javascript">jQuery.noConflict();</script
{
$stylesheets}

<!-- 
UNREADPOSTS_CSS -->
<
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}

<
script type="text/javascript">
jQuery(document).ready(function() {
    
    
    
jQuery("#topnav li").prepend("<span></span>"); //Throws an empty span tag right before the a tag
    
    
jQuery("#topnav li").each(function() { //For each list item...
        
var linkText jQuery(this).find("a").html(); //Find the text inside of the a tag
        
jQuery(this).find("span").show().html(linkText); //Add the text in the span tag
    
});
    
    
jQuery("#topnav li").hover(function() {    //On hover...
        
jQuery(this).find("span").stop().animate({
            
marginTop"-40" //Find the span tag and move it up 40 pixels
        
}, 250);
    } , function() { 
//On hover out...
        
jQuery(this).find("span").stop().animate({
            
marginTop"0" //Move the span back to its original state (0px)
        
}, 250);
    });
    
    
});



jQuery.noConflict();
</
script>


<
script type="text/javascript">

jQuery(document).ready(function(){

    
jQuery("#nicemenu img.arrow").click(function(){ 
                                
        
jQuery("span.head_menu").removeClass('active');
        
        
submenu jQuery(this).parent().parent().find("div.sub_menu");
        
        if(
submenu.css('display')=="block"){
            
jQuery(this).parent().removeClass("active");     
            
submenu.hide();         
            
jQuery(this).attr('src','images/GrafiforPL/bg/trojkat_hover.png');        
        }else{
            
jQuery(this).parent().addClass("active");     
            
submenu.fadeIn();         
            
jQuery(this).attr('src','images/GrafiforPL/bg/trojkat_select.png');    
        }
        
        
jQuery("div.sub_menu:visible").not(submenu).hide();
        
jQuery("#nicemenu img.arrow").not(this).attr('src','images/GrafiforPL/bg/trojkat.png');
                        
    })
    .
mouseover(function(){ jQuery(this).attr('src','images/GrafiforPL/bg/trojkat_hover.png'); })
    .
mouseout(function(){ 
        if(
jQuery(this).parent().parent().find("div.sub_menu").css('display')!="block"){
            
jQuery(this).attr('src','images/GrafiforPL/bg/trojkat.png');
        }else{
            
jQuery(this).attr('src','images/GrafiforPL/bg/trojkat_select.png');
        }
    });

    
jQuery("#nicemenu span.head_menu").mouseover(function(){ jQuery(this).addClass('over')})
                                 .
mouseout(function(){ jQuery(this).removeClass('over') });
    
    
jQuery("#nicemenu div.sub_menu").mouseover(function(){ jQuery(this).fadeIn(); })
                               .
blur(function(){ 
                                       
jQuery(this).hide();
                                    
jQuery("span.head_menu").removeClass('active');
                                });        
                                
    
jQuery(document).click(function(event){         
            var 
target jQuery(event.target);
            if (
target.parents("#nicemenu").length == 0) {                
                
jQuery("#nicemenu span.head_menu").removeClass('active');
                
jQuery("#nicemenu div.sub_menu").hide();
                
jQuery("#nicemenu img.arrow").attr('src','images/GrafiforPL/bg/trojkat.png');
            }
    });               
                               
                                   
});

</
script
Snake_ napisał 30.09.2014, 16:34:
Poprawiam tytuł wątku oraz przenoszę do odpowiedniego działu.
[Obrazek: modnotice_howto.png][Obrazek: modnotice_search.png]
https://webboard.pl/thread-36416.html

Po raz kolejny brak adresu forum, wiec radź sobie sam
też miałem ten problem, możesz spróbować zrobić analogicznie do mojego naprawionego
<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="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

<script type="text/javascript">
  jQuery(document).ready(function($){
    $('.dropDownHook span').on('click',function(){
      $(this).parents('.dropDownHook').children('.dropDownContent').stop(true,true).slideToggle('fast',function(){
        if($('.dropDownContent').is(':visible')){
          $('.dropDownHook span').html('Welcome {$mybb->user['username']} &#9650');
        }
        else{
          $('.dropDownHook span').html('Welcome {$mybb->user['username']} &#9660');
        }}
                                                                                               );
    });
    $('html').on('click',function(){
      $('.dropDownContent:visible').slideToggle('fast');
    });
    $('.dropDownHook > *').on('click',function(event){
      event.stopPropagation();
    });
  });
</script>

<script type="text/javascript">
  jQuery(document).ready(function($){
    $(".stab_content").hide();
    $("ul.stabs li:first").addClass("active").show();
    $(".stab_content:first").show();
    $("ul.stabs li").click(function(){
      $("ul.stabs li").removeClass("active");
      $(this).addClass("active");
      $(".stab_content").hide();
      var activeTab=$(this).find("a").attr("href");
      $(activeTab).fadeIn();
      return false;
    });
  });
</script>

<script type="text/javascript">
jQuery.noConflict();
jQuery(function($) {
    $(".clickedbuttons").hide();
    $(".clickbutton").click(function() {
        $(".sidebar").animate({height: "hide", opacity: 0}, 250,
            function() {
                $(".forums").animate({width: "100%"}, 250);
            });
        $(this).hide();
        $(".clickedbuttons").show();
        $.cookie("sidebar","collapsed", {expires: 365});
        return false;
    });
    $(".clickedbuttons").click(function() {
        $(".forums").animate({width: "77%"}, 250,
            function() {
                $(".sidebar").animate({height: "show", opacity: 1}, 250);
            });
        $(this).hide();
        $(".clickbutton").show();
        $.cookie("sidebar","expanded", {expires: 365});
        return false;
    });
    if($.cookie("sidebar") == "collapsed") {
        $(".clickbutton").hide();
        $(".clickedbuttons").show();
        $(".forums").css("width","100%");
        $(".sidebar").hide();
    };
});
</script>

<script type="text/javascript">
jQuery(document).ready(function($)
{
    // Make the jQuery modal login redirect you back to the page you're currently on //
    $('#loginModal input[name="url"]').attr("value", window.location);
    // /Login redirect //

    // Modal Boxes //
    $('a[name="modal"]').on('click', function(event)
    {
        event.preventDefault();
        
        var target = $(this).attr('rel');
        
        // Set up the shadowing
        var maskHeight = $(document).height();
        var maskWidth = $(window).width();
        $('#mask').css({'width': maskWidth, 'height': maskHeight});
        $('#mask').fadeIn(1000);    
        $('#mask').fadeTo("slow", 0.8);  
        
        // Position the actual modal
        var winH = $(window).height();
        var winW = $(window).width();
        $(target).css('top',  (winH / 2) - ($(target).height() / 2));
        $(target).css('left', (winW / 2) - ($(target).width() / 2));
        $(target).fadeIn(2000);
    });
    
    $('.modalBox a[rel="closeModal"]').on('click', function(event)
    {
        event.preventDefault();
        $('#mask, .modalBox').hide();
    });
    
    $('#mask').on('click', function ()
    {
        $(this).hide();
        $('.modalBox').hide();
    });
    // /Modal Boxes //
});
</script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/df.js"></script>
{$stylesheets}
<link rel="stylesheet" href="images/df/font/font-awesome.min.css">
<link rel="stylesheet" href="images/df/font/font-awesome-ie7.min.css">




<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">
<!--
    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>
Tyle razy już to tu wałkowaliśmy - style pod MyBB 1.6 nie są kompatybilne ze skryptem MyBB 1.8, także zlecasz aktualizację komuś / sam to robisz - a najlepszym wyjściem będzie użycie stylu pisanego pod MyBB 1.8.
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.



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

1 gości