• Resolved kathycac

    (@kathycac)


    I am using Event Manager on WP Multisite in global tables mode.

    I do not want to display subsite events on the main site, but I do want to show certain event categories from the main site on all calendars and event lists of the subsites.

    Even though the widget shows categories this has no effect and if the subsite has no events of its own it shows no events.

    I am experiencing two issues when displaying events from the main site on subsites:

    1) using [events_calendar blog=”1″ long_events=1 full=1 scope=”all” categories=”277, 278, 279, 280, 350, 356″] seems to display the correct events but does not start displaying any on the calendar until July 1. The link on each calendar event takes me to the home page of the subsite I am currently on.

    2) using [events_list blog=”1″ limit=”10″ scope=”future” categories=”277, 278, 279, 280, 350, 356″] ignores the category restrictions and each of the event links takes me to the home page of the subsite I am on, just as the calendar links do.

    HELP please.

    Thanks,

    Kathy

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter kathycac

    (@kathycac)

    Hello,

    Haven’t heard back on this.

    This is a major issue. Tried it on several sites.

    In multisite on a subsite the events links for events from the main site go to the home page of the subsite you are on.

    I would rather have no links to an event page and have all of the pertinent info in the caledar tootip on subsites.

    Also, on issue #1 in my previous posting, I am wondering if when July rolls around the events showing up on the calendar will start in August.

    Thanks,

    Kathy

    Hello,

    I reproduced the problem you are experiencing … I think there is a bug.

    @eventsmanager, the site option dbem_ms_global_events_links is not set when you activate global table mode

    @kathycac, you can try adding this line to your theme functions.php

    add_filter('pre_site_option_dbem_ms_global_events_links', create_function('$a', "return 1;"));

    I hope this helps

    I did not know this feature … brilliant

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    will try to replicate this and inform Marcus if this is a confirm bug. however, do you have sample link for us to see?

    thanks

    Plugin Support angelo_nwl

    (@angelo_nwl)

    unfortunately, cant seems to reproduce the error however can you try @franceimage suggestion? and a sample link for us to see

    Thread Starter kathycac

    (@kathycac)

    @franceimage – thank you – I will indeed try your suggestion.

    @angelo_nwl – are you using it on multisite in global tables mode?

    Can you ask Marcus to take a look? It’s happened on two sites. I’ll send a link as soon as I have the under construction page off on one of the sites.

    Thanks,
    Kathy

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    the dbem_ms_global_events_links option I don’t think is relevant here, because that forces events to show on the main blog, which shouldn’t be the default behaviour imo.

    I’ll test this out too, although if you have a sample site we could look at that would be helpful.

    as for having no links + only tooltips … that’d be a customization you’d make to the calendar template files.

    Sorry if I introduced some confusion with dbem_ms_global_events_links …

    Here is what I did:
    1/ I reproduced exactly what @kathycac described (a blog wants to display events from the main blog in a network).
    2/ I saw that url’s to the main blog events are wrong (both in calendar and eventlist)
    3/ I debugged step by step to see where the url’s are built (there are built in em-events.php in function get_permalink())
    4/ I forced the use of get_blog_permalink() with the dbem_ms_global_events_links option

    if( get_site_option('dbem_ms_global_events_links') && !empty($this->blog_id) && $this->blog_id != get_current_blog_id() ){
       //linking directly to the blog
       $event_link = get_blog_permalink( $this->blog_id, $this->post_id);

    And it did solve the problem … may be at the expense of creating another one

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    @franceimage actually, you did find the culprit originally (the problem with too many options, too many combinations to test :)). Thanks!

    Now that I can reproduce this, a fix isn’t far off.

    Thread Starter kathycac

    (@kathycac)

    Hooray! Many thanks to both of you!!

    PS – will this fix address both issues I mentioned?

    Thread Starter kathycac

    (@kathycac)

    In addition to the events linking back to the main page of the site I am on, the category filtering does not have any effect in the [events_calendar] shortcode. Just shows all events from the main blog.

    Is it possible to use a shortcode where events from two blogs are listed? I tried [event_calendar blog=”1, 144″] because I want to list events from the main blog and events from the blog I am viewing – blog 144.

    How does one do this?

    Thanks,

    Kathy

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    regarding #1 and events not displaying until June onwards, I don’t think so, assuming there are events to show. Calendars don’t currently respect the scope, it shows all events previously and future.

    using comma-seperated blog ids shoudl work. If not, try doing it without spaces between numbers/commas.

    Thread Starter kathycac

    (@kathycac)

    Hi Marcus,

    There are indeed events to show previous to July, but none show up.

    Removing spaces does not work for showing events from multiple blogs and categories listed are not honored. Just pulls in everything from blog 1.

    The main reason I chose this plugin was for these features in multisite but they don’t work.

    I’m thinking I may have been better off just importing a calendar feed into the subsite calendars. ??

    I would be happy to buy the premium plugin even though I do not need the premium features, but I would want these features I do need to work. Is the premium plugin different from the free version and do these features work in it?

    Thanks,
    Kathy

    Hi Kathy.

    The premium version adds payment gateways and a few other options but nothing relevant to this issue.

    Is it just the 144 blog that doesn’t work, or do other subsites have the same issue?

    What happens if you just pull data from one blog at a time:
    [event_calendar blog=”144″] ?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I just tested this and other combinations out on one of my test sites (on a subsite), and it worked fine for me:

    [events_calendar blog=”1,2″ full=1]

    it showed events from both blogs and going back in time showed past events.

    Have you made any changes to the plugin code, overriden our templates or used hooks to modify EM behaviour?

    Also, if you could paste a screenshot of your MultiSite Options EM settings it may help us reproduce the problem. That’s the tricky part, there’s lots of possible combinations, once we reproduce the bug, fixing the problem is generally easy.

    Btw, going pro won’t have any effect here. If it’s a bug we can reproduce, we fix it regardless.

    Thread Starter kathycac

    (@kathycac)

    Hi Marcus,

    Sorry for the delayed response. I found one of my issues – using “categories” instead of “category”. ??

    So filtering categories works fine. And pulling in events from multiple blogs works fine.

    But when I use them together – blog=”1,2″ and category=”1,2,3,4″
    events from blog 2 that aren’t entered into ANY categories obviously won’t show up.

    But I don’t want to add events from the subsite to the categories from the main site and I can’t create site specific categories on subsites.

    Are you adding site specific categories soon?

    Also, are you creating a fix for the incorrect links on the events listed on the subsites?

    Thank you!

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘WP Multisite blobal tables mode – display events from main site’ is closed to new replies.