Forum Replies Created
-
AuthorPosts
-
Casey D
MemberHello aling,
Thanks for contacting us! Can you give me a more specific scenario where you are trying to implement this? Do you mean a custom url query param that will return a query based on the additional field?
If so “Yes, I think”, but I’m not sure that is built in. Can you get me some more info and I’ll get you an better answer?
Cheers!
– Casey Driscoll
Casey D
MemberHello baynature,
Oh boy! This is a challenging request. It seems very possible, but I’m afraid I can’t put too much time in, as this level of customization goes beyond the scope of the forums.
Custom taxonomy is built into WordPress, so you are able to utilize they core API to add and extract it pretty easily, once it is registered.
However, our Community Events form isn’t exactly built for it. Our tax system is built around ‘tribe_events_cat’, so you’ll need to go quite a bit farther to render the form, validate and save. It is standard CRUD though, so it shouldn’t be too hard.
So the ‘views’ folder is only part of the equation, but yes I think the taxonomy.php is where you would render the form for your custom tax. You need to make sure it is saved to the right place (after validation) and I don’t think CE is built for that. It won’t look to save an extra taxonomy (I don’t think).
If I were tackling this I would search the Community Events plugin files for any filter I can find (set up with apply_filter). You’ll find a few submission and validation filters where you might be able to interject your custom submission data.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
August 6, 2014 at 11:26 am in reply to: Automatically publish logged in, hold for review logged out. #597777Casey D
MemberHello longmontwebsite,
Thanks for contacting us! Here is some code that should do what you are looking for.
It assumes you are allowing anonymous submissions, but default status is still set to ‘draft’.
https://gist.github.com/caseypatrickdriscoll/7a76948390b12e4a9f75
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
August 6, 2014 at 8:44 am in reply to: community events: customize text after event is submitted #596972Casey D
MemberHello kabard,
That’s really close! Although I obviously wouldn’t hack core. 🙂
This code may help you out. You could also just set [‘messages’] directly as you have.
https://gist.github.com/caseypatrickdriscoll/c958ff287672bc70cd0c
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
Casey D
MemberHello Ron and Benita,
There are a few places to change this.
General WordPress date/time formats are in the General Settings page
/wp-admin/options-general.php
General Events Calendar date/time formats are at the Events Display Settings tab
/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=display
To change the Community Events date/time, go the Community Settings tab
/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=community
I believe you want the first option for 24 hour format.
Does this make sense? Let me know if I can explain anything else!
Cheers!
– Casey Driscoll
August 6, 2014 at 8:24 am in reply to: Customizing the Required Fields Error Message post-3.7 release #596883Casey D
MemberHello all,
We made some updates to prevent these problems. Here is the new code:
https://gist.github.com/caseypatrickdriscoll/3f56502b6ecfb50ae322
You just need to use str_replace() to screen for ‘Tax Input is required’ or any other string you want to replace.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
Casey D
MemberHello dealerdan,
Thanks for contacting us!
The first solution that comes to mind is a css one. Simply hide the DOM element on the pages you desire (or show it, conversely). Check out the body classes on each page, for example ‘events-single’ vs ‘events-list’. You can use them to target the right areas pretty quickly.
Otherwise, it is probably more elegant to use the remove_action( ‘tribe_events_after_template’ ) function for the pages without it. I’m not exactly sure how that would be implemented though, but may be worth exploring.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
Casey D
MemberHello kreyes,
Check /resources/ for all the css files you’ll need. Of note are tribe-events-theme-mobile.css and others. They have some notes at the top and are unfortunately not split up by media queries as much as I hoped (as much as I can tell).
I’m still learning about this particular implementation (although I’m an expert in CSS).
Let me know if you have any specific questions as you run through this, and I’ll see if I can answer any for you.
Cheers!
– Casey Driscoll
August 5, 2014 at 5:46 pm in reply to: Cross referencing imported events with existing venues #591463Casey D
MemberThis reply is private.
August 5, 2014 at 5:44 pm in reply to: Cross referencing imported events with existing venues #591436Casey D
MemberThanks erionmedia,
I tried replicating it, but unfortunately (?) it worked ok. I imported the Venues first, then imported the Events. The Venues were attached to the Events with no problem.
You might have a plugin conflict, that might be causing the disconnect? If you use this tutorial, you may be able to discover the source of the conflict.
Sorry I couldn’t be more helpful!
Let me know if I can help with anything else.
Cheers!
– Casey Driscoll
Casey D
MemberActually just realized a suitable workaround. If you are using PRO you will have ‘Additional Fields’ in the Events Settings section. You can create a ‘Venue Website’ field, and it will show on the front end. Not perfect, but I think it will hold you over until we launch the fix. You can then copy/paste the users input into the actual field in the back end, but at least you are actually collecting it.
Why the italics? I feel like I’m whispering.
Cheers!
– Casey Driscoll
Casey D
MemberHello persyst,
Sorry for the delay! Looks like this bug has existed for a while, so thanks for pointing this out.
We will more than likely release the fix to this in the next release, currently scheduled for late August. I can’t guarantee the feature will launch then, or the release will be on time, but that is my best guess.
I’ll close this thread until then, and contact you on this tread when the fix is released.
Unfortunately there is not a workaround available.
Sorry for the disappointing answer!
Cheers!
– Casey Driscoll
Casey D
MemberHello aling,
Unfortunately this level of customization is starting to go beyond the scope of the forums (and my expertise). I’ll offer what tips I can though!
I believe the conditional you want is tribe_is_past(). You can read more about it here: http://docs.tri.be/Events-Calendar/function-tribe_is_past.html
Let me know if that doesn’t help, and I’ll see if we can cook something else up.
Cheers!
– Casey Driscoll
Casey D
MemberHello everyone,
The two plugins listed above are ready for use. These aren’t official plugins, but should be a suitable workarounds until another solution is developed.
Install and activate both of these plugins and you will see a captcha on your Community Events form
https://github.com/caseypatrickdriscoll/patched_up_community_events_captcha
Really Simple CaptchaLet me know if you have any other questions!
If you have a moment, we’d love for you to submit any other spam prevention idea to our UserVoice forum. We take user ideas and contributions very seriously, and many times their ideas end up in our future releases.
Cheers!
– Casey Driscoll
August 4, 2014 at 6:46 pm in reply to: Customizing the Required Fields Error Message post-3.7 release #582466Casey D
MemberHey there, here is some code for a work around. I think it might be the solution going forward as well. We’ll update that tutorial in the next few days once we finish the edges.
add_filter( ‘tribe_community_events_form_errors’, ‘ce_custom_error_msg’ );
function ce_custom_error_msg( $errors ) {
$message = ‘<h5>There was a problem saving your event. The following fields are required:</h5>’;
$errors[0][‘message’] = $message . $errors[0][‘message’];return $errors;
}With that filter you can also screen any text you want in the $error[0][‘message’] string, to replace your “Tax Input is required” to “Event Category is required”.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
-
AuthorPosts

