Jump to content

OpenX issues


Guest Someone_Else

Recommended Posts

Guest Someone_Else

Hi all

 

I'm trying to use the OpenX iframe to slap down some banners all up in my interwebs, but there seems to be some syntax error in the iframe code.

 

I have tested this on other php based pages, and found that it works perfectly, so I'm not sure what the issue is with PrestaShop

 

Has anyone encountered this issue previously / have a possible solution?

 

Cheers in advance

Edited by Someone_Else (see edit history)
Link to comment
Share on other sites

  • 3 months later...

Hi all

 

I'm trying to use the OpenX iframe to slap down some banners all up in my interwebs, but there seems to be some syntax error in the iframe code.

 

I have tested this on other php based pages, and found that it works perfectly, so I'm not sure what the issue is with PrestaShop

 

Has anyone encountered this issue previously / have a possible solution?

 

Cheers in advance

 

Try to load zones with php invocation code.

Link to comment
Share on other sites

More than likely what you are doing wrong is not putting the open x code between literal tags. You have to do it like this, {literal}openxcode{/literal} or it will not work in a tpl file.

 

Also make sure that you are using the latest version of openx there is a huge bug that was closed a few weeks ago. http://www.zdnet.com/openx-releases-mandatory-fix-to-prevent-ad-server-trojan-attacks-7000019094/

 

If you paste a link to the site I can look at it, I have a couple clients that run openx much to my dismay.

  • Like 1
Link to comment
Share on other sites

can you show some example? im interested in this case

 

Well for example you can paste the invocation zone code (once created a zone and assigned to it banner/s) like this in a TPL template file the javascript tag:

 

{literal}

<script type='text/javascript'><!--//<![CDATA[
  var m3_u = (location.protocol=='https:'?'https://www.yoursite.com/adserver/www/delivery/ajs.php':'http://www.yoursite.com/adserver/www/delivery/ajs.php');
  var m3_r = Math.floor(Math.random()*99999999999);
  if (!document.MAX_used) document.MAX_used = ',';
  document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
  document.write ("?zoneid=4");
  document.write ('&cb=' + m3_r);
  if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
  document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
  document.write ("&loc=" + escape(window.location));
  if (document.referrer) document.write ("&referer=" + escape(document.referrer));
  if (document.context) document.write ("&context=" + escape(document.context));
  if (document.mmm_fo) document.write ("&mmm_fo=1");
  document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://www.yoursite.com/adserver/www/delivery/ck.php?n=a6fc3c1e&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.yoursite.com/adserver/www/delivery/avw.php?zoneid=4&cb=INSERT_RANDOM_NUMBER_HERE&n=a6fc3c1e' border='0' alt='' /></a></noscript>

{/literal}

 

Ps: the "www.yousite.com" will automatically generated and no need to be changed :)

Regards.

Edited by rob84 (see edit history)
Link to comment
Share on other sites

Hi all

 

I'm trying to use the OpenX iframe to slap down some banners all up in my interwebs, but there seems to be some syntax error in the iframe code.

 

I have tested this on other php based pages, and found that it works perfectly, so I'm not sure what the issue is with PrestaShop

 

Has anyone encountered this issue previously / have a possible solution?

 

Cheers in advance

 

Then it is going to be impossible to troubleshoot the site without seeing it.

 

I think the user "Someone_else" should post the website link, so we could help him.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...