Forum Replies Created
-
AuthorPosts
-
December 28, 2012 at 7:50 am in reply to: Mini Calendar: Click month, display events from that month #30068
Barry
MemberActually, I’ve cleaned that code up a little.
December 28, 2012 at 7:44 am in reply to: Mini Calendar: Click month, display events from that month #30067Barry
MemberAdding some code like this to your theme’s functions.php file (or a suitable plugin) should allow for the upcoming events list to function as a month-specific list view where URLs like xyz.com/events/upcoming/2013-02/ are received.
Does that get you any closer at all?
Barry
MemberPossibly you could use the same logic as The Events Calendar itself? For instance, if your slider essentially is built around a loop you could use that or similar logic to skip iterations.
Is there a way to somehow have a “event-passed” category (ECP does add the event-passed DIV with this information to the post in single display) added to all these events
That’s an interesting idea – the short answer is this is definitely possible. You’d need to decide whether this would be handled automatically, behind the scenes, and if so would a scan of categories be made on every request or would you run this as a scheduled task? Alternatively would you set up a sort of batch-script to handle this and run it whenever you felt there was a requirement to do so?
There are a few challenges there and you’d need to figure out the best strategy to meet your/your client’s requirements.
Barry
MemberHi Salvador!
Also instead of adding it to the theme’s style.css file it would be nice if there was a separate css file (say one I could put in the event’s folder we need to create to override templates and functions)
Sorry I missed that comment first time round. You can indeed do this. Locate and copy the following file:
wp-content/plugins/the-events-calendar/resources/events.cssAnd place it in the events directory within your theme’s directory, along with any other template overrides. You can find this information if you follow the link I provided earlier (Themer’s Guide: CSS).
The above change to my theme’s style.css file didn’t work. Any ideas?
Can you tell me which file you added your new CSS rule to? I can’t seem to find it in any of your stylesheets.
Barry
MemberGreat, thanks!
Barry
MemberIdeally, I don’t want to see the Month Name (with arrows shown in orange) for any date earlier than November 2012. And the drop-down list of months should start at November 2012. Is that what the template override was meant to do?
No, that’s not the aim. What it tries to do is detect requests for calendar views earlier than a certain date and then redirects those requests to the homepage (or wherever else you specify – for example, if you preferred, it could be the earliest possible date that you will allow them to see). It doesn’t affect the navigation links/dropdowns at all.
What you want to do with the month navigation is possible, but something like this, although totally possible, is quite involved:
And the drop-down list of months should start at November 2012.
So I can’t help out with that simply because we have a limited amount of bandwidth with which to support everyone. What we could do however is hide the previous month link if it is for a month you don’t want to show.
I’d like to make sure everything else is working as expected first of all, though, so could you share your customized ecp-page-template.php (using a service like Pastebin or Gist) and confirm where it is located relative to the wp-content directory?
Barry
MemberThat would be great Cristina – it would definitely be useful for others here.
Barry
MemberNo problem – I’m glad you’re all sorted here 🙂
Barry
MemberI’ve no doubt custom product/cart/checkout inputs are completely possible with WooCommerce, so you probably don’t even need Gravity Forms unless that’s simply a tool you like to work with – and you can probably add those fields prior to the final stage of checking out, which is where there might be overlap with WooTickets (this is really an informed guess on my part, not a definitive answer).
It could be worth making contact with Woo’s support team for that one though (treat it as something you want to apply to a generic product, the fact that it represents a ticket is really a side detail).
Barry
MemberSo just to be clear, you already have a solution that lets customers provide a list of attendee names and you have tied them to a specific order, so all you need to do now is “inject” those names into the attendee list?
Barry
MemberI’m tempted to explore this and write it up on my own blog as a bit of extra-curricular work (because I’m a geek and I find this interesting).
What WooTickets does though is utilize the woocommerce_email_attachments hook. The basic approach I would take to enable deeper customization is to stop WooTickets’ own code from running at this point and substitute my own.
Unfortunately, I can’t get into more depth “officially” since we’ve got a limited amount of bandwidth for support activities and it would consume quite a lot of time.
Btw, thanks for providing forum support this week!
No problem 🙂
Barry
MemberThanks for all the feedback guys – it should ultimately help us to strengthen this product.
Customization of the pdf output that doesn’t require modifying core plugin files.
While not straightforward, exactly, I believe it is possible to do this without modifying core plugin code. It definitely could and probably should be easier, though.
Barry
MemberFair point, so that would be a limitation of using Additional Fields in their default state.
It’s definitely possible to add new fields and add datepicker functionality however that would be outside of the scope of support we can offer here. What I will do of course is note your interest in this as a possible feature request and I’ll put it forward to the rest of the team 🙂
Thanks!
Barry
Member$GLOBALS['wp_query']->query_vars['eventDate']The above array element is basically where the date comes from so you could pull directly from that, or you could creatively use one of the Tribe API functions to provide a possible element of future proofing:
substr(tribe_get_month_view_date(), 0, 10)Does that help?
Barry
MemberHi Ann: if you’re still in the testing stage could you try changing the permalink setting to /%postname%/ and see if that resolves the problem (it may not) just so I can get a better bead on this?
Thanks!
-
AuthorPosts
