Not Solved [How To?] inline moderation Fix "UPDATE"
#1
Not Solved
So i tried Matt's fix for the inline update but it was still broken so i decided to fix it myself"took a bit of effort lol"

but here is the code i used it should work with most custom themes.

<link rel="stylesheet" href="{$theme['imgdir']}/css/bootstrap.min.css">
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){ 
$(".forumbit_subforums").each(function () {
if($(this).length){
 $(this).parents(".rowbit").find("a[data-subforum]").addClass("smalltext").attr("data-subforum", "true");
}
}); 
});
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colpick.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet"> 
<link href="https://fonts.googleapis.com/css?family=Anton" rel="stylesheet"> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1810"></script>
<script type="text/javascript" src="{$theme['imgdir']}/js/jquery.cookie.js"></script>
<script type="text/javascript" src="{$theme['imgdir']}/js/theme.js"></script>

    
    
    <script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets} 
<!-- UNREADPOSTS_CSS -->
<link href="{$theme['imgdir']}/css/index-sidebar.css" rel="stylesheet" type="text/css" />
<link href="{$theme['imgdir']}/css/jquery.tipsy.css" rel="stylesheet" type="text/css" />
<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 cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
    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 type="text/javascript">
//ScrollToTop
jQuery(document).ready(function() {
   var offset = 100;
   var duration = 250;
   jQuery(window).scroll(function() {
       if (jQuery(this).scrollTop() > offset) {
           jQuery(".scrolltotop").fadeIn(duration);
       } else {
           jQuery(".scrolltotop").fadeOut(duration);
           }
   });
   
   jQuery('.scrolltotop').click(function(event) {
       event.preventDefault();
       jQuery('html, body').animate({scrollTop: 0}, 600);
           return false;
       })
});
</script>{$myalerts_js}{$myalerts_js}
<script src="{$mybb->settings['bburl']}/jscripts/rainbow.js"></script>
<script>
$(function() {
$('.foo').rainbow({animate:true,animateInterval:120,colors:['##ff0000','#ff4000','#ff8000','#ffbf00','#ffff00','#bfff00','#80ff00','#40ff00','#00ff00','#00ff40','#00ff80','#00ffbf','#00ffff','#00bfff','#0080ff','#0040ff','#0000ff','#4000ff','#8000ff','#bf00ff','#ff00ff','#ff00bf','#ff0080','#ff0040','#ff0000']});
$('.bar').rainbow({animate:true,animateInterval:200,pauseLength:500,pad:true,colors:['rgb(153, 204, 255);','rgb(173, 224, 255);','rgb(193, 244, 255);','rgb(213, 264, 255);','rgb(193, 244, 255);','rgb(173, 224, 255);','rgb(153, 204, 255);']});});
</script><script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets} <script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets}
it does have a few plugins that most mybb sites use like myadvertisement already included.
[Image: latest?cb=20140105190402]
Reply
#2
Not Solved
basically multiple loading of a script should be avoided (even if its a different version of the script)

not sure how (& why) you have multiple times of jQuery & myadvertisements scripts !
Reply
#3
Not Solved
(2017-12-09, 10:07 AM).m. Wrote: basically multiple loading of a script should be avoided (even if its a different version of the script)

not sure how (& why) you have multiple times of jQuery & myadvertisements scripts !

it is a fully responsive theme, needed multiple jQuery or some functions won't work,
and with myads 2 spots 2 codes,

sounds odd i know but it works.
[Image: latest?cb=20140105190402]
Reply
#4
Not Solved
Quote:... needed multiple jQuery or some functions won't work
I am not sure about it !

Quote:... with myads 2 spots 2 codes
single loading of the script is sufficient
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)