MyBB Community Forums

Full Version: Inline moderation not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I just problem with Inline Thread Moderation. Doesn't select when I click in theards... When I change
from
Quote:jquery/1.4.1/
on
Quote:jquery/1.9.1/
then not working button Login.

I have version MyBB 1.6.8 and my code from headerinclude is:

Quote:<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->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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="images/CoffeeStyl/js/lightbox_me.js"></script>
<script type="text/javascript" src="images/CoffeeStyl/js/animate-bg.js"></script>

{$stylesheets}
<script type="text/javascript">
jQuery(function($) {
$('#menu_class').click(function () {
$('ul.the_menu').slideToggle('medium');
});

$("div.profil_kat1").fadeIn();
$("div.profil_kat2").css("display", "none");

$("ul#nav li a").addClass("js");
$("ul#nav li a").hover(function() {
$(this).stop(true, true).animate({
backgroundPosition : "(0 0)"
}, 600);
$(this).animate({
backgroundPosition : "(0 -5px)"
}, 150);
}, function() {
$(this).animate({
backgroundPosition : "(0 -119px)"
}, 500);
});
function launch() {
$('#sign_up').lightbox_me({
centered : true,
onLoad : function() {
$('#sign_up').find('input:first').focus()
}
});
}


$('#try-1').click(function(e) {
$("#sign_up").lightbox_me({
centered : true,
onLoad : function() {
$("#sign_up").find("input:first").focus();
}
});
e.preventDefault();
});
$('.close').click(function(e) {
$('#pasek_gorny').animate({opacity: 1,}, 1000);
$("#sign_up").fadeOut();
});
$('table tr:nth-child(even)').addClass('stripe');
$(".profil_nav > li").click(function(e) {
switch(e.target.id) {
case "profil_kat1":
$("#profil_kat1").addClass("active");
$("#profil_kat2").removeClass("active");
$("div.profil_kat1").fadeIn();
$("div.profil_kat2").css("display", "none");
break;
case "profil_kat2":
$("#profil_kat1").removeClass("active");
$("#profil_kat2").addClass("active");
$("div.profil_kat2").fadeIn();
$("div.profil_kat1").css("display", "none");
break;
}
return false;
});
});

</script>

Please write me how can I improve it?
comment out jQuery scripts and the other two extra scripts (lightbox, animate) and check if inline moderation works.
Sorry but I don't understand what have I do
find below code in headerinclude template
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="images/CoffeeStyl/js/lightbox_me.js"></script>
<script type="text/javascript" src="images/CoffeeStyl/js/animate-bg.js"></script>

enclose above lines with <!-- --> , that is it looks like below
<!--
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="images/CoffeeStyl/js/lightbox_me.js"></script>
<script type="text/javascript" src="images/CoffeeStyl/js/animate-bg.js"></script>
-->

save the template and check if inline moderation works.
I added this arrows but inline moderation not working
>When I change
>from
> Quote:jquery/1.4.1/
>on
> Quote:jquery/1.9.1/
>then not working button Login.

jQuery 1.9.0 removed browser detection ($.browser method)
lightbox_me.js isn't working because it uses browser detection functions, e.g.:
   ie6 = ($.browser.msie && $.browser.version < 7);
Removing lines related to ie6 should make it work with new jquery...
ref.: https://github.com/buckwilson/Lightbox_me/issues/49
OK, this change 1.4.1 -> 1.9.1 I got from users forum.mybb.pl
below code is missing from the headerinclude template
<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>