Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter FS

    (@fedsmith)

    So, it turns out Safari was the problem. I was using that browser and it won’t delete the polls, but when I switched to Chrome, I could delete them. No idea why that was the case but FYI in case anybody else happens to encounter this problem.

    Thread Starter FS

    (@fedsmith)

    No, no errors were showing up.

    Thread Starter FS

    (@fedsmith)

    Thanks for the reply. I tried two different browsers (Firefox and Safari) and got the same result. I also turned off the pop up blocker in Firefox and tried it again but it still wouldn’t delete the polls. May be something unique to my hosting company, such as the caching system they use. If you have any other suggestions though I would certainly welcome them!

    Thread Starter FS

    (@fedsmith)

    Update:
    I was able to come up with a fix for this. I used the plugin’s filter insert_post_ads_enabled to turn the plugin off for my site’s sidebar and figured out where to hook into the sidebar rendering to have it activate accordingly.

    Here’s the code in case it helps anybody else:

    function remove_sidebar_ad_code( ) {
    	add_filter( 'insert_post_ads_enabled', '__return_false' ); // disable insert ads plugin by setting relevant filter to false
    }
    add_action( 'dynamic_sidebar_before', 'remove_sidebar_ad_code', 10, 2 ); 

    The read me file with the plugin contains documentation on how to do all of this, but to insert inside of a template file in your theme, you would do something like:

    <!-- mailgun subscribe form -->
            <div>
    		<h3 class="widgettitle">Free Email Updates</h3>
            <?php echo do_shortcode('[mailgun_subscription_form description="Sign up for our free email updates" lists="list1_address@somewhere.com, list2_address@somewhere.com"]'); ?>
            </div>
            <!-- // mailgun subscribe form -->

    Under settings -> mailgun lists you can edit the contents of the subscription confirmation and welcome emails. There is a description on that page of the short codes that are accepted inside of these blocks for customizing the emails. I believe you could insert HTML here as well.

    The plugin requires your Mailgun API and public keys to function, so my guess is that is where you are going wrong since you mentioned you were leaving these blank. See https://documentation.mailgun.com/api-email-validation.html#email-validation for details on this and where to find both of your keys.

    Thread Starter FS

    (@fedsmith)

    I fixed this problem. It’s not ideal as it’s hardcoded based on the actual URL’s for my website and custom CNAME for the Rackspace cloud files container, but it works. I hope the developer can use this information to implement a permanent fix in a future upgrade because overall this plugin seems great.

    Here are the details for anybody else who might encounter this problem. The change I made assumes a custom CNAME of https://img.example.com is being used to point to the Rackspace cloud files container.

    In lib/functions.php around line 493, you will find this line:

    $attachment = str_replace($cur_attachment, $cdn_url.'/'.$new_attachment, $attachment);

    Immediately after this line, I added the following line (including a few lines of comments for explanation):

    // this function is returning media attachment urls as:
                            // https://img.example.com/https://www.example.com/wp-content/uploads/2015/01/RetirementIncomePlan_PartTime.png
                            // added the below line to strip out the extraneous URL
                            $attachment = str_replace('https://www.example.com/wp-content/uploads/', '', $attachment);
Viewing 7 replies - 1 through 7 (of 7 total)