WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
[resolved] It removes Embedded code (9 posts)

  1. SexyDawnT
    Member
    Posted 1 year ago #

    I run a giveaway and coupon database site and depend heavily upon this plug-in to expire dead giveaways and coupons.

    I have tried using RaffleCopter and GiveawayTools and one other app that requires you to embed a Javascript based form on to a blog post. I will copy and paste the form exactly and the form would just disappear. When I looked at the raw code, the script type="text/javascript" tag is being stripped from the code, for any of these apps.

    I deactivated every plug-in, and the problem went away. I reactivated them individually until the problem returned, and it turned out to be this one. I then reactivated every plugin except this one, and the problem did not return.

    Can someone please help me with this?

    http://wordpress.org/extend/plugins/post-expirator/

  2. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin does not do anything to specifically remove javascript, and that doesn't make sense either. If you provide a block of sample code I can test it and see - are you saying it is being removed at expire time or at post time?

  3. SexyDawnT
    Member
    Posted 1 year ago #

    At post time - or sometimes a few minutes after post time. Whenever I click publish on any post that uses javascript, something is stripping out the javascript tags. I disabled every plug-in I had and re-enabled them one at a time. It turned out to be this one. Then, I re-enabled every plug-in except this and the problem went away. The issue only occurs when this plug-in is enabled.

    So, here is a post I was having a problem with
    http://www.freenclearstuff.com/phase-foot-care-duo-giveaway/
    The entry form for the giveaway is on the page.

    The embed code is supposed to look like this:
    <div id="pgt516627321pgt" class="pgtContainpgt"><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">Entry</a><script type="text/javascript" src="//giveawaytools.com/wid/embed.php?sk=516627321"></script><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">-Form</a></div>

    However, when Post Expirator is active, it looks like this:
    <div id="pgt516627321pgt" class="pgtContainpgt"><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">Entry</a><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">-Form</a></div>

    It does the exact same thing with RaffleCopter as well, and one other giveaway platform that required embedding javascript code. It also has done it with a couple of my sponsors that have a javascript embed I place in posts about their products.

  4. SexyDawnT
    Member
    Posted 1 year ago #

    Have you been able to look into this?

  5. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    Briefly - I can confirm the issue and it is related to kses. I will need to think through the best way to move forward with this one.

  6. jh-sales
    Member
    Posted 1 year ago #

    I'm having the exact same problem as SexyDawnT. Whenever a post expires it removes the following code in every post:

    <script type="text/javascript"></script>
    
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    Any suggestions how can I avoid this from happening? I don't want to uninstall it since this plugin is very helpful and does exactly what I need.

  7. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    I believe I have a fix for this that will be in the 2.0 release (waiting to confirm its the best way to handle it) - hope to have that out in the not to distance future.

  8. SexyDawnT
    Member
    Posted 1 year ago #

    Thanks so much! I've been using a different plug-in, but it has serious problems and the dev abandoned the project a long time ago. I will definitely be switching back once yours is up and running. Thank you for all the help.

  9. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.