GerZah
Forum Replies Created
-
Oh-kay. I think I found it.
(a) There is indeed a
[my_bookings]shortcode, as defined inem-shortcode.php. The problem is: It doesn’t seem to be able to accept parameters, like[my_bookings blog=x].(b) After a bit of digging, it all boils down to
em-person.phpandfunction get_bookings(…)in line 31ff. The crucial comment can be found in line 36://not the main blog, force single blog search
Well. That leads to line 37:
$blog_condition = “AND e.blog_id=”.get_current_blog_id();
So yeah: In contrast to the events list
[events_list blog=x], it’s not that easy to actually list my bookings from other sites than the current blog / site. … Truth is: When I comment out line 37, so it does not filter uponget_current_blog_id(), I get exactly what I want: The “My Bookings” page in the sub sites show all bookings from the whole network of sites. Clicking a booking takes the user to the respective subsite.Well — darn, now I’ve got a core patch. I don’t like that at all. 🙁
@angelo: No – the other way around! 🙂
The “My Bookings” shows only bookings from that particular site. I would like it to list bookings from all sites.
Is this the other way around for you? Why could that be?
Thanks. If you look at my OP, you will see that I already do that. But this is more or less just a workaround.
The problem is not so much in the event list, but in the list of bookings. The “My Bookings” pages in the sub-sites will list only those events that are booked within that particular site. To see bookings from another site, the user will have to visit the respective other sub-site. — I’ve described that in more detail in my 3rd post.
@caimin_nwl Thanks for the pointer. I’ve certainly read and tried to implement what’s said on that documentation page: http://wp-events-plugin.com/documentation/multisite/
————
So let me try to put this in other words: I have Events Manager operational on the main site. As a matter of fact, Events Manager is network activated. I have event pages on the main site that are fully functional.
What I can do right now is: I can see events created in the sub-sites in the main site’s event list. To my understanding, that is what the configuration setting “Display global events on main blog?” achieves.
————
However: This is pretty much the opposite of what I would like to achieve. As you put it yourself: It’s about “sharing events from the main site to the sub-sites”.
What I would like to do is: I would like to create a truly “global event” – on either one of the sub-sites, or perhaps on the main site. But I still would like to see all events on all sites.
Is there a way to do that?
Oh-kay. I think I understand know where I am wrong.
It is possible to display child site events on the main site event list (which needs to be present there). — What’s needed is the other way around, i.e. showing root site events (or otherwise all events from all sites) on the child site event lists.
And indeed:
http://mysite.com/members/xyz/events/attending/
shows all attended events of user “xyz”, while
http://en.mysite.com/members/xyz/events/attending/
and
http://de.mysite.com/members/xyz/events/attending/
show only the attended events from the respective child site.However …
http://mysite.com/events/my-bookings/
is empty, while
http://en.mysite.com/events/my-bookings/
and (localized URL)
http://de.mysite.com/veranstaltungen/meine-buchungen/
show the respective local bookings.*headscratch* This is all very inconsistent and counterintuitive.
I’d like to add:
I can confirm that the events from both child blogs are stored in the wp_em_events table, the respective wp_x_em_events (with x being the id of the child blogs, as defined in wp_blogs) are empty. Same is true for the global wp_em_bookings table, while the wp_x_em_bookings tables are empty.
The only thing that I can see is: The events in wp_em_events show the blog ID (from wp_blogs) in the blog_id field, which obviously assigns each of the events to one particular blog, i.e. language site.