URL’s fixes

Home Forums Calendar Products Events Calendar PRO URL’s fixes

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #78035
    jddvette
    Participant

    Hi,

    I have upgraded successfully to Events Cal Pro but there is a problem that I have with the URL’s

    I need:

    http://dev-wp.dremed.com/events/category/africa/upcoming/

    to be

    http://dev-wp.dremed.com/events/africa/

    Why is it adding /upcoming/ to the slug and how can I remove it?

    Also, how can I remove /category/ from the slug?

    #78040
    jddvette
    Participant

    This reply is private.

    #78049
    jddvette
    Participant

    This reply is private.

    #78203
    Chris
    Participant

    Hi there,
    Please don’t use private replies if there isn’t any sensitive data in them.

    To remove the /category/ you’ll need http://wordpress.org/plugins/no-category-base-wpml/

    /events/category/catname/
    and
    /events/category/catname/upcoming/

    both already exist and they do two different things. The first is the calendar view (default month view) for the selected category. The latter is a list of all upcoming events for the calendar by default in a list format.

    As for the no events in category error this should be fixed as of the next maintenance release. If you feel comfortable doing so then as a temporary workaround you can replace the-events-calendar/lib/tribe-template-factory.class.php with this alternative version .

    -Chris

    #78226
    jddvette
    Participant

    I activated the plugin to remove the category out of the slug, but it’s still there.

    You said, /events/category/catname/
    and
    /events/category/catname/upcoming/

    are two different things, but when I try to get to /events/category/catname/ it redirects to /events/category/catname/upcoming

    Is there a setting I am missing?

    #78227
    Chris
    Participant

    > I activated the plugin to remove the category out of the slug, but it’s still there.

    You should file a ticket with the author of that plugin via the wordpress.org repository. He should be able to sort that out (it’s worked in the past for other tribe users).

    It depends on how your install is setup.
    I know on the demo site (which I don’t have access to to check what the settings are) they are two different things:
    http://wpshindig.com/events/category/wordpress-meetups/
    vs
    http://wpshindig.com/events/category/wordpress-meetups/upcoming/

    -Chris

    #78239
    jddvette
    Participant

    Can you please check the settings, I am stumped on how to only get visitors to the link

    http://wpshindig.com/events/category/wordpress-meetups/

    at this point I’ll find another solution to work around /category/ being in the slug

    #78319
    Chris
    Participant

    Unfortunately, I don’t have access to Shindig’s backend. I’ll see if I can find someone that does.

    #78320
    Chris
    Participant

    What do you currently have the default view set to in the Tribe settings panel?

    #78447
    jddvette
    Participant

    I’ve found this report to send you from the plugin admin panel

    URL
    http://dev-wp.dremed.com
    INSTALL KEYS

    WORDPRESS VERSION
    3.7.1
    PHP VERSION
    5.4.9-4ubuntu2.3
    PLUGINS
    Display widgets version 1.24 by Strategy11(http://strategy11.com)
    The Events Calendar PRO version 3.2 by Modern Tribe, Inc.(http://m.tri.be/20)
    Image Widget version 4.0.8 by Modern Tribe, Inc.(http://m.tri.be/26)
    WPBakery Visual Composer version 3.6.14.1 by Michael M – WPBakery.com(http://wpbakery.com)
    The Events Calendar version 3.2 by Modern Tribe, Inc.(http://m.tri.be/1x)
    UberMenu 2 – WordPress Mega Menu Plugin version 2.3.2.2 by Chris Mavricos, SevenSpark(http://sevenspark.com)
    WordPress SEO version 1.4.19 by Joost de Valk(http://yoast.com/)
    WP Help version 1.2 by Mark Jaquith(http://coveredwebservices.com/)
    WP-PageNavi version 2.83 by Lester ‘GaMerZ’ Chan & scribu
    NETWORK PLUGINS

    MU PLUGINS

    THEME
    Doma
    MULTISITE

    SETTINGS
    recurring_events_are_hidden = exposed
    tribeEventsTemplate =
    tribeEventsBeforeHTML =
    tribeEventsAfterHTML =
    previous_ecp_versions =
    Array
    (
    [0] => 0
    [1] => 3.1
    )
    latest_ecp_version = 3.2
    welcome_notice = 1
    data_migration_version = 2.0
    viewOption = month
    embedGoogleMapsHeight = 350
    embedGoogleMapsWidth = 100%
    embedGoogleMaps = 1
    showComments =
    displayEventsOnHomepage =
    debugEvents =
    eventsSlug = events
    singleEventSlug = event
    spEventsAfterHTML =
    spEventsBeforeHTML =
    multiDayCutoff = 12:00
    spEventsTemplate =
    spEventsCountries =
    donate-link =
    postsPerPage = 10
    liveFiltersUpdate = 1
    showEventsInMainLoop = 1
    defaultCurrencySymbol = $
    embedGoogleMapsZoom = 10
    stylesheetOption = tribe
    tribeEnableViews =
    Array
    (
    [0] => upcoming
    [1] => month
    )
    tribeDisableTribeBar =
    monthEventAmount = 3
    disable_metabox_custom_fields = show
    defaultValueReplace = 1
    defaultCountry =
    hideLocationSearch =
    hideRelatedEvents = 1

    I’ve been clicking the navigation at the bottom of the calendar to go the next month and it just refreshes the page, there are events in the next month to view.

    The issue of the “slugs” and getting to the categories resolved once I removed the code snippet to have the categories default to the list view (which I need to work if possible). It would be nice to have the calendar view as the main view then the categories view default as a list.

    Here’s the snippet commented out

    / add_action(‘parse_query’, ‘use_list_view_for_categories’, 60);

    // function use_list_view_for_categories($query) {
    // // Run once
    // remove_action(‘parse_query’, ‘use_list_view_for_categories’, 60);

    // // Interfere only for non-ajax Tribe category requests not already destined to be presented by list view
    // if (defined(‘DOING_AJAX’) && DOING_AJAX) return;
    // if (!isset($query->tribe_is_event_category) || !$query->tribe_is_event_category) return;
    // if (tribe_is_view(‘upcoming’)) return;

    // // Obtain the query term and get a link to list view for that term
    // $main_tax_query = $query->tax_query->queries[0];
    // $term = get_term_by(‘slug’, $main_tax_query[‘terms’][0], TribeEvents::TAXONOMY);
    // $link = tribe_get_listview_link($term->term_id);

    // // Try to redirect
    // wp_redirect($link);
    // exit();
    // }

    #78753
    Barry
    Member

    Hi jddvette,

    So based on your last update it’s sounding to me like everything is actually working as we would expect and that perhaps the code snippet you referenced was impacting on things here (though, again, it sounds as if it was actually doing pretty much what it was intended to do).

    We do welcome any feature requests that you might make with regards to presentation settings for categories, etc, but beyond that we’ll need to leave any further customizations and embellishments up to you.

    I’ll go ahead and close this thread, but if there are any other issues we might be able to help with please do create new threads as needed.

    Thanks – and good luck!

    #982434
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘URL’s fixes’ is closed to new replies.