vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A navbar question about found js code (https://vborg.vbsupport.ru/showthread.php?t=177651)

chick 04-30-2008 08:03 PM

A navbar question about found js code
 
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?

Quote:

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(gray scale=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


All times are GMT. The time now is 05:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01070 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete