View Full Version : A navbar question about found js code
chick
04-30-2008, 08:03 PM
I have not upgraded my boards yet (fear) being long overdue for cleaning them up I noticed in the 'breadcrumbs navbar area' of one, I have found the following JS and do not recall putting it there. Both are 3.6.8 versions. Do I need this JS code on one of boards? when it is not on the other?
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<!-- breadcrumb, login, pm info -->
Thanks for any answer help.
SmileyR
04-30-2008, 08:05 PM
thats the warning asking if you are sure u wanna log out i believe
chick
04-30-2008, 11:11 PM
Yes I see that but it is on one board and not the other. I checked logging out on both boards and they appear to logout the same way (ask and grey out) so I thought maybe this js code is there in the navbar by mistake? If it is, I must have put it there, that means it belongs somewhere else but where?
Lynne
05-01-2008, 02:31 AM
You can always go to your template > View History > and then compare the default vb template to your template and see what is missing. I believe that code is supposed to be in the navbar template. However, sometimes when you have a custom style, it gets moved around.
edit: Hmmm, I coulda sworn I recognized that code but I can't find it being used on my site. Perhaps it was moved to one of the .js files cuz I definitely see it being called in the source code.
chick
05-01-2008, 06:22 AM
Thanks Lynne, I will look at that history. No guru here and I don't understand the code so any hints help.
Dismounted
05-01-2008, 06:31 AM
That code was part of the vBulletin default style. I don't know if it still is though.
chick
05-01-2008, 11:01 AM
Thanks dismounted. They are both 3.6.8 and both default syles (I just changed the colors and over wrote images with my own) but I'm going to delete that js code and see if it works correctly. If not I'll just put it back. Thank you again.
Dismounted
05-01-2008, 11:39 AM
That code is the logout prompt asking if you want to log out.
chick
05-01-2008, 02:41 PM
Thank you, it must be somewhere else too because I deleted it and it still works properly.
I just downloaded my 3.7's as I really should up grade the boards but I'm afraid of errors, BIG chicken. brak brak
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.