• I am trying to add iOpenX invocation code to a blog via Text widget.

    When I past this code and save:

    <!--/* OpenX Javascript Tag v2.8.5 */-->
    
    <!--/*
      * The backup image section of this tag has been generated for use on a
      * non-SSL page. If this tag is to be placed on an SSL page, change the
      *   'https://tellpeoria.com/openx/www/delivery/...'
      * to
      *   'https://tellpeoria.com/openx/www/delivery/...'
      *
      * This noscript section of this tag only shows image banners. There
      * is no width or height in these banners, so if you want these tags to
      * allocate space for the ad before it shows, you will need to add this
      * information to the <img> tag.
      *
      * If you do not want to deal with the intricities of the noscript
      * section, delete the tag (from <noscript>... to </noscript>). On
      * average, the noscript tag is called from less than 1% of internet
      * users.
      */-->
    
    <script type='text/javascript'><!--//<![CDATA[
       var m3_u = (location.protocol=='https:'?'https://tellpeoria.com/openx/www/delivery/ajs.php':'https://tellpeoria.com/openx/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=168&block=1");
       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='https://tellpeoria.com/openx/www/delivery/ck.php?n=ac857ded&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='https://tellpeoria.com/openx/www/delivery/avw.php?zoneid=168&cb=INSERT_RANDOM_NUMBER_HERE&n=ac857ded' border='0' alt='' /></a></noscript>

    It comes back as this:

    <!--/* OpenX Javascript Tag v2.8.5 */-->
    
    <!--/*
      * The backup image section of this tag has been generated for use on a
      * non-SSL page. If this tag is to be placed on an SSL page, change the
      *   'https://tellpeoria.com/openx/www/delivery/...'
      * to
      *   'https://tellpeoria.com/openx/www/delivery/...'
      *
      * This noscript section of this tag only shows image banners. There
      * is no width or height in these banners, so if you want these tags to
      * allocate space for the ad before it shows, you will need to add this
      * information to the <img> tag.
      *
      * If you do not want to deal with the intricities of the noscript
      * section, delete the tag (from ... to ). On
      * average, the noscript tag is called from less than 1% of internet
      * users.
      */-->
    
    <!--//<![CDATA[
       var m3_u = (location.protocol=='https:'?'https://tellpeoria.com/openx/www/delivery/ajs.php':'https://tellpeoria.com/openx/www/delivery/ajs.php');
       var m3_r = Math.floor(Math.random()*99999999999);
       if (!document.MAX_used) document.MAX_used = ',';
       document.write (&quot;");
    //]]>--><a href='https://tellpeoria.com/openx/www/delivery/ck.php?n=ac857ded&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='https://tellpeoria.com/openx/www/delivery/avw.php?zoneid=168&cb=INSERT_RANDOM_NUMBER_HERE&n=ac857ded' border='0' alt='' /></a>
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, I just pasted the same code into a text widget, saved it, and it doesn’t strip anything out. The before and after were identical and the front end showed the result correctly.

    Might be a theme/Plugin conflict? Do you have many Plugins installed? You might want to try turning them all off and perhaps reverting your theme to the default then testing the code above again.

    I am using the latest version of WordPress by the way: 3.1.1

    Thread Starter billdennis5

    (@billdennis5)

    I am running Akismet only.

    I can cut a paste this code using other blogs also.

    Thread Starter billdennis5

    (@billdennis5)

    Well here is a kick in the head.

    This is happening on a WordPress Multisite blog. I was trying to paste this code at the blog owner, but when I logged in as the site administrator, I had no problem with the code getting stripped out.

    So that is the solution.

    Go figure.

    You might want to post in the multi-site forum, to see if it is a bug that needs fixing etc.

    Did this ever get solved I am having the same issue

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Text widget is stripping out parts of code’ is closed to new replies.