Adding Adsnes to proxy?

Discussion in 'HTML & Website Design' started by gonecrazy, Jan 26, 2010.

  1. #1
    Hello everyone. I have just built my first proxy site. I'm using the Glyp script. I have figured out how to add Adsense on the home page but I can't figure out how to add the code to show ads under the address bar when people go to a site.
    Just in case i'm not wording this right-- If somebody uses my proxy, enters a URL then it takes them to the page and has the URL bar at the top of the page. I want to put an ad under that bar. Please help!!
    Thanks in advance.
     
    gonecrazy, Jan 26, 2010 IP
  2. danniel

    danniel Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use the same script like you on http://rzz.in
    Edit index.php on line 1120-1123
    Please pm me if you cannot handle.
     
    danniel, Jan 26, 2010 IP
  3. gonecrazy

    gonecrazy Guest

    Messages:
    605
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Excellent. I will try that. thanks. By the way I followed your link and got an error on the site. Mayube your just working on it right now but I thought I would let you know. thanks for your input.
     
    gonecrazy, Jan 26, 2010 IP
  4. danniel

    danniel Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I deleted one file by mistake. It's working now.
     
    danniel, Jan 26, 2010 IP
  5. gonecrazy

    gonecrazy Guest

    Messages:
    605
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Looks good. I have figured out how to adsense to the main page I want to add it under the URL bar after they go to a page. doesnt look like you have done that either. Thanks for your help though.
     
    gonecrazy, Jan 26, 2010 IP
  6. gonecrazy

    gonecrazy Guest

    Messages:
    605
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok, I figured it out. Its line 1157 if you want to do it yourself. Here is where I added it
    
    [COLOR="red"]        $_url_form .= '[/COLOR]<div align="center"><script type="text/javascript"><!--
    google_ad_client = "pub-123456789";
    /* 728x90, created 1/26/10 */
    google_ad_slot = "1498989310";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></div>[COLOR="red"]</form></div>';
            $_response_body = preg_replace('#\<\s*body(.*?)\>#si', "$0\n$_url_form" , $_response_body, 1);
        }
    }[/COLOR]
    
    
    Code (markup):

    Edit:

    After reading this article I will be removing and looking for another advertisor that will allow this.

    seroundtable.com/archives/013542.html
     
    Last edited: Jan 26, 2010
    gonecrazy, Jan 26, 2010 IP