How does Multisite work with The Events Calendar

Home Forums Welcome! Pre-Sales Questions How does Multisite work with The Events Calendar

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #998685
    Martin
    Guest

    Hi,

    Im working for a company that has a lot of conferences and trainings every year. We are looking for a solution to display all events in a filterable calendar.

    I would like to use your plugin to display all of our events on a main page, e.g. http://www.mainpage.com. Here the users can filter and sort through all the events. When they click on any of the events they will be taken to a page that we have set, e.g http://www.mainpage.com/conference-name. This page will show the programme, speakers and so on. I’m planning to use WordPress Multisite to create event pages, so that I can assign different users to different events and use different WPthemes for all the events.

    First of all.. is it possible to link an event from the event calendar directly to a url that we set, instead of the users landing on http://www.mainpage.com/events/conference-name? I would like to have more freedom when creating the event page, and that’s why I would not like to use your event pages. So when the users click on the image or conference title they are taken to a site within our WordPress Multisite installation.

    Second.. If we buy the Multisite Package, will we be able to show our events on any of the multisite pages we create? For instance.. on http://www.mainpage.com/conference-name we can have a widget with related events? These events are of course taken from our main page.

    Thanks in advance!

    Best Regards,
    Martin

    #998732
    Barry
    Member

    Hi Martin,

    Thanks for contacting us – it’s great to hear you are thinking of purchasing a license 🙂

    I would like to use your plugin to display all of our events on a main page, e.g. http://www.mainpage.com.

    Events Calendar PRO ships with some great widgets that you might use for this purpose. Each has a matching shortcode to make their usage even more flexible than before – so you could easily deploy a list of events to the frontpage.

    Actually using your homepage to house one of the main event views (like the full month view) on the other hand isn’t currently possible with The Events Calendar and Events Calendar PRO by themselves, but there are some third party plugins you can explore which add this kind of capability (please see here for one example).

    First of all.. is it possible to link an event from the event calendar directly to a url that we set, instead of the users landing on http://www.mainpage.com/events/conference-name?

    Yes, that is definitely possible – however as you’ve noted this is not the default behaviour and therefore would have to be implemented as a further customization (though it’s certainly something that could fairly easily be done in a safe and clean manner).

    Second.. If we buy the Multisite Package, will we be able to show our events on any of the multisite pages we create? For instance.. on http://www.mainpage.com/conference-name we can have a widget with related events?

    It’s important to note here that the multisite license doesn’t add any extra multisite-specific capabilities: the software itself remains the same and has exactly the same capabilities and functionality regardless of license type — which is mostly concerned with the intended level of usage, access to support and to automated updates.

    However, once again the flexibility of our plugins shows themselves here and you could certainly build such a widget. You will also find that the forum is full of solutions like this one that you might use as the basis of your own customization work 🙂

    I hope that answers your questions but please do let me know if I can help with anything else.

    #999479
    Martin
    Guest

    Thanks for the info Barry!

    First of all.. is it possible to link an event from the event calendar directly to a url that we set, instead of the users landing on http://www.mainpage.com/events/conference-name?

    I found this code on the web that seems to give me that option. Do you know where I should add it?
    https://gist.github.com/elimn/5bac70de00ec92804dc7#file-tribe_set_link_website-php

    Best Regards,
    Martin

    #999480
    Martin
    Guest
    #999482
    Martin
    Guest

    ok, the link is not showing in my post.. I just paste the code here.

    tribe_set_link_website.php

    <?php
    /*
     * This changes the event link to the event website URL if that is set.
     * NOTE: Comment out the add_filter() line to disable this function.
     */
    function tribe_set_link_website ( $link, $postId ) {
    	$website_url = tribe_get_event_website_url( $postId );
    	// Only swaps link if set
    	if ( !empty( $website_url ) ) {
    		$link = $website_url;
    	}
    	return $link;
    }
    add_filter( 'tribe_get_event_link', 'tribe_set_link_website', 100, 2 );
    /*
     * This changes the venue link to the venue website URL if that is set.
     * NOTE: Uncomment the add_filter() line to enable this function.
     */
    function tribe_set_venue_website ( $link, $postId, $display, $venue_url ) {
    	$venue_link = tribe_get_venue_website_link( tribe_get_venue_id( $postId ) );
    	// Only swaps link if set and full HTML <a> link is set
    	if ( !empty( $venue_link ) ) {
    		if ( $display ) {
    			$link = $venue_link;
    		} else {
    			$venue_url = tribe_get_event_meta( tribe_get_venue_id( $postId ), '_VenueURL', true );
    			$parseUrl  = parse_url( $venue_url );
    			if ( empty( $parseUrl['scheme'] ) ) {
    				$venue_url = "http://$venue_url";
    			}
    			$link = $venue_url;
    		}
    	}
    	return $link;
    }
    //add_filter( 'tribe_get_venue_link', 'tribe_set_venue_website', 100, 4 );
    /*
     * This changes the organizer link to the organizer website URL if that is set.
     * NOTE: Uncomment the add_filter() line to enable this function. As of PRO v3.9.1 not all organizer links are filterable.
     */
    function tribe_set_organizer_website ( $link, $postId, $echo, $url, $name ) {
    	$organizer_link = tribe_get_organizer_website_link( tribe_get_organizer_id( $postId ), false);
    	// Only swaps link if set
    	if ( !empty( $organizer_link ) ) {
    		$link = $organizer_link;
    	}
    	return $link;
    }
    //add_filter( 'tribe_get_organizer_link', 'tribe_set_organizer_website', 100, 5 );
    #999512
    Barry
    Member

    Hi Martin,

    I’m afraid we do not provide technical support here in the pre-sales forum — that’s reserved for users who have purchased license keys.

    If you’d like to do that you will of course be welcome to post on one of our premium forums. Even if you don’t, remember that the community forums are open to all and you can always ask the community a question there, too.

    Thanks!

    #1002756
    James
    Guest

    Hi Barry,

    I’m also looking to purchase a bunch of your licenses, but need to show different filtered calendars across multi-site.

    Do the Pro Widgets come with an embed code, that could be used across installs?

    Thanks,

    James

    #1002842
    Barry
    Member

    Hi James,

    Our widgets can indeed be embedded using shortcodes – providing a convenient way to use them outside of sidebar areas.

    Some, like our calendar and advanced list widgets, can also have multiple category and tag filters applied to them (and, again, this is also possible when using them as shortcodes).

    I hope that answers your question 🙂

    #1007802
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘How does Multisite work with The Events Calendar’ is closed to new replies.