MyBB Community Forums

Full Version: Forum Popups + Headerinclude
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys! I would really appreciate it if you could help me sort out a very annoying problem that I have been facing.

Basically, my popups were broken where the 'Report' feature was not working, the login popup was displayed in the bottom left corner of the screen, the myalerts popup was not shown at all. After all this happened I managed to fix it by adding 'Modal Start' '.blocker' class to my 'global.css', what this did was make the 'Report' feature work, as well as make the login and myalerts popups appear in the top left corner of the screen. But the problem is that i want them to appear in the middle of the screen like they are meant todo. 

I am almost 100% sure that it is something todo with my headerinclude template as it was messily made by me, due to the fact that I don't have much knowledge on how to make it work properly. Please find my headerinclude template below, it would be great if you could help me fix it up.

<!-- start: headerinclude -->
<link rel="Shortcut icon" href="favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="/jscripts/jquery.js"></script>
<script type="text/javascript"  src="/jscripts/general.js"></script>
<script type="text/javascript"  src="/jscripts/report.js"></script>
<script type="text/javascript" src="/jscripts/jquery.plugins.min.js"></script>																	   														   
<link href="//fonts.googleapis.com/css?family=Roboto:400,500,700,700italic,500italic,400italic" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,700" rel="stylesheet" type="text/css">
<link href="images/poly/css/bootstrap.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
    var unreadAlerts = '';				
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";		
	var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
</script>
<script type="text/javascript" src="/jscripts/myalerts.js"></script>
{$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='' />";
    var modal_zindex = 9999;
// -->
</script>
<!-- end: myalerts_js_popup -->
<!-- end: headerinclude -->
Your forum url?