Adbrite on PHProxy

Discussion in 'Programming' started by livewirerules, Feb 15, 2007.

  1. #1
    does anyone know how to add adbrite ads in the proxified pages below the surf bar.IO tried to add.but most of the time the page just goes blank or the ads dont appear at all.
    I want to add this flexible ad code

    <!-- Begin: AdBrite -->
    <style type="text/css">
       .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #0000FF;}
       .adText {font: normal 10pt Arial; text-decoration: none; color: #000000;}
    </style>
    <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=xxxxxxxx&br=1&dk=7469636b6574735f355f315f776562&col=5">
    </script>
    <div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=xxxxxxxafsid=1">Your Ad Here</a></div>
    <!-- End: AdBrite -->
    Code (markup):
    Any idea how can i add it
     
    livewirerules, Feb 15, 2007 IP
  2. nicolas9510

    nicolas9510 Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    in phproxy .4 open the url_form.inc file and paste it in there. mess around with it until you get it located where you want it to be
     
    nicolas9510, Feb 16, 2007 IP
  3. livewirerules

    livewirerules Active Member

    Messages:
    276
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #3
    it was easy in phprox 4 but in the latest version u hav only 3 files index.php,index.inc.php and a style sheet
    I just don't understand where to add the code and how to coz there is a different method in inserting the code in the index.php
     
    livewirerules, Feb 16, 2007 IP
  4. tkilgore

    tkilgore Well-Known Member

    Messages:
    1,075
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #4
    This post is correct "url_form.inc".. or as we see it ..the top frame can be modified and the ad set in there .. look for the "links back" to MAIN PAGE stuff and place it to the left of it ..good luck
     
    tkilgore, Feb 16, 2007 IP
  5. nikg

    nikg Well-Known Member

    Messages:
    642
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    120
    #5
    In 0.4 paste your code in url_form.inc as it was mentioned in previous posts

    One way to to do it, in 0.5 is:

    # Open index.php
    # Find the code $_url_form .= ‘</form></div>
    # Place your adbrite code just after that.
    Code (markup):
     
    nikg, Feb 17, 2007 IP
  6. livewirerules

    livewirerules Active Member

    Messages:
    276
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #6
    doesnt seem to work..i added my code
    <!-- Begin: AdBrite -->
    
    <style type="text/css">
       .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #0000FF;}
       .adText {font: normal 10pt Arial; text-decoration: none; color: #000000;}
    </style>
    <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=xxxxxxxx&br=1&dk=7469636b6574735f355f315f776562&col=5">
    </script>
    <div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=xxxxxxxafsid=1">Your Ad Here</a></div>
    <!-- End: AdBrite -->
    Code (markup):
    and nothing seems to work i just get a blank page ?? Why is that :confused:
     
    livewirerules, Feb 17, 2007 IP
  7. livewirerules

    livewirerules Active Member

    Messages:
    276
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #7
    finally it works...............
     
    livewirerules, Feb 18, 2007 IP
  8. PEHW

    PEHW Peon

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Can you explain how you fixed it? Post the code because I cant insert it in mine
     
    PEHW, Feb 25, 2007 IP
  9. PEHW

    PEHW Peon

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Can anyone show me how to do this?
     
    PEHW, Feb 26, 2007 IP
  10. gootecks

    gootecks Peon

    Messages:
    58
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I also need help with this too. When I just paste it in, I get a PHP error. I also tried doing $_url_form .= for each line of the AdBrite code but I am unsuccessful with that as well.
     
    gootecks, Feb 27, 2007 IP
  11. PEHW

    PEHW Peon

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    . '" 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 . '">main page</a>]'
                            . '<br />'
    [COLOR="Red"]						. '<!-- Begin: AdBrite -->'
    . '<script type="text/javascript">'
    . 'var AdBrite_Title_Color = \'cc0000\';'
    . 'var AdBrite_Text_Color = \'000000\';'
    . 'var AdBrite_Background_Color = \'FFFFFF\';'
    . 'var AdBrite_Border_Color = \'FFFFFF\';'
    . '</script>'
    . '<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=265755&zs=3732385f3930" type="text/javascript"></script><!--'
    . '--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=265755&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#FFFFFF" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>'
    . '<!-- End: AdBrite -->';[/COLOR]
    Code (markup):
     
    PEHW, Feb 27, 2007 IP
  12. PEHW

    PEHW Peon

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    If you would like to have ads on you error page:
    find:
    if(isset($data['category']) && $data['category'] !='error'){
    echo "<b>THERE IS NO ERROR ON THIS PAGE! SHOW THE ADS</b>";
    }
    Code (markup):
    Just change the "THERE IS NO ERROR ON THIS PAGE! SHOW THE ADS" to your ad-code.
     
    PEHW, Feb 27, 2007 IP
  13. gootecks

    gootecks Peon

    Messages:
    58
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Ahh, those tricky slashes. Thank you very much for your help. :D
     
    gootecks, Feb 27, 2007 IP
  14. PEHW

    PEHW Peon

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Glad I could Hep! you have to edit the adbrite code a bit and make sure you put the " ' "
     
    PEHW, Feb 27, 2007 IP