Page 1 of 1

Can any one tell me how many wrong JS i have in this - pleas

Posted: 04 Jan 2012, 23:28
by themission

Code: Select all

</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
<script src="{ROOT_PATH}script/jquery-1.7.min.js" type="text/javascript"></script>
<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
<!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->
<script src="{ROOT_PATH}script/jquery.totemticker.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$('#vertical-ticker').totemticker({
				row_height	:	'41px',
				max_items   :   3,
				speed       :   {JSSCROLL_SPEED},
				interval    :   {JSSCROLL_INTERVAL},
				<!-- IF TS_JSSCROLL_NAVIGATION -->
				next		:	'#ticker-next',
				previous	:	'#ticker-previous',
				stop		:	'#stop',
				start		:	'#start',
				<!-- ENDIF -->
				mousestop	:	true,
				direction	:	'<!-- IF TS_JSSCROLL_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->'
	});
});
// ]]>
</script>
<!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->
<script src="{ROOT_PATH}script/jquery.newsticker.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$("#news").newsTicker();
});
// ]]>
</script>
<!-- ENDIF -->
<!-- ENDIF -->
<script type="text/javascript" src="{ROOT_PATH}highslide/highslide-full.js"></script>
<link href="{ROOT_PATH}highslide/highslide.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
// <![CDATA[
hs.graphicsDir = '{ROOT_PATH}highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.dimmingOpacity = 0.75;

// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: 0.75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/tooltip.js"></script>
<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF S_IN_ARCADE -->
	<link href="{T_THEME_PATH}/arcade.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<script type="text/javascript" src="{ROOT_PATH}js/leaderboard/overlib.js"></script>
<script type="text/javascript" src="{ROOT_PATH}js/leaderboard/leaderboard.js"></script>
    <!--phpBB Pretty Sociable by Slash & Stoker www.wiizard.it www.phpbb3bbcodes.com-->

    <!-- IF SCRIPT_NAME == "viewtopic" or SCRIPT_NAME == "viewforum" -->
    <script type="text/javascript" src="{ROOT_PATH}script/prettySociable/js/jquery.prettySociable.js"></script>
    <!-- ENDIF -->

    <script type="text/javascript">
    // <![CDATA[
    $(document).ready(function(){
       <!-- IF SCRIPT_NAME == "viewtopic" or SCRIPT_NAME == "viewforum" -->
       $.prettySociable();
       <!-- ENDIF -->   
    });
    // ]]>
    </script>
    <!--[if lte IE 6]><script src="{ROOT_PATH}script/prettySociable/js/DD_belatedPNG.js" type="text/javascript"></script><![endif]-->

    <!-- IF SCRIPT_NAME == "viewtopic" or SCRIPT_NAME == "viewforum" -->
    <link rel="stylesheet" href="{ROOT_PATH}script/prettySociable/css/prettySociable.css" type="text/css" media="screen" />
    <!-- ENDIF -->

    <!--phpBB Pretty Sociable by Slash & Stoker www.wiizard.it www.phpbb3bbcodes.com-->
<!-- IF S_MCHAT_ENABLE and (S_MCHAT_ON_INDEX or U_MCHAT) -->
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery.titlealert.min.js"></script>
<!-- ENDIF -->
<script type="text/javascript" src="{ROOT_PATH}script/collapse/jquery.collapse.js"></script>
<!-- // START jQuery Live Signature Character Counter // -->
<!-- IF (SCRIPT_NAME == 'ucp') -->
<script type="text/javascript">
// <![CDATA[
	if (window.jQuery === undefined) {
		document.write(unescape('%3Cscript src="{ROOT_PATH}script/jquery-latest.min.js" type="text/javascript"%3E%3C/script%3E'));
	}
// ]]>
</script>
<script type="text/javascript" src="{ROOT_PATH}script/jquery.maxlength.min.js"></script>
<!-- ENDIF -->
<!-- // END jQuery Live Signature Character Counter // -->

</head>
Am trying to get the collapse forums etc - i know theres a lot of mins etc but doing my head in :o

EDIT = what do i need to delete or keep ?

Can any one tell me how many wrong JS i have in this - pleas

Posted: 04 Jan 2012, 23:32
by Vox Populi
Not all java scripts play well with each other. You need to work backwards and remove the last js and keep going from there if you are having problems. It's not that hard to track down java problems.

Can any one tell me how many wrong JS i have in this - pleas

Posted: 04 Jan 2012, 23:44
by doktornotor
Looks like you have cut off some at the top? :lol:

Cannot see something terribly wrong there off hand, those mutiple $(document).ready(function(){}; instances should be combined all into one... arguably these also belong rather in overall_footer.html. But as said above, with so much JS there is always potential for conflict.

Can any one tell me how many wrong JS i have in this - pleas

Posted: 05 Jan 2012, 11:01
by themission
Ok thanks, will have a fiddle with it - its not my main theme so no worries ;)

Can any one tell me how many wrong JS i have in this - pleas

Posted: 07 Jan 2012, 15:08
by RMcGirr83
I see that you have all this wonderful jQuery add-ons, yet I don't see any link to the jQuery library.

Can any one tell me how many wrong JS i have in this - pleas

Posted: 07 Jan 2012, 16:36
by doktornotor
RMcGirr83 wrote:I see that you have all this wonderful jQuery add-ons, yet I don't see any link to the jQuery library.

Code: Select all

<script src="{ROOT_PATH}script/jquery-1.7.min.js" type="text/javascript"></script>
almost at the very top of the mess :D