Solved: 6 Years, 1 Month, 1 Week ago [JavaScript] Not working.
#1
Solved: 6 Years, 1 Month, 1 Week ago
So I have been wrestling with the Javascript recently. Just doesn't seem to be working. It has a mind of its own, deciding when it wants to work and when it doesn't. So I've replaced the javascript files, looked over the headerincludes (reverted it back and fourth), noconflict etc. Is there anything I'm missing? The tabs and upper nav ain't working, along with the mod tools etc. Anything related to java.

Here's my headerinclude;
<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 name="theme-color" content="#0d5b7c">
<link rel="icon" sizes="64x44" href="logo64.png">
<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/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1800"></script>



<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets}
<link rel="shortcut icon" href="favicon.ico" />
<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 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= "";
    var spinner = "<div class='modal-spinner'></div>";
    var dateformat = "{$mybb->settings['dateformat']}";
    var timeformat = "{$mybb->settings['timeformat']}";
    var default_avatar = "{$mybb->settings['useravatar']}";
// -->
</script>




<script type="text/javascript" src="{$theme['imgdir']}/theme_functions.js"></script>


<script type="text/javascript">
    var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" />

<link href="{$theme['imgdir']}/theme_stylesheet.php" rel="stylesheet" />

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tabcontent.js">
/***********************************************
* Tab Content script v2.2- copyright Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<script type="text/javascript" src="http://www.realforums.org/jscripts/jquery.plugins.min.js?ver=1800"></script>
The forum in question is realforums.org

Javascript isn't my 'forte'.
Plugin Count: I lost count.
Public Plugins are available here.
Official GitHub.
Please do not PM me for support unless asked to.
Reply
#2
Solved: 6 Years, 1 Month, 1 Week ago
Can you move:

<script type="text/javascript" src="http://www.realforums.org/jscripts/jquery.plugins.min.js?ver=1800"></script>

Above:

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1800"></script>

Placement is bothering me for some reason.

This:

<script type="text/javascript" src="http://www.realforums.org/jscripts/jquery.plugins.min.js?ver=1800"></script>

Should look like this, right?:

<script src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
Find me here or at my new blog about MyBB, Web Design, SEO
My Services
MyBB Themes
Reply
#3
Solved: 6 Years, 1 Month, 1 Week ago
(2015-03-23, 10:34 PM)ThemeFreaknet Wrote: Can you move:

<script type="text/javascript" src="http://www.realforums.org/jscripts/jquery.plugins.min.js?ver=1800"></script>

Above:

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1800"></script>

Placement is bothering me for some reason.

This:

<script type="text/javascript" src="http://www.realforums.org/jscripts/jquery.plugins.min.js?ver=1800"></script>

Should look like this, right?:

<script src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>

Eh, looks like that might have just fixed the problem. Let's see if this happens again in the next 24 hours. If not, I'll indicate and mark your post as the best answer Smile
Plugin Count: I lost count.
Public Plugins are available here.
Official GitHub.
Please do not PM me for support unless asked to.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)