• Hi there

    My site is at http://www.quickweightlossplus.com.

    I get the following line of code, in each and every post on my blog:
    document.write(String.fromCharCode(60,100,105,118,32,115,116,121,108,101,61,34,102,108
    (This is only the beginning, as this line goes on forever.)

    I tried a search in the forums with the above line of code, but couldn’t find anything.
    When I Googled it, I only get a list of three sites, all with the same problem as me.

    Can someone please help me in getting rid of this line of code? Thank you. (For interest’s sake, what is it and how did it get there?)

    Adriaan

Viewing 8 replies - 1 through 8 (of 8 total)
  • I don’t see it (IE7, nothing else at work that I can try). I’d just use the Windows Explorer search function to look inside the WP files for “document.write”. My guess is that you’ll find it in the index.php of the theme not wrapped in code properly. Do you see the string on the index, the single post view, the archives, etc. or just on the index?

    Ah, I DO see it in the source of your website. It’s not your index.php I guess, since it’s also in single or archive view. For coders, it comes just after this:

    <div class="entrybody">
    <script type="text/javascript">

    Any idea what “entrybody” is? A part of your stylesheet/style.css?

    [edit], this does refer to an entry part of the stylesheet, but I think it’s something else ‘calling java’, a recently installed plugin perhaps?

    When the code is executed it inserts the following HTML code
    <div style="text-align: center;margin: 3px;"><script type="text/javascript"><!-- google_ad_client = "pub-4433609472666563"; google_alternate_color = "FFFFFF"; google_ad_width = 125; google_ad_height = 125; google_ad_format = "125x125_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = ""; google_color_link = ""; google_color_bg = ""; google_color_text = ""; google_color_url = ""; google_ui_features = "rc:10"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div><p1>Welcome to www.quickweightlosstips.com!</h1> <p><strong>Start loosing weight now!</strong></p>

    It’s Google AdSense. Most likely yours. Anyway, check the ID: pub-4433609472666563.

    Update:

    There are many similar scripts on your home page. The first one was AdSense code. The rest are the posts themselves. E.g.:

    <div style="float:left; padding: 12px"><a href="/wp-content/uploads/cc/quick_weight_loss_tips36.jpg"><img src="/wp-content/uploads/cc/quick_weight_loss_tips36.jpg" title='quick weight loss tips' alt='quick weight loss tips' /></a></div> <div><em><strong>Jayson Hunter</strong> asked: </em><br /><br /><br />ght loss follows with the right frame of mind. To lose weight fast, you need to be in the right frame of mind. I believe too many people enter into a diet plan without mentally preparing for it first.<br /><br />Quick weight loss is possible...

    I have no idea why they are encoded. Hiding from search engines?

    Thread Starter adriaanlouw

    (@adriaanlouw)

    Thanks for the replies.

    I installed three plugins yesterday:
    1. Caffeinated content 3.3.1
    2. Uniquefier 3.0
    3. Adsense & YPN

    They must be the culprits?

    This must be the Uniquefier. Here is an excerpt from their site:

    It is a well known fact that search engines (for google has been proofed) can run and index non advanced JavaScript from your pages. This is why, by using a special technique we place the original articles under a JavaScript run.

    Thread Starter adriaanlouw

    (@adriaanlouw)

    Thanks UseShots

    I’m going to remove the Uniquefier plugin now.

    THANK YOU
    “I’m going to remove the Uniquefier plugin now.”

    That did it for me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘A weird line of code in every post.’ is closed to new replies.