Support Forum

Trying to add ad code in forum but i get an error

JM Jonathan Munoz
Jonathan Munoz
Member

What do i have to do to this code for it to work with the forum?

 

<script type=”text/javascript”>
  var ord = window.ord || Math.floor(Math.random()*10e12);
  document.write(‘<script type=”text/javascript” src=”http://ad.doubleclick.net/N5096/adj/Somos_Guatemala/;tile=3;sz=728×90;ord=’ + ord + ‘?”></script>’);
</script>
<noscript>
<a href=”http://ad.doubleclick.net/N5096/jump/Somos_Guatemala/;tile=3;sz=728×90;ord=1234567890?”>
  <img src=”http://ad.doubleclick.net/N5096/ad/Somos_Guatemala/;tile=3;sz=728×90;ord=1234567890?” />
</a>
</noscript>

 

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Explained here: http://codex.simple-press.com/codex/faq/problem-with-post-edit-buttonow-to/faq-how-to-display-ads-in-the-forum/

What you have to be careful off are the use of single and double quotes. If you ‘echo’ the script code surrounded by single quotes then you have to make sure there are no single quotes being used in the script code.

JM Jonathan Munoz
Jonathan Munoz
Member

How would my code have to look like to be able to fix this problem?

MP Mr Papa
Mr Papa
Member

based on the link provided, please show us what you tried?  nothing to fix until you tell us what you did and where you tried to put it…

JM Jonathan Munoz
Jonathan Munoz
Member

I got it to work thank you i added a: before each single quote ‘