Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 1 Year, 6 Months ago Error in mybb 1.8.13
#21
Solved: 1 Year, 6 Months ago
(11-12-2017, 06:05 PM)Starnova Wrote: My error is no one can including me can log into the forum. the button is not functional although I do not have a problem logging into the admin

https://ebookprism.com

Can you login on the login page, here: https://ebookprism.com/member.php?action=login

There are lots of JS errors on your site, mostly relating to mixed content:

   
Reply
#22
Solved: 1 Year, 6 Months ago
Thank you that solved my log in...

Now the JS what version should I use in heade include for starters ??


Reply
#23
Solved: 1 Year, 6 Months ago
Can you pos tthe current content of the "headerinclude" template? That way I can look and show you what needs changing.
Reply
#24
Solved: 1 Year, 6 Months ago
Yes I will be glad to here are the only 2 themes I use:

Default:

<meta property="fb:app_id" content="497725110352334">
<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->asset_url}/jscripts/jquery.js?ver=1813"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1809"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1813"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/myproattach.css" type="text/css" media="screen" />
	<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.form.js"></script>
	<script type="text/javascript" src="{$mybb->asset_url}/jscripts/myproattach.js"></script>
<link href='//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'>
	{$stylesheets}
<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 = "<img src='" + spinner_image +"' alt='' style='display: none' /><i class='fa fa-spinner fa-spin'></i>";
	var modal_zindex = 9999;
</script>
	
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/myproattach.css" type="text/css" media="screen" />
	<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.form.js"></script>
	<script type="text/javascript" src="{$mybb->asset_url}/jscripts/myproattach.js"></script>
	
	{$stylesheets}{$stylesheets}{$stylesheets}






Ebook custom made: This is where I feel the problem is...

<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" />
<!-- Add Favicon -->
<link rel="Shortcut icon" href="{$theme['imgdir']}/favicon.ico" />
<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>

{$stylesheets}

<!-- Postbit Attachment Thumbnails  Lightbox -->
 <link rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/lightbox/css/lightbox.css">
<script src="{$mybb->asset_url}/themes/e-book_mecca/lightbox/js/lightbox.js"></script>
<script src="{$mybb->asset_url}/themes/e-book_mecca/lightbox/js/jquery.cookie.js"></script>

<!-- FontAwesome -->
<link rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/fontawesome/css/font-awesome.min.css">

<!-- Google Font -->
<link href="{$mybb->asset_url}/themes/e-book_mecca/fonts/roboto/roboto.css" rel="stylesheet" type="text/css">
<link href="{$mybb->asset_url}/themes/e-book_mecca/fonts/bungee/bungee.css" rel="stylesheet" type="text/css">

<!-- Progress Bar -->
<link type="text/css" rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/progbar/nprogress.css">
<script type="text/javascript" src="{$mybb->asset_url}/themes/e-book_mecca/progbar/nprogress.js"></script>
<script>
    NProgress.configure({ showSpinner: false });
        $(document).ready(function() {
            NProgress.start();
            NProgress.done();
        });
</script>

<!-- Fixed Upper Panel -->
<script type="text/javascript">
$(document).ready(function() {
    $(document).scroll(function () {
        var headHt = $("#header").height()-64;
        if ($(this).scrollTop() > headHt) {
        $('#panel').addClass('fixed');
        }
        else {
        $('#panel').removeClass('fixed');
        }
    });
});
</script>

<!-- Blockquote Expand/Collapse -->
<!--//
<script type="text/javascript">
$(document).ready(function () {
    $('blockquote').addClass('collapsed');
        $('blockquote').click(function(){
        $(this).toggleClass("expanded collapsed");
        e.preventDefault();
    });
});
</script>
//-->

<!-- Blockquote Collapsed/Expand -->
<!--//
<script type="text/javascript">
$(document).ready(function() {
      $('blockquote').each(function() {
          var active = this,
              expand = function() {
                  if (active.offsetHeight > 250) {
                      $(active).addClass('blockquote-collapsed').click(function() {
                          $(active).off("click").removeClass('blockquote-collapsed');
                      });
                  }
              };
          expand();
          $(this).on("elementResized", expand).find("img").one("load", expand);
      });
  });
</script>
//-->

<!-- Blockquote Collapsed/Expand -->
<script type="text/javascript">
$(document).ready(function() {
       $('blockquote').each(function() {
           var active = this,
               expand = function() {
                   if (active.offsetHeight > 250) {
                       $(active).addClass('collapsed').click(function() {
                           $(active).off("click").removeClass('collapsed');
                       });
                   }
               };
           expand();
           $(this).on("elementResized", expand).find("img").one("load", expand);
       });
   });
</script>

<!-- Codeblock Collapsed/Expand -->
<script type="text/javascript">
$(document).ready(function() {
       $('div.codeblock').each(function() {
           var active = this,
               expand = function() {
                   if (active.offsetHeight > 250) {
                       $(active).addClass('collapsed').click(function() {
                           $(active).off("click").removeClass('collapsed');
                       });
                   }
               };
           expand();
           $(this).on("elementResized", expand).find("img").one("load", expand);
       });
   });
</script>

<!-- Topmenu select -->
<script type="text/javascript">
$(document).ready(function(){
    $("#topmenu ul li a").each(function () {
           if (location.href.indexOf(this.href) > -1)
           {
                $(this).parent().attr("class", "selected");
                return false;
           }
     });
});
</script>

<!-- bxSlider CSS file -->
<link href="{$mybb->asset_url}/themes/e-book_mecca/bxslider/css/jquery.bxslider.css" rel="stylesheet" />

<!-- bxSlider Javascript file -->
<script src="{$mybb->asset_url}/themes/e-book_mecca/bxslider/js/jquery.bxslider.js"></script>

<!-- bxSlider init start -->
<script type="text/javascript">
$(document).ready(function(){
 $('.bxslider').bxSlider({
   auto: true,
   mode: 'fade'
 });
 });
</script>
<!-- bxSlider init end -->

<!-- Content BG -->
<script type="text/javascript">
$(document).ready(function(){    
    if($.cookie('background')){     
        $("body").css("backgroundImage", "url(" + "themes/e-book_mecca/bg/" + $.cookie("background") + ".png)");
    };
    $(".bg_style").click(function () {  
         $(".bg_preview").slideToggle('fast');
         return false;
    });
    $(".bg_preview a").click(function() {
        var bg_id = $(this).attr("id");
          $("body").css("backgroundImage", "url(" + "themes/e-book_mecca/bg/" + bg_id + ".png)");
        $.cookie('background', bg_id, { expires: 365, path: '/' });
    });    
});
</script> 

<script src="{$mybb->asset_url}/themes/e-book_mecca/tooltips/jquery-ui.js"></script>
  <script>
$(document).ready(function(){ 
    $( document ).tooltip();
  });
  </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 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>


Reply
#25
Solved: 1 Year, 6 Months ago
I've cleaned it up a little for you:

<meta property="fb:app_id" content="497725110352334">
<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->asset_url}/jscripts/jquery.js?ver=1813"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1809"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1813"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/myproattach.css" type="text/css" media="screen" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.form.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/myproattach.js"></script>
<link href='//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'>

{$stylesheets}

<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='' style='display: none' /><i class='fa fa-spinner fa-spin'></i>";
    var modal_zindex = 9999;
</script>
    
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/myproattach.css" type="text/css" media="screen" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.form.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/myproattach.js"></script>

<!-- Add Favicon -->
<link rel="Shortcut icon" href="{$theme['imgdir']}/favicon.ico" />
<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>

<!-- Postbit Attachment Thumbnails  Lightbox -->
<link rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/lightbox/css/lightbox.css">
<script src="{$mybb->asset_url}/themes/e-book_mecca/lightbox/js/lightbox.js"></script>
<script src="{$mybb->asset_url}/themes/e-book_mecca/lightbox/js/jquery.cookie.js"></script>

<!-- FontAwesome -->
<link rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/fontawesome/css/font-awesome.min.css">

<!-- Google Font -->
<link href="{$mybb->asset_url}/themes/e-book_mecca/fonts/roboto/roboto.css" rel="stylesheet" type="text/css">
<link href="{$mybb->asset_url}/themes/e-book_mecca/fonts/bungee/bungee.css" rel="stylesheet" type="text/css">

<!-- Progress Bar -->
<link type="text/css" rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/progbar/nprogress.css">
<script type="text/javascript" src="{$mybb->asset_url}/themes/e-book_mecca/progbar/nprogress.js"></script>
<script>
    NProgress.configure({ showSpinner: false });
    $(document).ready(function() {
        NProgress.start();
        NProgress.done();
    });
</script>

<!-- Fixed Upper Panel -->
<script type="text/javascript">
$(document).ready(function() {
    $(document).scroll(function () {
        var headHt = $("#header").height()-64;
        if ($(this).scrollTop() > headHt) {
        $('#panel').addClass('fixed');
        }
        else {
        $('#panel').removeClass('fixed');
        }
    });
});
</script>

<!-- Blockquote Expand/Collapse -->
<!--//
<script type="text/javascript">
$(document).ready(function () {
    $('blockquote').addClass('collapsed');
        $('blockquote').click(function(){
        $(this).toggleClass("expanded collapsed");
        e.preventDefault();
    });
});
</script>
//-->

<!-- Blockquote Collapsed/Expand -->
<!--//
<script type="text/javascript">
$(document).ready(function() {
      $('blockquote').each(function() {
          var active = this,
              expand = function() {
                  if (active.offsetHeight > 250) {
                      $(active).addClass('blockquote-collapsed').click(function() {
                          $(active).off("click").removeClass('blockquote-collapsed');
                      });
                  }
              };
          expand();
          $(this).on("elementResized", expand).find("img").one("load", expand);
      });
  });
</script>
//-->

<!-- Blockquote Collapsed/Expand -->
<script type="text/javascript">
$(document).ready(function() {
       $('blockquote').each(function() {
           var active = this,
               expand = function() {
                   if (active.offsetHeight > 250) {
                       $(active).addClass('collapsed').click(function() {
                           $(active).off("click").removeClass('collapsed');
                       });
                   }
               };
           expand();
           $(this).on("elementResized", expand).find("img").one("load", expand);
       });
   });
</script>

<!-- Codeblock Collapsed/Expand -->
<script type="text/javascript">
$(document).ready(function() {
       $('div.codeblock').each(function() {
           var active = this,
               expand = function() {
                   if (active.offsetHeight > 250) {
                       $(active).addClass('collapsed').click(function() {
                           $(active).off("click").removeClass('collapsed');
                       });
                   }
               };
           expand();
           $(this).on("elementResized", expand).find("img").one("load", expand);
       });
   });
</script>

<!-- Topmenu select -->
<script type="text/javascript">
$(document).ready(function(){
    $("#topmenu ul li a").each(function () {
           if (location.href.indexOf(this.href) > -1)
           {
                $(this).parent().attr("class", "selected");
                return false;
           }
     });
});
</script>

<!-- bxSlider CSS file -->
<link href="{$mybb->asset_url}/themes/e-book_mecca/bxslider/css/jquery.bxslider.css" rel="stylesheet" />

<!-- bxSlider Javascript file -->
<script src="{$mybb->asset_url}/themes/e-book_mecca/bxslider/js/jquery.bxslider.js"></script>

<!-- bxSlider init start -->
<script type="text/javascript">
$(document).ready(function(){
  $('.bxslider').bxSlider({
    auto: true,
    mode: 'fade'
  });
});
</script>
<!-- bxSlider init end -->

<!-- Content BG -->
<script type="text/javascript">
$(document).ready(function(){    
    if($.cookie('background')){     
        $("body").css("backgroundImage", "url(" + "themes/e-book_mecca/bg/" + $.cookie("background") + ".png)");
    };
    $(".bg_style").click(function () {  
         $(".bg_preview").slideToggle('fast');
         return false;
    });
    $(".bg_preview a").click(function() {
        var bg_id = $(this).attr("id");
          $("body").css("backgroundImage", "url(" + "themes/e-book_mecca/bg/" + bg_id + ".png)");
        $.cookie('background', bg_id, { expires: 365, path: '/' });
    });    
});
</script> 

<script src="{$mybb->asset_url}/themes/e-book_mecca/tooltips/jquery-ui.js"></script>
<script>
$(document).ready(function(){ 
    $( document ).tooltip();
  });
</script>

You also need to make the CSS edit from here: https://community.mybb.com/thread-213964...pid1288154
Reply
#26
Solved: 1 Year, 6 Months ago
(11-13-2017, 10:11 PM)Euan T Wrote: I've cleaned it up a little for you:

<meta property="fb:app_id" content="497725110352334">
<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->asset_url}/jscripts/jquery.js?ver=1813"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1809"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1813"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/myproattach.css" type="text/css" media="screen" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.form.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/myproattach.js"></script>
<link href='//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet' type='text/css'>

{$stylesheets}

<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='' style='display: none' /><i class='fa fa-spinner fa-spin'></i>";
    var modal_zindex = 9999;
</script>
    
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/myproattach.css" type="text/css" media="screen" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.form.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/myproattach.js"></script>

<!-- Add Favicon -->
<link rel="Shortcut icon" href="{$theme['imgdir']}/favicon.ico" />
<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>

<!-- Postbit Attachment Thumbnails  Lightbox -->
<link rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/lightbox/css/lightbox.css">
<script src="{$mybb->asset_url}/themes/e-book_mecca/lightbox/js/lightbox.js"></script>
<script src="{$mybb->asset_url}/themes/e-book_mecca/lightbox/js/jquery.cookie.js"></script>

<!-- FontAwesome -->
<link rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/fontawesome/css/font-awesome.min.css">

<!-- Google Font -->
<link href="{$mybb->asset_url}/themes/e-book_mecca/fonts/roboto/roboto.css" rel="stylesheet" type="text/css">
<link href="{$mybb->asset_url}/themes/e-book_mecca/fonts/bungee/bungee.css" rel="stylesheet" type="text/css">

<!-- Progress Bar -->
<link type="text/css" rel="stylesheet" href="{$mybb->asset_url}/themes/e-book_mecca/progbar/nprogress.css">
<script type="text/javascript" src="{$mybb->asset_url}/themes/e-book_mecca/progbar/nprogress.js"></script>
<script>
    NProgress.configure({ showSpinner: false });
    $(document).ready(function() {
        NProgress.start();
        NProgress.done();
    });
</script>

<!-- Fixed Upper Panel -->
<script type="text/javascript">
$(document).ready(function() {
    $(document).scroll(function () {
        var headHt = $("#header").height()-64;
        if ($(this).scrollTop() > headHt) {
        $('#panel').addClass('fixed');
        }
        else {
        $('#panel').removeClass('fixed');
        }
    });
});
</script>

<!-- Blockquote Expand/Collapse -->
<!--//
<script type="text/javascript">
$(document).ready(function () {
    $('blockquote').addClass('collapsed');
        $('blockquote').click(function(){
        $(this).toggleClass("expanded collapsed");
        e.preventDefault();
    });
});
</script>
//-->

<!-- Blockquote Collapsed/Expand -->
<!--//
<script type="text/javascript">
$(document).ready(function() {
      $('blockquote').each(function() {
          var active = this,
              expand = function() {
                  if (active.offsetHeight > 250) {
                      $(active).addClass('blockquote-collapsed').click(function() {
                          $(active).off("click").removeClass('blockquote-collapsed');
                      });
                  }
              };
          expand();
          $(this).on("elementResized", expand).find("img").one("load", expand);
      });
  });
</script>
//-->

<!-- Blockquote Collapsed/Expand -->
<script type="text/javascript">
$(document).ready(function() {
       $('blockquote').each(function() {
           var active = this,
               expand = function() {
                   if (active.offsetHeight > 250) {
                       $(active).addClass('collapsed').click(function() {
                           $(active).off("click").removeClass('collapsed');
                       });
                   }
               };
           expand();
           $(this).on("elementResized", expand).find("img").one("load", expand);
       });
   });
</script>

<!-- Codeblock Collapsed/Expand -->
<script type="text/javascript">
$(document).ready(function() {
       $('div.codeblock').each(function() {
           var active = this,
               expand = function() {
                   if (active.offsetHeight > 250) {
                       $(active).addClass('collapsed').click(function() {
                           $(active).off("click").removeClass('collapsed');
                       });
                   }
               };
           expand();
           $(this).on("elementResized", expand).find("img").one("load", expand);
       });
   });
</script>

<!-- Topmenu select -->
<script type="text/javascript">
$(document).ready(function(){
    $("#topmenu ul li a").each(function () {
           if (location.href.indexOf(this.href) > -1)
           {
                $(this).parent().attr("class", "selected");
                return false;
           }
     });
});
</script>

<!-- bxSlider CSS file -->
<link href="{$mybb->asset_url}/themes/e-book_mecca/bxslider/css/jquery.bxslider.css" rel="stylesheet" />

<!-- bxSlider Javascript file -->
<script src="{$mybb->asset_url}/themes/e-book_mecca/bxslider/js/jquery.bxslider.js"></script>

<!-- bxSlider init start -->
<script type="text/javascript">
$(document).ready(function(){
  $('.bxslider').bxSlider({
    auto: true,
    mode: 'fade'
  });
});
</script>
<!-- bxSlider init end -->

<!-- Content BG -->
<script type="text/javascript">
$(document).ready(function(){    
    if($.cookie('background')){     
        $("body").css("backgroundImage", "url(" + "themes/e-book_mecca/bg/" + $.cookie("background") + ".png)");
    };
    $(".bg_style").click(function () {  
         $(".bg_preview").slideToggle('fast');
         return false;
    });
    $(".bg_preview a").click(function() {
        var bg_id = $(this).attr("id");
          $("body").css("backgroundImage", "url(" + "themes/e-book_mecca/bg/" + bg_id + ".png)");
        $.cookie('background', bg_id, { expires: 365, path: '/' });
    });    
});
</script> 

<script src="{$mybb->asset_url}/themes/e-book_mecca/tooltips/jquery-ui.js"></script>
<script>
$(document).ready(function(){ 
    $( document ).tooltip();
  });
</script>

You also need to make the CSS edit from here: https://community.mybb.com/thread-213964...pid1288154
Thank you so very much Euan!
Yes I will get that file I put it on the default however it will not work.... but that's another story lol  My forum creator is gone has been since May I can only hope he's okay...Thank goodness you helped me.. thank you again


Reply
#27
Solved: 1 Year, 6 Months ago
No problem, glad I could help Smile
Reply
#28
Solved: 1 Year, 6 Months ago
(11-08-2017, 12:19 PM).m. Wrote: ^ Thank You Smile
with MyBB 1.8.13 release announcement, we have a note saying that theme’s CSS files might need updating
however at present could not get what exactly needs to be changed & where ..

modal related css in the global.css  (after /** jGrowl End **/)
/** Modal Start **/

.blocker {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	z-index: 9999;
	padding: 20px;
	box-sizing: border-box;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.75);
	text-align: center;
}

.blocker:before{
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.05em;
}

.blocker.behind {
	background-color: transparent;
}

.modal {
	width: 400px;
	text-align: left;
	background: #fff;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	z-index: 2;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
	-webkit-box-shadow: 0 0 10px #000;
	-moz-box-shadow: 0 0 10px #000;
	-o-box-shadow: 0 0 10px #000;
	-ms-box-shadow: 0 0 10px #000;
	box-shadow: 0 0 10px #000;
}

.modal a.close-modal {
	position: absolute;
	top: -12.5px;
	right: -12.5px;
	display: block;
	width: 30px;
	height: 30px;
	text-indent: -9999px;
	background: url(images/close.png) no-repeat 0 0;
}

.modal-spinner {
	display: none;
	width: 64px;
	height: 64px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-right: -32px;
	margin-top: -32px;
	background: url(images/spinner_big.gif) no-repeat center center;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
}

/** Modal End **/

Are you saying that we should delete the current "modal" and replace it with that? Or should we just paste that at the end?

I did the latter and it worked but I have two "modals" now and it bothers me. We're supposed to have one right?
Reply
#29
Solved: 1 Year, 6 Months ago
yes, delete old modal and replace with the posted
Reply
#30
Solved: 1 Year, 6 Months ago
(11-20-2017, 03:56 AM)bv64 Wrote: yes, delete old modal and replace with the posted

I checked the code and it's exactly the same so obviously it won't make a difference if I replace it. It would be nice if someone could explain why it's working when you paste it in the end as well.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)