Quote:
Originally Posted by buro9
Had a nice problem relating to the footer template and the inline javascript.
It compressed to:
<script type="text/javascript"><!-- // There was a vbulletin comment here vBulletin_init(); // Initialize 'Active' Table Cells //activecells_init();//--></script>
The problem with that is that // is a line comment, and then there is no line break, so the whole javascript is commented out, and menu's do not get initialised, etc.
The result is that those swishy JavaScript drop down menus break.
You can fix this by updating your footer template to just have:
<script type="text/javascript">vBulletin_init();/script>
In place of the larger block. That does it for me
Aside from that minor problem, this hack is wonderful.
I'm going to go off and search for other places that might be impacted by this though... recommendation: Don't compress JavaScript at all... leave line breaks in.
|
Buro, did you try the new version? Mutli-Line javascript is left in its standard format short of tabs.
ie. using the updated version, my footer looks like this (Compressed Template):
http://narutotalk.org
HTML Code:
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
// Initialize 'Active' Table Cells
//activecells_init();
//-->
</script></body> </html>