Forum Replies Created
-
AuthorPosts
-
July 7, 2016 at 8:39 am in reply to: I need to know how do i get an Event Post with Ajax (wp-admin.php) #1136516
Brook
ParticipantHowdy Patricia,
I would love to help you with this.
I am not sure what about that code is obsolete, it looks pretty solid to me. When you run the request do you get “no posts found”? Or, does something else happen?
Cheers!
– Brook
Brook
ParticipantHowdy Juan,
Nice work getting the attendee meta info in there. Inserting the ticket ID should be pretty similar. You will want run:
get_post_meta( $order_id, '_unique_id', true );Where $order_id is going to be the same ID you used to get the attendee meta for an order.
Does that make sense?
Cheers!
– Brook
Brook
ParticipantYou are very welcome.
The feature request can be found here: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/9790851-community-allow-each-of-the-multiple-organizers
In spite of its relatively low vote count we are definitely considering building it. I can not speak for the strategist who plans such things, but to me it seems more like a question of “when” not “if”. I appreciate your voting on it as that helps us decide when. 🙂
Let me know if you need anything else. Cheers!
– Brook
Brook
ParticipantAhh yes, I should have mentioned that for performance reasons this obeys the “Number of events to show per page” setting in WP-Admin > Events > Settings . So if that is set to 20, it can only import the 20 most recently published events. If you are inserting more than 20 events it will only import 20 of them.
Based on your feedback I created a new version of the the snippet: tribe-snippet-ical-export-2016-07-07 You can updated to this version by performing a manual update ( Tutorial: Manual Update ). This one allows you to set the count for the URL.
I am also working on writing a tutorial for this snippet. It’s not published yet, but this is the relevany portion from that tutorial:
<p style=”padding-left: 30px;”>Typically this feed will output the same number of events as your List View. So if you have set that view to show 10 events, this feed will contain only 10 of the most recently published events. Sometimes you wish for this feed to go further back in history, perhaps to contain every event since your calendar was first published. You can specify how many events are in this feed via the URL:</p><pre style=”padding-left: 30px;”>example.com/events/?ical=1&tribe_display=recently-published&tribe_posts_amount=9999
My apologies for the hassle. You are actually the first person to use this snippet. I really appreciate your feedback on it. Does it work better now?
Cheers!
– Brook
Brook
ParticipantYou are welcome!
Typically using Additional Fields would be a perfect solution, but Additional Fields are not part of the iCal format and thus would not transfer from site to site. You might consider using categories or separate venues for this. You can have multiple categories, so a category labeled “Outside ring only” alongside a category labeled “Horseriding” might work. Or you could have a venue labeled “______ Outside ring” for each of the rings.
Does one of those sound like a good option?
- Brook
Brook
ParticipantThat is very clear, thank you.
What you want is possible with our current API, but it will take a decent amount of dev work to accomplish. First you (or your developer) will want to familiarize yourself with Tribe__Events__Community__Tickets__Main::generate_routes(). This function is hooked into ‘wp_router_generate_routes’. You will notice it adds the ‘attendees-report’ route which is simply:
new Tribe__Events__Community__Tickets__Route__Attendees_Report( $router );That class, Tribe__Events__Community__Tickets__Route__Attendees_Report, is what imposes requirements on who can view this page. You could extend this class and then hook into ‘wp_router_generate_routes’ yourself and replace the ‘attendees-report’ route this.
Now that you have you own class handling the routes you can override any restrictions. You might set it so that a random token when appended to the URL allows a user to access this page. Something like example.com/events/community/attendees/event/1123/?token=a98sd7fds922kd would allow you to give access only to people you share the link with. Or, if the organizer is registered on your site you could check if they have access to this event, perhaps via a custom field on the Organizert that specifies User IDs with access. It’s up to you.
Of course if you are not a developer you might just be interested in voting on that feature request. This is certainly something we might be interested in building in the future.
Cheers!
– Brook
Brook
ParticipantAhh yes, that makes sense. I was worried other areas would be broken as well. This is actually probably broken in every area that display the attendee meta. Earlier today I filed a bug report on this so our developers can investigate and build a fix into a future version of our plugin. Unfortunately the other areas can not be fixed with a miniplugin like the above. 🙁 We will have to wait on our developers to fix this.
I have added your topic to the bug report, so you will get notified here as soon as a new release with a fix is ready.
Does that answer all of your questions for now?
Cheers!
– Brook
Brook
ParticipantThis reply is private.
Brook
ParticipantHowdy Great Taste,
Good question. Those events will not be imported as recurring events. The recurring rules proved too complicated to be able to import via CSV. The only way to setup recurring rules is manually. You could import the first event in the series, then edit it to add the recurrence rule.
I wish I had better news here. We are hoping to add recurrence support to our iCal importer, but even that format has proved hard to adapt the recurring rules for.
Does that answer your questions?
Cheers!
– Brook
Brook
ParticipantHowdy again JSK,
I just saw your feature request on UserVoice that we fix this. I appreciate your continued interest in getting this addressed. Just in case you missed the email I sent, we consider this is a bug as well. As such I removed it from our feature request area. Bugs are naturally a higher priority than feature requests, and do not require people to vote on them for a fix to be included.
Thanks again for reporting this! We will get back to you in that thread when a fix is ready.
– Brook
Brook
ParticipantHowdy Haime,
This is possible with iCal Importer . We have a mini plugin that makes this much easier to setup: tribe-snippet-ical-export Install that on Website A . This will add a new URL to website A that generates a recently published event iCal feed.
example.com/events/?ical=1&tribe_display=recently-published
You can then input that URL into the importer on Site B and it will import any events that were recently published or modified on Website A. From there select which category of events from Website A you want to import, and it will works its magic on those events.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
Brook
ParticipantHowdy Aurélien,
I would love to help you try and find a solution here.
Let say we have set an organiser and we’d like to provide an access to view the participants. I tried to find a capacity in order to create a specific WordPress role but I can’t find it.
WP Roles would apply equally to all of the events. So if you give one organizer the ability to access Attendee pages for an event, they could then access the attendee page for any event including ones they are not party to. Is this what you want? Or are you trying to give this organizer access to only specific events like in this feature request?
Cheers!
– Brook
July 5, 2016 at 8:22 am in reply to: Change /event/ part of URL on single page in line with category #1135470Brook
ParticipantThat’s probably wise. 🙂 WordPress is very customizable and does let you alter this stuff, but in all of my client sites I try to avoid it if possible. It is a finicky API, particularly the more plugins you have installed. They must all share the same space and it gets crowded and unpredictable quickly.
Fortunately Google and company seem to note value URL structure as highly as they used to, and so focusing on other areas is usually the best place to spend your time anyways.
Please let me know if you have any more questions. Cheers!
– Brook
Brook
ParticipantI retested the issue and I am seeing the same thing now, Hebrew fields are hidden on the attendee page. It is very strange it was working for me before. Thanks for convincing me to try again!
I just crafted a fix for this: tribe-snippet-fix-rtl That is a mini plugin you can download and activate on your calendar called “The Events Calendar: RTL Fixes” . Once activated the admin area should start working as you expect. Does it?
Cheers!
– Brook
Brook
ParticipantHowdy Johan,
I would love to help you with this.
A little bit of CSS should be able to fix this for your theme. Insert the following into one of your theme’s CSS files:
.tribe-events-list div.tribe-events-event-image { margin: 0 2% 0 0; }And that should do it. Or if you are not familiar with inserting CSS, you can even do so with a simple WordPress plugin aptly named Simple Custom CSS.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
-
AuthorPosts
