• To show a blog directory that I was the owner of my site I pasted their brief link line of text at the end of my header. I just checked & that text seems to have disappeared and been replaced by 2 fat paragraphs, which seems like a lot of blah blah for a simple link. Can anyone decipher this code?

    <script type="text/javascript">
    <!--
    function bb2_addLoadEvent(func) {
    	var oldonload = window.onload;
    	if (typeof window.onload != 'function') {
    		window.onload = func;
    	} else {
    		window.onload = function() {
    			oldonload();
    			func();
    		}
    	}
    }
    
    bb2_addLoadEvent(function() {
    	for ( i=0; i < document.forms.length; i++ ) {
    		if (document.forms[i].method == 'post') {
    			var myElement = document.createElement('input');
    			myElement.setAttribute('type', 'hidden');
    			myElement.name = 'bb2_screener_';
    			myElement.value = '1251678258 69.86.110.247';
    			document.forms[i].appendChild(myElement);
    		}
    	}
    });
    // --></script>

    Site is https://savvysavingbytes.com/

    Many thanks to anyone who can give me a clue here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • That code is part of the BadBehavior plugin. It adds a hidden field to any forms you have (such as comment posting forms) and when you submit a comment for example, the plugin checks that the correct info was posted in the hidden field. Its unrelated to the code you added to the header.

    [signature moderated Please read the Forum Rules]

    Thread Starter saphire2

    (@saphire2)

    Thanks so much for your explanation. But it still leaves the mystery of whatever happened to the line of code from the blog directory that I thought I pasted at the bottom of the header.

    That BadBehavior plugin is great, by the way. It stops all kinds of junk from entering my site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Line of text in header multiplies into 2 paragraphs’ is closed to new replies.