JibJab Holiday eCards

Adbrite Code Too Long? Giving Parse Errors? Giving Problems While Embedding The Adbrite Code?

You may have noticed that Adbrite code for publishers to put on their website is pretty long, and sometimes you will get embedding errors or parse errors. There is a long way for you to manual edit all the ‘ and ” attributes but it is a pain and very much time consuming with Adbrite’s long code, which contains tons of such.

I’ve found a quick easy solution for it and feel free to try it on your own. The code still works as of 1/16/2009. (Just a disclaimer, so you will not complain about the code not working few months or years later. haha)

Here is what you have to do.

  1. Create New Ad Zone as usual from your Adbrite’s publishers Ad management section.
  2. Copy your code to notepad or just leave that code screen open.
  3. Edit out the unnecessary lines as shown below.
  4. Paste the necessary code sections from original Adbrite code to build a new code.
  5. Embed the new code onto your website.

The given original Adbrite code will look something like this:

<!– Begin: AdBrite, Generated: 2009-01-17 0:18:11  –>
<script type=”text/javascript”>
var AdBrite_Title_Color = ‘A9501B’;
var AdBrite_Text_Color = ‘4C4C4C’;
var AdBrite_Background_Color = ‘FFFFFF’;
var AdBrite_Border_Color = ‘FFFFFF’;
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=xxxxxxxx&zs=xxxxxxxx&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=1002666&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 –>

You will see the code part (sid=,zs=) part I’ve bolded. You will need those.

Now use the code  below with your sid and zs values.

<script type=”text/javascript” src=”http://ads.adbrite.com/mb/text_group.php?sid=xxxxxxxx&zs=xxxxxxxxx”></script>
<a target=”_top” href=”http://www.adbrite.com/mb/commerce/purchase_form.php?opid=SIDVALUE&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>

The red part is what you need in order to display the Adbrite ads and the blue part is just to have the “Advertise Here” tab on the right of the ad banners (If you wish to have that option, make sure to put your SID value there.

That’s it!

If you have time and want to go the long way, feel free to comment the ‘ and ” with \ after and|or before. I would suggest you use the above mentioned easy methods before going to the commenting part. Use the commenting out editing part only if it is your last resort or the codes previously mentioned are giving you some sort of problem.

*Remember, having “Ad will be reviewed or approved in 3 hours” notice is not a cause of coding error. Be patient.

By: Kaung | KMKblog

Add This! Blinkbits Blinklist Blogmarks BlogMemes BlueDot BlogLines co.mments Connotea del.icio.us de.lirio.us Digg Diigo DZone Facebook FeedMeLinks Folkd.com Fleck Furl Google Google Reader icio.de IndianPad Leonaut LinkaGoGo Linkarena Linkter Magnolia Mister Wong MyShare Ask.com MyStuff Ask.com Yahoo! MyWeb Netscape Netvouz Newsgator Newsvine Oneview.de RawSugar reddit Rojo Segnalo Shadows Simpy SlashDot Smarking Sphere Spurl Startaid StumbleUpon TailRank Technorati ThisNext yigg.de Webnews.de ReadMe.ru Dobavi.com Dao.bg Lubimi.com Ping.bg Pipe.bg Svejo.net Web-bg.com Plugin by Dichev.com

Your Ad Here
Tagged in: | | |

One Response to “Adbrite Code Too Long? Giving Parse Errors? Giving Problems While Embedding The Adbrite Code?”

  1. Nice site! Thanks for the great post. %d%a%d%aPeople should read this

    Reply

Leave a Reply

Open Sort Options

Sort comments by:
  • * Applied after refresh


ss_blog_claim=e23012fc8a00602ae9b8dea054392c30
TheTopDir