How to add an advertisement in this PHP page? (Free Stumble/Digg if you can help!)

Discussion in 'PHP' started by Renegadez, Jan 3, 2008.

  1. #1
    I am running phproxy 5 (.php page is incldued below)

    http://www.nomorepasting.com/getpaste.php?pasteid=9298
    Code (markup):
    & I want to add a popunder code for when people start visiting other sites using the proxy.

    How do I do this? I am unsure of where to add the javascript code for the popunder!

    Thanks.

    +Rep for anyone who helps.

    Or I'll StumbleUpon their page, or Digg, etc.
     
    Renegadez, Jan 3, 2008 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    On this line:

    $_url_form = '<div style="width:100%;margin:0;text-align:ce

    put the javascript code before the "<div"
     
    matthewrobertbell, Jan 3, 2008 IP
  3. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3


    I am currently in the office so I am unable to test this so I slapped it together rather fast.

    But this will Show a message box.

    Doesn't have to you can easily include "something.html";

    Or even doe a <<<EOF:
     

    Attached Files:

    LittleJonSupportSite, Jan 3, 2008 IP
  4. Renegadez

    Renegadez Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Parse error: syntax error, unexpected T_STRING in /home/prxy/public_html/index.php on line 1143


    Trying yours LittleJohn.
     
    Renegadez, Jan 3, 2008 IP
  5. Renegadez

    Renegadez Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Didn't work either, john :(
     
    Renegadez, Jan 3, 2008 IP
  6. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Post the lines you altered and i'll point out the error.
     
    matthewrobertbell, Jan 3, 2008 IP
  7. Renegadez

    Renegadez Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    its cuz the code has spaces and ' stuff (like google's adsense publishing code) and it gave me that error

    pasted in the front of <div
     
    Renegadez, Jan 3, 2008 IP
  8. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #8
    put a "/" before all ', so php doesnt think the ' is the end of the statement.
     
    matthewrobertbell, Jan 3, 2008 IP
  9. Renegadez

    Renegadez Peon

    Messages:
    244
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    can u show me an example with a google adsense code
    
    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxxxxxx";
    google_ad_width = 160;
    google_ad_height = 600;
    google_ad_format = "160x600_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "2A5DB0";
    google_color_text = "333333";
    google_color_url = "82C13E";
    //-->
    </script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
    Code (markup):
     
    Renegadez, Jan 3, 2008 IP
  10. jayant_me

    jayant_me Banned

    Messages:
    584
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    0
    #10
    jayant_me, Jan 3, 2008 IP