Posts: 15,129
Threads: 240
Joined: Jun 2009
Reputation:
703
2017-11-12, 08:43 PM
(This post was last modified: 2017-11-12, 08:44 PM by Euan T.)
(2017-11-12, 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:
Posts: 997
Threads: 276
Joined: Jun 2009
Reputation:
7
2017-11-13, 03:42 AM
(This post was last modified: 2017-11-13, 03:44 AM by Starnova.)
Thank you that solved my log in...
Now the JS what version should I use in heade include for starters ??
Posts: 15,129
Threads: 240
Joined: Jun 2009
Reputation:
703
2017-11-13, 06:30 PM
Can you pos tthe current content of the "headerinclude" template? That way I can look and show you what needs changing.
Posts: 997
Threads: 276
Joined: Jun 2009
Reputation:
7
2017-11-13, 06:54 PM
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>
Posts: 15,129
Threads: 240
Joined: Jun 2009
Reputation:
703
2017-11-13, 10:11 PM
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
Posts: 997
Threads: 276
Joined: Jun 2009
Reputation:
7
2017-11-13, 11:47 PM
(2017-11-13, 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
Posts: 15,129
Threads: 240
Joined: Jun 2009
Reputation:
703
2017-11-14, 10:32 PM
No problem, glad I could help
Posts: 76
Threads: 18
Joined: Apr 2017
Reputation:
3
2017-11-19, 11:19 PM
(This post was last modified: 2019-06-07, 04:07 PM by lomazzo. Edited 1 time in total.)
Posts: 911
Threads: 13
Joined: Feb 2017
Reputation:
90
2017-11-20, 03:56 AM
yes, delete old modal and replace with the posted
Posts: 76
Threads: 18
Joined: Apr 2017
Reputation:
3
2017-11-20, 07:06 PM
(This post was last modified: 2019-06-07, 04:07 PM by lomazzo. Edited 1 time in total.)
|