AdBrite Ad code problem. Help would be awesome!

Discussion in 'HTML & Website Design' started by Noc, Nov 5, 2008.

  1. #1
    Well I am trying to switch out an adBrite code on the index.php file of a site I recently purchased. The code that came with the site is here:

    <!-- Begin: AdBrite -->
    <script type="text/javascript">
    </script>
    <span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=******&zs=************" type="text/javascript"></script><!--
    --><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=*****6&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#FFFFFF;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
    <!-- End: AdBrite -->

    (Blocked out any numbers I thought looked important because I have no clue what I am doing)

    And the one I get when I find the ad code for the ad I made:

    <!-- Begin: AdBrite, Generated: 2008-11-05 21:39:33 -->
    <script type="text/javascript">
    var AdBrite_Title_Color = '000000';
    var AdBrite_Text_Color = '0000FF';
    var AdBrite_Background_Color = 'FFFFFF';
    var AdBrite_Border_Color = 'CCCCCC';
    var AdBrite_URL_Color = '000000';
    try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
    </script>
    <span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=909129&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
    <a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=909129&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
    <!-- End: AdBrite -->

    They obviously look different but I put them on the exact same place in that file and when I do that everything goes wrong. What am I doing wrong?
    Thanks so much in advance,
    Noc
     
    Noc, Nov 5, 2008 IP
  2. mxmedia

    mxmedia Well-Known Member

    Messages:
    465
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    105
    Digital Goods:
    2
    #2
    Good Evening,
    I had the same problem with their new code on one of my sites.
    I did resolve it. Took a while to figure it out.
    Tomorrow I will see what site it was and get the work around that worked for me and post it here for you.
    Thanks
     
    mxmedia, Nov 6, 2008 IP
  3. mds

    mds Active Member

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Adbrite is okay but its quite hard to earn from their ads. It works for sme people but it didnt work for me


     
    mds, Nov 6, 2008 IP
  4. SticKer

    SticKer Well-Known Member

    Messages:
    2,393
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    115
    #4
    Remove the old ad code.. Get the new ad code from your adbrite account and paste in the ad spot. Save the file and upload it. See if it works.

    SticKer
     
    SticKer, Nov 6, 2008 IP
  5. Noc

    Noc Active Member

    Messages:
    485
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Ya thats exactly what i did SticKer and the whole site went white. Why is my adbrite code different then his?
     
    Noc, Nov 6, 2008 IP
  6. SticKer

    SticKer Well-Known Member

    Messages:
    2,393
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    115
    #6
    I'm not sure if adbrite has made changes to their code. Its been a while that I used adbrite. I'll check my account later today when I get back home and see if there's any changes in the ad code.

    SticKer
     
    SticKer, Nov 7, 2008 IP
  7. Noc

    Noc Active Member

    Messages:
    485
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Ok thanks so much. I just don't see how ours are different. Could he of custom made his to work with the script?
     
    Noc, Nov 8, 2008 IP