Todd

Forum Replies Created

Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • in reply to: Change the event-meta > organizer > website link label #55644
    Todd
    Participant

    I figured this out for myself. I found tribe_get_organizer_website_link() in the plugin files: /public/advanced-functions/organizer.php, and saw that the label has a FILTER on it, so we can change it with our functions.php.
    http://pastebin.com/nYTGg2DF

    in reply to: How to upgrade/migrate from ECP 1.3.2 to TEC/ECP 3.0 ? #55331
    Todd
    Participant

    Thanks Leah, i got the zip. One question — is it necessary to update from (ECP) 1.3.3 to 2.0.4 before 2.0.11 ? The 1x>2x instructions (https://theeventscalendar.com/migrate-from-1x/) specify 2.0.4 but i figured 2.0.4 was the latest at the time, and your initial reply mentioned sending me 2.0.11. But the zip you sent included both 2.0.4 and 2.0.11, so it seems like i need to 2.0.4 first. Is that right? Thanks!

    in reply to: How to upgrade/migrate from ECP 1.3.2 to TEC/ECP 3.0 ? #55055
    Todd
    Participant

    I sent an email yesterday, requesting a zip of ECP 2.0.11. Hoping to get it soon, so i can continue the upgrade process here. Thanks!

    in reply to: How to upgrade/migrate from ECP 1.3.2 to TEC/ECP 3.0 ? #54921
    Todd
    Participant

    Thanks Leah. i will get started. But you mentioned providing “.. a link for Events Calendar PRO 2.0.11 below” but i don’t see that. I just see another reply that says “This reply has been marked as private.” Do i need to do something to see that private reply?

    Todd
    Participant

    Yes the page_id is hardcoded. But so were the original custom queries i had been doing with WP_Query. The purpose of my custom queries (in header.php and footer.php) that conflict with wp_router, and thus Community Events, is to allow the site owner to edit content that appears in the header and footer of the site. So I suppose i could do it based on a slug or post-title instead of an ID, but whichever i use, it will always be hardcoded, since it’s not content based on the requested url / permalink.

    Todd
    Participant

    I just found a super-simple solution! I’m now using get_page() instead of WP_Query().
    $page_content = “”;
    $page_id = 464;
    $page_data = get_page( $page_id );
    $page_content = apply_filters(‘the_content’, $page_data->post_content);
    echo $page_content;

    in reply to: Community Events conflict with AJAX #28584
    Todd
    Participant

    I actually just resolved this problem for myself. Here’s what I did, in case others have this issue.

    In Admin > Events > Settings > Community > Access Control, I UNchecked the “Block access to WordPress Admin” (and have all “Roles to block” UNchecked. So I disabled this feature from TEC/CE. And instead, I used the plugin “WP Block Admin” to handle this. It allows me to block my front-end users from the WP backend, based on a Capability (that you can specify), without actually blocking the ajax links (in my bbPress) that call to wp-admin/admin-ajax.php.

    @TEC/CE DEVS — Please consider this approach in a future update.

    Todd
    Participant

    I was not using the ShortCode, since the docs say “Keep in mind that shortcodes are only available for users who have permalinks turned off; this method will NOT work if you’re running with a pretty permalinks structure”.
    But just for kicks, i just now created a new page (though i do have pretty permalinks on), and placed the shortcode “[tribe_community_events]” in the page. When it hit that page (site.com/my-events-2/) the url redirects to http://site.com/events/community/add, and I see the bug we’ve been discussing.
    I then tried the other ShortCode “[tribe_community_events_title]”, and this way, the page does not redirect away from site.com/my-events-2/, and the bug is not present. However the only thing that IS on the page that comes from Community Events plugin is the text “Submit an event”. No form or list, etc.

    Todd
    Participant

    Great, thanks Jonah. By the way, when i said that hopefully wp-router can be limited to the “main” query… you probably can’t just use is_main_query() to determine that, since (at least in my site), those custom WP_Query calls (in my header and footer) also seem to be TRUE for is_main_query(). That doesn’t actually seem right or good.. but that’s what i’m seeing. Again, i’m happy to help troubleshoot.

    Todd
    Participant

    I think the issue comes from WP-ROUTER, used in the-events-calendar-community-events/lib/tribe-community-events.class.php (line 536, and others). The readme file (the-events-calendar-community-events/vendor/wp-router/readme.txt) says that:

    … “page_callback” is a callback to use for dynamically generating the contents of the page. The callback should either echo or return the contents of the page (if both, the returned value will be appended to the echoed value). If `FALSE` is returned, nothing will be output, and control of the page contents will be handed back to WordPress …

    Perhaps this can somehow be limited to JUST the MAIN QUERY for the page, not any secondary queries done using WP_Query?

    Todd
    Participant

    Hi again. One more thought about this. I also had exactly the same issue with another plugin for this same site — bbPress. But I solved that one. It turned out to be a conflict with the SLUG i had entered in WP-Admin > Settings > Forums > Archive Slugs > Forums Base (the bbPress settings page). I had the slug as “forums”, which i guess was the same name that bbPress used for the CPT (Custom Post Type) for the Forum post-type. So when i changed my slug to “theforum”, the problem was solved.

    Perhaps Community Events has a similar issue. But it does not seem to have an admin-field to set the slug for the CPT base.

    Todd
    Participant

    Hi. I am having EXACTLY the same problem with Community Events. From my troubleshooting, I think it’s related to a conflict with WP_Query. I am not using Genesis. I am building a custom theme, based on Underscore_s (from automattic).

    In my site, I have a custom WP_Query in my header.php, and another in my footer.php, which show content from other pages in the header and footer of my site.

    But on my Community Events pages(*), and ONLY on those pages, the content in my site’s header and footer that SHOULD display the result of my custom WP_Query, is MISSING, and instead, i see a DUPLICATE of the content displayed by Community Events.

    *Community Events pages:
    1) http://site.com/events/community/add/
    2) http://site.com/events/community/list/ (which for some reason, automatically redirects to)
    http://site.com/events/community/list/page/1/

    Hopefully this sheds light on Victoria’s problem, and I hope for a solution myself! I’d be more than happy to help troubleshoot, to facilitate a solution.

    in reply to: Front End Edit Event Form. #25378
    Todd
    Participant

    Did you try to Access Control settings? Check the “Block access to WordPress Admin”

    in reply to: Front End Edit Event Form. #25374
    Todd
    Participant

    Assuming you have the Community Events plugin….
    WP-Admin > Events > Settings > Community > Members
    Allow logged in users to
    – edit their submissions
    – remove their submissions

Viewing 14 posts - 16 through 29 (of 29 total)