Quote:
Originally Posted by butty
cheers for the reply andrew. when i remove the following code out of my footer then it works with no errors but im not sure what this code is what it does or if its needed or not lol any ideas?
|
Yes, this is the standard VB page initialisation.
The first bit is used by VB to auto-reset your users' times when daylight saving time/summer time begins.
PHP Code:
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
The next bit carries out a whole load of vb initialisation, to make sure that your pop-up menus, etc, work properly. I'll bet that the error is coming from here - you might try just removing these lines. Am not sure how this is interacting with vbadvanced/LDM, though.
PHP Code:
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>