Ads on proxified page by editing index.php [php proxy script issue]

Discussion in 'PHP' started by a7a7, Apr 13, 2007.

  1. #1
    I know this wouldn't be a new question.. but since i couldn't find any old post.. i'm asking now...

    i'm running phproxy script and i want to show ads on proxified page.

    problem is i can successfully edit index.php and adsense does show up. But putting adsense is again TOS.. so i decided to put adbrite code.. but adbrite dont show up!!

    Here is the code where ad would go:

    $_url_form      = '<div style="width:100%;margin:0;padding:4px 0;position:relative;top:0;left:0;z-index:9;text-align:center;border-bottom:1px solid #666;color:#000;background-color:#F2FDF3;font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans,arial,sans-serif;">'
                            . '<form method="post" action="' . $_script_url . '">'
                            . ' <label for="____' . $_config['url_var_name'] . '"><a href="' . $_url . '">Address</a>:</label> <input id="____' . $_config['url_var_name'] . '" type="text" size="80" name="' . $_config['url_var_name'] . '" value="' . $_url . '" />'
                            . ' <input type="submit" name="go" value="Go" />'
                            . ' [go: <a href="' . $_script_url . '?' . $_config['url_var_name'] . '=' . encode_url($_url_parts['prev_dir']) .' ">up one dir</a>, <a href="' . $_script_base . '" title="Proxied Homepage">main page</a>]'
                            . '<br /><hr />**I PUT MY AD CODE HERE**';
    PHP:

    You can see i put my ad code in last line after < h r /> tag. It works well with adsnese but adbrie dont show up :(

    I also tried using include file tag.. but with no help...

    plz help.
     
    a7a7, Apr 13, 2007 IP
  2. a7a7

    a7a7 Well-Known Member

    Messages:
    359
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #2
    a7a7, Apr 13, 2007 IP
  3. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I think the code is correct is there any error giving in page. If the error is not coming. Go to adbrite and copy the code again I think may be some code you have missed to copy.
     
    Subikar, Apr 13, 2007 IP
  4. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Thats great a7a7 you have solved the problem but the problem is not too complex. Cheers for solving it yourself.
     
    Subikar, Apr 13, 2007 IP
  5. delusion

    delusion Guest

    Messages:
    1,195
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    People don't realize that you need to change the var codes or take them all out together for AdBrite to work! Glad that tutorial helped ya dude :)
     
    delusion, Apr 13, 2007 IP