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

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

Edytor tekstowy

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

wersja skryptu MyBB:1.6.11
adres forum: endless-game.xaa.pl/mybb
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam.
Edytor tekstu wychodził mi poza ramkę więc postanowiłem to naprawić tym tutem: https://webboard.pl/wiki.php?naprawa-edy...owego.html

Teraz brakuje mi tego:
http://zapodaj.net/64bcdb7fe5e69.jpg.html (nie widziałem jak to nazwać)

Screen:
http://zapodaj.net/07f3b5dfd56c5.jpg.html
Poproszę konto testowe.
Jeśli przeprowadziłeś wszystkie zmiany zgodnie z poradnikiem, przybornik nie miał prawa zniknąć.

Jest to zapewne 892438923789 konflikt jQuery z Prototype w MyBB, pokaż szablon headerinclude.
No tak, w konsoli wszystko widać :D. Dodaj tą linię:
<script type="text/javascript">jQuery.noConflict();</script>

w headericlude po

tej:

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
Nie działa.
headericlude:
<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" />
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pl_PL/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</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/jquery.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tiptip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/yetii.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<script>
jQuery.noConflict();
jQuery(document).ready(function(){
    jQuery(function () {
        // scroll body to 0px on click
        jQuery('#back-top').click(function () {
            jQuery('body,html').animate({
                scrollTop: 0
            }, 800);
            return false;
        });
    });
        jQuery(".loginbutton").click(function(e) {
            e.preventDefault();
            jQuery(".loginbutton_menu").slideToggle("fast");
            jQuery(".loginbutton").toggleClass("loginbutton_menu_open");
        });
        jQuery(".loginbutton_menu").mouseup(function() {
            return false
        });
        jQuery(document).mouseup(function(e) {
            if(jQuery(e.target).parent("a.loginbutton").length==0) {
                jQuery(".loginbutton").removeClass("loginbutton_menu_open");
                jQuery(".loginbutton_menu").slideUp("fast",  function() {display: 'toggle'});;
            }
            
        });
jQuery(function(){
jQuery(".pmpopup").tipTip({defaultPosition: "top", fadeIn: 300});
});
});
</script>



<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/deflection/functions.js"></script>
<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>
jQuery.noConflict();
jQuery(document).ready(function() {    
    //select all the a tag with name equal to modal
    jQuery('a[name=modal]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag
        var id = jQuery(this).attr('href');
    
        //Get the screen height and width
        var maskHeight = jQuery(document).height();
        var maskWidth = jQuery(window).width();
    
        //Set height and width to mask to fill up the whole screen
        jQuery('#mask').css({'width':maskWidth,'height':maskHeight});
        
        //transition effect        
        jQuery('#mask').fadeIn("fast");
        jQuery('#mask').fadeTo("slow",0.5);    
    
        //Get the window height and width
        var winH = jQuery(window).height();
        var winW = jQuery(window).width();
              
    
        //transition effect
        jQuery(id).fadeIn("slow");
    
    });
    
    //if close button is clicked
    jQuery('.window .close').click(function (e) {
        //Cancel the link behavior
        e.preventDefault();
        jQuery('#mask, .window, #loginbox').fadeOut("slow");
    });        
    
    //if mask is clicked
    jQuery('#mask').click(function () {
        jQuery(this).fadeOut("slow");
        jQuery('.window').fadeOut("slow");
    });            
    
});
</script>




{$newpmmsg}
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/custom_status.js"></script>
Spróbuj tak:
<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" />
<
div id="fb-root"></div>
<
script>(function(dsid) {
  var 
jsfjs d.getElementsByTagName(s)[0];
  if (
d.getElementById(id)) return;
  
js d.createElement(s); js.id id;
  
js.src "//connect.facebook.net/pl_PL/all.js#xfbml=1";
  
fjs.parentNode.insertBefore(jsfjs);
}(
document'script''facebook-jssdk'));</script>





<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tiptip.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/yetii.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<
script type="text/javascript">jQuery.noConflict();</script>
{
$stylesheets}
<
script>
jQuery.noConflict();
jQuery(document).ready(function(){
    
jQuery(function () {
        
// scroll body to 0px on click
        
jQuery('#back-top').click(function () {
            
jQuery('body,html').animate({
                
scrollTop0
            
}, 800);
            return 
false;
        });
    });
        
jQuery(".loginbutton").click(function(e) {
            
e.preventDefault();
            
jQuery(".loginbutton_menu").slideToggle("fast");
            
jQuery(".loginbutton").toggleClass("loginbutton_menu_open");
        });
        
jQuery(".loginbutton_menu").mouseup(function() {
            return 
false
        
});
        
jQuery(document).mouseup(function(e) {
            if(
jQuery(e.target).parent("a.loginbutton").length==0) {
                
jQuery(".loginbutton").removeClass("loginbutton_menu_open");
                
jQuery(".loginbutton_menu").slideUp("fast",  function() {display'toggle'});;
            }
            
        });
jQuery(function(){
jQuery(".pmpopup").tipTip({defaultPosition"top"fadeIn300});
});
});
</
script>

<
script type="text/javascript" src="{$mybb->settings['bburl']}/images/deflection/functions.js"></script>
<
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>
jQuery.noConflict();
jQuery(document).ready(function() {    
    
//select all the a tag with name equal to modal
    
jQuery('a[name=modal]').click(function(e) {
        
//Cancel the link behavior
        
e.preventDefault();
        
//Get the A tag
        
var id jQuery(this).attr('href');
    
        
//Get the screen height and width
        
var maskHeight jQuery(document).height();
        var 
maskWidth jQuery(window).width();
    
        
//Set height and width to mask to fill up the whole screen
        
jQuery('#mask').css({'width':maskWidth,'heigh?t':maskHeight});
        
        
//transition effect        
        
jQuery('#mask').fadeIn("fast");
        
jQuery('#mask').fadeTo("slow",0.5);    
    
        
//Get the window height and width
        
var winH jQuery(window).height();
        var 
winW jQuery(window).width();
              
    
        
//transition effect
        
jQuery(id).fadeIn("slow"); 
    
    });
    
    
//if close button is clicked
    
jQuery('.window .close').click(function (e) {
        
//Cancel the link behavior
        
e.preventDefault();
        
jQuery('#mask, .window, #loginbox').fadeOut("slow");
    });        
    
    
//if mask is clicked
    
jQuery('#mask').click(function () {
        
jQuery(this).fadeOut("slow");
        
jQuery('.window').fadeOut("slow");
    });            
    
});
</
script>




{
$newpmmsg}
<
script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/custom_status.js"></script
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
Zamieniasz na:
{$stylesheets}
<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" />
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pl_PL/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</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">
<!--
    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 language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/custom_status.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/deflection/functions.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tiptip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/yetii.js"></script>
<script>
jQuery(document).ready(function(){
    jQuery(function () {
        // scroll body to 0px on click
        jQuery('#back-top').click(function () {
            jQuery('body,html').animate({
                scrollTop: 0
            }, 800);
            return false;
        });
    });
        jQuery(".loginbutton").click(function(e) {
            e.preventDefault();
            jQuery(".loginbutton_menu").slideToggle("fast");
            jQuery(".loginbutton").toggleClass("loginbutton_menu_open");
        });
        jQuery(".loginbutton_menu").mouseup(function() {
            return false
        });
        jQuery(document).mouseup(function(e) {
            if(jQuery(e.target).parent("a.loginbutton").length==0) {
                jQuery(".loginbutton").removeClass("loginbutton_menu_open");
                jQuery(".loginbutton_menu").slideUp("fast",  function() {display: 'toggle'});;
            }
            
        });
jQuery(function(){
jQuery(".pmpopup").tipTip({defaultPosition: "top", fadeIn: 300});
});
});
</script>
<script>
jQuery(document).ready(function() {    
    //select all the a tag with name equal to modal
    jQuery('a[name=modal]').click(function(e) {
        //Cancel the link behavior
        e.preventDefault();
        //Get the A tag
        var id = jQuery(this).attr('href');
    
        //Get the screen height and width
        var maskHeight = jQuery(document).height();
        var maskWidth = jQuery(window).width();
    
        //Set height and width to mask to fill up the whole screen
        jQuery('#mask').css({'width':maskWidth,'heigh​t':maskHeight});
        
        //transition effect        
        jQuery('#mask').fadeIn("fast");
        jQuery('#mask').fadeTo("slow",0.5);    
    
        //Get the window height and width
        var winH = jQuery(window).height();
        var winW = jQuery(window).width();
              
    
        //transition effect
        jQuery(id).fadeIn("slow");
    
    });
    
    //if close button is clicked
    jQuery('.window .close').click(function (e) {
        //Cancel the link behavior
        e.preventDefault();
        jQuery('#mask, .window, #loginbox').fadeOut("slow");
    });        
    
    //if mask is clicked
    jQuery('#mask').click(function () {
        jQuery(this).fadeOut("slow");
        jQuery('.window').fadeOut("slow");
    });            
    
});
</script>
Też nie działa :(
1. Wyłącz Codepress w Preferencjach ACP
2. Wstaw jeszcze raz mój kod (nadal jest jakiś inny)
Jestem troche zielony jak wyłączyć Codepress
Bodajże ACP → I tam w ustawieniach ACP poszukaj.
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