How to put TradeDoubler ads in a WordPress blog
I am so happy with TradeDoubler! I was having trouble getting their ads into my blog because the WordPress code was stopping their Javascript from working. I’d checked the WordPress help site, and the first thing I found out was that for anything involving Javascript, you need to turn off the default WordPress ‘rich editor’ and use the plain HTML editor instead. This is done by selecting the option ‘Users -> Profile’ and deselecting this box:

Deselecting the visual rich editor in the user profile screen
The WordPress website also advised creating an external javascript file and calling it from the WordPress PHP header template file (these are filed under a directory called ‘themes’). It was quite a trawl through the help site finding out how to do that, and once I’d done it it worked in Firefox but not Internet Explorer.
So I sent this message to TradeDoubler customer support yesterday using their website contact form:
Hi, please can you tell me how I can add adverts to my wordpress blog? I’ve tried adding them in the html editor and they don’t appear at all. I’ve also tried adding them using an external javascript file called in the header template (as wordpress suggest) and they appear in firefox but not internet explorer. Have you got any advice on this please?
Thanks
And today, just a day later, I got this reply, which not only fixed the problem but included a screen capture showing how to do it (code with IDs removed):
Hi Annabel
Thank you for contacting TradeDoubler.
I am afraid I am unfamiliar with the Wordpress Blog software. What I can suggest is that when attempting to insert the links into the HTML editor you ensure the ‘Use case prevention’ option is deselected on the ‘Show Code’ page. The ‘Use case prevention’ element of the link scripted in Java Script and therefore may be causing you problems in the HTML editor. Please see image below detailing how to remove this feature:

If you have anything else I can help you with, please do not hesitate to contact me.
Kind Regards,
Mark Andrews
PUBLISHER EXECUTIVE1) FAQ - Click here for online support
2) Account Manager Contact Details
So I tried it and it works - it produces a plain HTML link instead of the Javascript, and this can be added using the WordPress HTML editor.
I think they deserve another advert for that:
Thank you kind sir. I ran into the same problem earlier tonight and your blog solved it quicker than any IT department has ever solved any of my IT issues. After solving the issue I stayed around to browse through the rest of your blog. I was surprised that you feel as passionate about the Nigerian scams and internet fraud as I do. I’d like to see spam and scam permanently removed from the face of the virtual earth, but until we abolish the internet, that is unlikely to happen. I’ll do my part and get great pleasure from seeing the spammers’ and scammer’s email accounts shut down one after the other.
Once again… A dozen thanks for your helpful post!
Timo
Comment by TJLPhotos — 7 January, 2008 @ 1:50 am