Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter Andrew

    (@rhdri)

    HI DMHamm,

    It took me quite a while, but the amazing support at Gravity Forms helped me find a custom solution for this. I’ll try and share everything I can remember about what we modified, and hopefully it will be helpful to you.

    1. I started by installing this directory plugin: https://katz.co/plugins/gravity-forms-addons/

    2. Then I added the following code to my functions.php in my theme folder via FTP: http://pastebin.com/hdi6WXKN *(this code was based on this: http://pastebin.com/BU61sbjr ).

    3. Then I included this html + shortcodes on the actual guest list page in wordpress: http://pastebin.com/3JNx7CBC (seen on http://ryanandchristieswedding.com/guest-list/ )

    I don’t remember all of the details, but I know that a lot of this code is specific to the actual form I used (seen on http://ryanandchristieswedding.com/rsvp/ ). You would have to change field id’s and such. And formid=”” references the gravity forms id number, choice=”” references the actual choices available in the gravity form fields I specified, and the [guests] and [dinner] shortcodes are also referenced the the code in #2.

    If you have any questions, let me know and I’ll see if I can help!

    Thread Starter Andrew

    (@rhdri)

    Any word on this? I would definitely be interested in buying the full paid version, or the dynamic add-on, if this functionality were possible.

    Hi,

    Did kizora’s fix work for anyone else? I’m having what seems like very odd behavior (http://wolfwatcher.org) from CloudFlare and Quick Cache.

    I set “Minimum expire TTL” to 1 month in the CloudFlare settings. I also have Quick Cache installed, with Cache Expiration set to 2592000, which should be 30 days. When Quick Cache is ON, webpagetest.org says the site is NOT caching (http://www.webpagetest.org/result/130811_9H_5CM/), but it loads super fast. When Quick Cache is OFF, webpagetest.org says the site IS caching (http://www.webpagetest.org/result/130811_7P_5BH/), but it loads super slow. Do you have any idea why this is? Is it possible that CloudFlare isn’t configured properly still? I tried the Double Caching in Client-Side Browser and that didn’t change anything.

    To sum it up:
    Quick Cache OFF = “Cached” but super slow: http://www.webpagetest.org/result/130811_7P_5BH/
    Quick Cache ON = “Un-cached” but super fast: http://www.webpagetest.org/result/130811_9H_5CM/

    Thanks.

    Thread Starter Andrew

    (@rhdri)

    Thanks for the quick reply and the great suggestion. I will try that now.

    Also, is the post thumbnail image supposed to be linking to the individual post page? The title is doing so, but there seems to be no link generated for the thumbnail. I didn’t see an option to specify that in the shortcode, and when I looked in the php file it looked like the proper code to do that was already there.

    Please see http://theromanguy.com/new/custom-vacation-packages to view what I’m referring to.

    Thanks!

    Thanks @brasofilo !!! Works perfectly. Brilliant.

    Thread Starter Andrew

    (@rhdri)

    Thanks for looking into this.

    Because I need my website to function properly (links and all), I had to disable the plugin popup. However, I made a duplicate version of the website at a different url address. If you want to check it out and troubleshoot/investigate, here’s the link: http://rhdri.org/wordpress/

    Thanks!

    Andrew

    @quadc3

    Check out the working AI1EC-Subscribe2 plugin solution (at least for me) over here.

    @mattyrob Huh! Look at that. There was in fact lots of random white space after the end of my PHP tag. I deleted that and now the plugin works perfectly. Brilliant!

    @erling I can’t help you with the Events Calendar plugin unfortunately—this is specific to the All-In-One Events Calendar plugin.

    But in case anyone else is looking for a similar fix and stumbles upon this thread, I’ll share my (actually, @mattyrob’s) solution in full:

    If you are using WordPress 3.4.2 and both the Subscribe2 plugin (version 8.5) and the All-In-One Event Calendar plugin (premium version 1.8.3), this handy little standalone plugin should do the following:
    1. Enable Subscribe2 to send email notifications for your all-in-one events the same way it normally does for posts.
    2. Enable the “Subscribe2 Notification Override” box to appear on all-in-one event authoring pages.

    Link to download the plugin:
    AI1EC-Subscribe2 Plugin

    How to install the plugin:
    1. Download the above zip file.
    2. Follow these directions to upload, install, and activate the zip file.
    3. You’re good to go!

    Notes:
    – Check your “Screen Options” on any event authoring page to ensure that “Subscribe2 Notification Override” is checked.
    – Check your Subscribe2 > Settings page to verify correct plugin installation—the fourth line down should read: “Subscribe2 will send email notifications for the following custom post types: Ai1ec_event”
    – Under Subscribe2 > Settings > Appearance the last line reads “Disable email notifications is checked by default on authoring pages?” If you check this box, the Subscribe2 Notification Override box on each even authoring page will also be checked by default.

    CAVEATS: I can only verify that this plugin works for me—I haven’t done any other testing, at all. I wouldn’t even know how to properly test it if I wanted to.

    Hope this helps some other folks as well. And, if you download the plugin, don’t forget to thank @mattryob for this awesome fix—and for the stellar Subscribe2 email notification plugin!

    -Andrew

    @mattyrob

    When I tried the reactivating the plugin again (after removing the same code from subscribe2.php), I got this message on my plugin admin page:

    The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    I’m using the same versions as you, but continue to get the same weird white screen issues. I even get them on other pages and using other functions, like after I move an event to the trash or even after deactivating a plugin. Sometimes just refreshing will do the trick to fix the white screen, but it’s buggy for sure, on the front and backend (only when using the code via plugin).

    Maybe in future iterations of Subscribe2 there could be a settings box where you could enter custom post type names directly, i.e. where it currently reads “Subscribe2 will send email notifications for the following custom post types: Ai1ec_event” If I were able to input the custom post type right there in the backend, that would be fantastic. And if it would automatically add the notification override to whatever custom post types are added, that would be even better.

    I did, however, figure out how to get my custom post type categories to be available in the featured content drop down menus of the theme options page:

    It used to be:

    <?php wp_dropdown_categories(array(
    					'selected' => ot_option('hp_mid_cat'),
    					'name' => $settings.'[hp_mid_cat]',
    					'orderby' => 'Name' ,
    					'hierarchical' => 1,
    					'show_option_all' => __("All Categories",
    					'organicthemes'), 'hide_empty' => '0'
    )); ?></p>

    Now it’s:

    <?php 
    
    					$taxonomy     = 'events_categories';
    					$orderby      = 'name';
    					$show_count   = 1;      // 1 for yes, 0 for no
    					$pad_counts   = 0;      // 1 for yes, 0 for no
    					$hierarchical = 1;      // 1 for yes, 0 for no
    					$title        = '';
    
    					wp_dropdown_categories(array(
    					  'taxonomy'     => $taxonomy,
    					  'orderby'      => $orderby,
    					  'show_count'   => $show_count,
    					  'hierarchical' => $hierarchical,
    					  'title_li'     => $title,
    					  'selected'     => ot_option('hp_side_cat'),
    					  'name'         => $settings.'[hp_side_cat]',
    					  'orderby'      => 'Name' ,
    					  'hierarchical' => 1,
    					  'show_option_all' => __("All Events", 'organicthemes'),
    					  'hide_empty' => '0' 
    
    				)); ?>
    				</p>

    That worked for me.

    Anyhow, thanks again for the spectacularly fast and effective help! And the awesome plugin.

    -Andrew

    I just turned off the mini-plugin, put its code back into subscribe2.php and tried editing the event again. After I pressed update, it took me to this URL: wp-admin/post.php?post=539&action=edit&message=10&doing_wp_cron=1350839084.5872418880462646484375.

    When I was using the mini-plugin, pressing update or publish would reload the page to either:
    1. wp-admin/post.php?
    or
    2. wp-admin/post.php?post=539&action=edit

    So it looks like the url was missing a bunch more stuff that was necessary for it to reload properly.

    It’s a christmas miracle!!!!!!! @mattyrob I could kiss you!

    Seriously, works like a charrrrm. Tested and re-tested and just perfect. I wish there was a “kudos” or “thanks” button to bump your virtual status. I’m only slightly worried that I will lose some or all of this work when I update the Subscribe2 plugin. I know I can make backups/duplicates and re-paste them into the new files, but that’s not ideal. I’ve made changes now to subscribe2.php (adding custom post type notifications and enabling override box), class-s2-core.php (changing the email signup message), and class-s2-admin.php (changing the override box text). I went back to the mini-plugin idea you suggested and tried this code out:

    <?php
    /*
    Plugin Name: Subscribe2 AI1EC Filters & Notification Override Box
    Plugin URI: http://subscribe2.wordpress.com
    Description: Adds AI1EC custom post type and taxonomy to Subscribe2, and enables notification override box on event authoring pages.
    Version: 1.0
    Author: Matthew Robinson
    */
    
    // Allows Subscribe2 to recognize and publish
    // the all-in-one-events-calendar custom post types.
    
    function my_post_types($types) {
            $types[] = 'ai1ec_event';
            return $types;
    }
    add_filter('s2_post_types','my_post_types');
    function my_taxonomy_types($taxonomies) {
    	$taxonomies[] = 'events_tags';
    	$taxonomies[] = 'events_categories';
    	return $taxonomies;
    }
    add_filter('s2_taxonomies','my_taxonomy_types');
    
    // Adds the "Subscribe2 Notification Override" button to each
    // all-in-one-events-calendar custom post type editor page.
    
    function my_meta_types() {
    	global $mysubscribe2;
    	add_meta_box('subscribe2', 'Subscribe2 Newsletter Notification Override', array(&$mysubscribe2, 's2_meta_box'), 'edit-ai1ec_event', 'advanced');
    	add_meta_box('subscribe2', 'Subscribe2 Newsletter Notification Override', array(&$mysubscribe2, 's2_meta_box'), 'ai1ec_event', 'advanced');
    }
    add_action('admin_menu', 'my_meta_types');
    
    ?>

    I pasted this code inside the file called my_post_types.php located at /wp-content/plugins/AI1EC-Subscribe2 and then activated the plugin. The override box was there, it worked (sent an email when it was supposed to and suppressed it when it was supposed to)! BUT, after clicking on either “Update” or “Publish,” the event page reloads to a completely blank page at wp-admin/post.php. If I navigate to the event in the backend (it’s still in my list events, and on my calendar), sometimes it takes me to a blank page, but usually I can get there at the correct address: wp-admin/post.php?post=539&action=edit. So everything has been saved and updated properly in the event, but it’s not auto-reloading/refreshing the page back to the newest edited version after I click Publish or Update. This didn’t happen when the code was just plopped into the subscribe2.php file, but having a separate mini-plugin that could withstand upgrades would be soooo much more convenient! Any ideas why this is happening or how to fix it?

    Beyond that (which is more of an inconvenience than a terribly important issue), all that’s left for me is figuring out how to populate the “Event” categories into the normal “Post” categories, so I can add them to home page. I know there is a checkbox in the calendar settings that is supposed to accomplish this, but it’s not working for me for some reason. I disabled all my plugins temporarily to check for conflicts, but that didn’t help.

    What I have now is a theme-options.php file that is displaying a backend options page where I can choose which category of posts are featured in which areas of my front page (screenshots: http://screencast.com/t/Y3NhCJ4KB5 & http://screencast.com/t/K3vfft4SUbxJ | url: http://pennlpssa.org).

    I was previously using ordinary posts for my events, but now I would like to use AI1EC events instead. But I’m not sure how to populate those event categories in that backend option page. The code being used now, to retrieve normal post categories, is as follows:

    <?php wp_dropdown_categories(array('selected' => ot_option('hp_mid_cat'), 'name' => $settings.'[hp_mid_cat]', 'orderby' => 'Name' , 'hierarchical' => 1, 'show_option_all' => __("All Categories", 'organicthemes'), 'hide_empty' => '0' )); ?></p>

    Should I be able to do a query posts or categories with the custom post type here, instead of the current code? I don’t need to list all the post categories and event categories in one dropdown—one or the other would work fine.

    Thanks again!!

    Andrew

    Huh, that’s an interesting solution. I’ll give the excluded category a shot until a better solution pops up. Thanks!!

    @mattryrob

    For that reason it would be easier to extend the Events plugin to call the Subscribe2 code rather than the other way around. Either that or write your own custom plugin that adds the code to the Events page once you’ve found the slug name.

    Do you have any suggestions for how I can accomplish this? I added the following code to subscribe2.php

    function my_post_types($types) {
            $types[] = 'ai1ec_event';
            return $types;
    }
    add_filter('s2_post_types','my_post_types');
    function my_taxonomy_types($taxonomies) {
    $taxonomies[] = 'events_tags';
    $taxonomies[] = 'events_categories';
    return $taxonomies;
    }
    add_filter('s2_taxonomies','my_taxonomy_types');

    but it did not replicate the “Subscribe2 Notification Override” box on each new event page, like there is on normal posts.

    Thanks!

    Thanks for the tip, but I just followed your directions and, although it didn’t result in a fatal error, it didn’t add the Subscribe2 Notification Override box to my New Event page.

    Is this what your file looks like? http://screencast.com/t/qwmPxiHnx

    On another forum, a poster said the following:

    @erling & @basememara,

    In order to add the custom field box to override post notification you have to know the slug name of the added page. It’s the fourth parameter passes to the add_meta_box() function.

    For that reason it would be easier to extend the Events plugin to call the Subscribe2 code rather than the other way around. Either that or write your own custom plugin that adds the code to the Events page once you’ve found the slug name.

    Perhaps the code we’re using makes it possible to auto-send an email to subscribers for a new event added, but I need the option to turn it on or off, on a per-post/event basis, like I can do for normal posts. Do you have the notification override option working?

    I forgot to add: I activated the plugin “Subscribe2 AI1EC Filters” also. Still no “Subscribe2 Notification Override” box on my New Event custom post type edit page.

Viewing 15 replies - 1 through 15 (of 21 total)