Announcement

Collapse
No announcement yet.

Where is this script coming from?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loco.M
    replied
    Originally posted by Marvin Hlavac View Post
    Could someone please explain what the script does? Is it safe to remove it (at least for guests?). Will any functionality be broken? Which one?

    I see the code not just on FORUMHOME & FORUMDISPLAY, but also in SHOWTHREAD pages. In SHOWTHREAD pages the code seems a bit different (larger). Would it be advisable to remove it from home & forums, and leave it as is in threads?
    You'll need to ask at vbseo.com for support on their product..

    Leave a comment:


  • Marvin Hlavac
    replied
    I removed the following code marked in red color from functions_vbseo_hook.php, but it didn't seem to have any effect:

    Code:
    break;
    case 'forumhome_complete':
    [COLOR=#ff0000]vbseo_insert_code(
    "if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}",
    'onload');[/COLOR]
    if(!is_array($GLOBALS['birthdays']))
    {
    In the footer of my home, I still see the following code:

    Code:
    <script type="text/javascript">
    //<=!=[=C=D=A=T=A=[
    
    window.orig_onload = window.onload;
    window.onload = function() {
    if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}
    
    if(typeof window.orig_onload == "function") window.orig_onload();
    }
    
    //]=]=>
    </script>
    
    How do I remove the script from my footer?

    Leave a comment:


  • Marvin Hlavac
    replied
    Could someone please explain what the script does? Is it safe to remove it (at least for guests?). Will any functionality be broken? Which one?

    I see the code not just on FORUMHOME & FORUMDISPLAY, but also in SHOWTHREAD pages. In SHOWTHREAD pages the code seems a bit different (larger). Would it be advisable to remove it from home & forums, and leave it as is in threads?

    Leave a comment:


  • philg
    replied
    nakz, its vbseo that adds it. And I believe it an error on their behalf for placing it on the forumhome and showforum..

    You can remove it by editing vbseo/includes/functions_vbseo_hook.php

    find:
    case 'forumhome_complete':

    Regards,
    Phil

    Leave a comment:


  • Lynne
    replied
    I recognize the vBulletin_init(); call as being in the footer, so I would guess that other stuff is in the footer also. (You can always do a Search in Templates for it.)

    Leave a comment:


  • nakz
    started a topic Where is this script coming from?

    Where is this script coming from?

    I think this script is causing an overflow error on IE Browser.
    Where can i find it?


    Code:
    <script type="text/javascript"><!--
    
    window.orig_onload = window.onload;
    window.onload = function() {
    if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}
    
    if(typeof window.orig_onload == "function") window.orig_onload();
    }
    
    //-->
    </script>
    </body>
    
    </html>
    
    
    
    <script type="text/javascript">
    <!--
    	// Main vBulletin Javascript Initialization
    	vBulletin_init();
    //-->
    </script>
    
    <script type="text/javascript"><!--
    
    window.orig_onload = window.onload;
    window.onload = function() {
    if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}
    
    if(typeof window.orig_onload == "function") window.orig_onload();
    }
    
    //-->
    </script>
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X