Forum Replies Created
-
AuthorPosts
-
Barry
MemberHi!
The first thing to do here is take a look at our Themer’s Guide which covers the basics of safely overriding and customizing our templates š
From there it really depends on where exactly you want to implement this feature – if it’s to occur within actual event posts then you’ll probably be interested in setting up a custom tribe-events/single-event.php template (based on the main views/single-event.php template found in The Events Calendar’s plugin directory).
Some code like this should allow you to grab the existing time, change the timezone and display the result:
$starts_on = tribe_get_start_date( null, false, 'Y-m-d H:i:s' ); $source_tz = 'America/Los_Angeles'; $target_tz = array( 'America/Edmonton', 'America/New_York' ); $date_time = new DateTime( $starts_on, new DateTimeZone( $source_tz ) ); foreach ( $target_tz as $new_tz ) echo $date_time->setTimezone( new DateTimeZone( $new_tz ) )->format( 'H:i (e)' );You might position this just after the loop starts, which in the context of single-event.php is marked be these lines:
<?php while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>This is a relatively advanced customization so it’s something we’ll really need to leave in your hands in terms of ironing out the details – but I hope this gives you a few ideas that will help you to get started.
Good luck š
August 1, 2014 at 8:28 am in reply to: Events Calendar Pro & SiteOrigin's Page Builder Widget #557868Barry
MemberHi!
You could add a test in your custom venue widget template to check if that custom field is set and, if so, skip over it. The downside to that approach of course is that it won’t pull in an additional event to replace the one that is skipped.
It would be possible to modify the query before the template is rendered but it would be a fairly advanced customization to do so and not one we can really go into here on the forum, unfortunately.
Perhaps though a middle ground could be as follows:
- Increase the number of events listed by the widget so it returns more events than you need (ie, use the maximum setting of 10)
- Customize your template so that it:
- Skips events that have been flagged with your custom field
- Exits the loop once four events have been displayed
Not a perfect solution and it may not work in your case, but I thought it was worth mentioning as a “quick and dirty” alternative.
I hope that helps or at least gives you a couple of ideas you can explore š
Barry
MemberAwesome š
I’ll go ahead and close this thread in that case but please do feel free to create new ones if you need assistance with anything else.
Thanks again!
Barry
MemberHi Andreas,
Tricky problem.
I certainly don’t see an issue myself whether I navigate to the main events page/single events via existing links or even if I add/remove trailing slashes manually, it resolves without descending into a redirect loop.
If it’s a sporadic problem it’s going to be hard to get on top of – but it also sounds like something that, especially given your note about your customer experiencing greater difficulties when connecting via Citrix, is perhaps occurring at a level above anything we can control.
Just to confirm – it is only event pages that are being impacted upon?
Barry
MemberHi Dave,
You’re absolutely right, please accept my apologies.
The fix I provided should work – but placing it in the theme’s functions.php file fails because the theme doesn’t load until long after the order events are processed by Shopp. What we would need to do here instead is implement the same fix as a plugin – and I’ve done just that to save you some time. It’s a single file plugin and you can either:
- Grab it in .zip format allowing you to upload it through WordPress’sĀ plugin admin screen like you might do with any other plugin
- Or grab the source directly … you could save this locally – be sure to give it a .php file extension – and then upload it via FTP to your wp-content/plugins directory
Then simply activate it (should appear as “Delay Shopp Tickets”) and – hopefully – that will resolve this problem.
Let me know if that helps and apologies for the confusion!
Barry
MemberHi!
I see you created a new test event and now the pin marker seems to be displaying as expected on your map view. With regards to the issue you reported initially, are you happy this is now resolved?
There is one event in there that is scheduled for tonight at 7:00PM Pacific time (http://essential-essentials.com/event/medicine-cabinet-makeover-diamond-club-event/). It is prematurely showing up as having passed.
That sounds like a separate problem and it could be worth creating a fresh support thread if you need more help on that front – but in the first instance I’d recommend checking your WordPress installation’s timezone setting (via the General Settings admin screen).
If it is a fresh installation and this has been left at GMT (London Time) then that might explain this problem.
Does that help at all?
August 1, 2014 at 7:39 am in reply to: No License Key Tab/ Fields for Pro or Community Events, Can't Download 3.7 Updat #557506Barry
MemberThat does matter – thanks for highlighting that š
Generally, in a multisite environment, you cannot enter license keys and benefit from automated updates. In these situations you cannot take advantage of automated updates and so manual updates are required.
One thing you could try is network activating the plugin (or else activating it on the network’s primary blog) and that should facilitate this, though we realize that isn’t always practical.
Does that clarify things?
Barry
MemberHi – glad you’re enjoying the plugin š
I definitely think this is achievable. That said, it does sound like the sort of customization though that we’d primarily have to leave in your hands. In broad outline though this is how I might tackle it:
- Set a post meta field (simply using WordPress’s native custom fields feature, which you can enable for events in the Additional Fields settings tab) to identify the events in question
- Modify WordPress’s main query in order to alter the where clause
- Set it such that it includes posts wherever the post_type is a post or the post_type field is tribe_events and the meta_key and meta_value are appropriately set
You could alternatively test against a specific tag or other taxonomy term being set – there are quite a few ways you go tackle it, really – and so ultimately a lot will depend on what you yourself find easiest to code and of course what the people managing events on a day-to-day basis will be happy with.
Good luck š
July 31, 2014 at 4:52 pm in reply to: Recurring Event not starting with the correct date on the events page #551283Barry
MemberHi mightymen, sorry to hear you are hitting difficulties.
Would it be possible to start with our standard troubleshooting steps in the first instance?
- Could you ensure The Events Calendar and Events Calendar PRO are up-to-date
- Please then deactivate all other plugins
- Switch to a fresh, unmodified copy of a default theme such as Twenty Thirteen
- Does the same problem persist?
Assuming the problem goes away after running through those steps, can you begin reactivating everything one-at-a-time and try to identify if anything (your theme/another plugin) seems to be conflicting?
Let me know how you get on!
Barry
MemberHi!
We’ve already got a past events view and an upcoming events view (normally found at yoursite.com/events/past and yoursite.com/events/upcoming respectively) and so it would definitely be possible to style your site so as to make links to each that look like tabs.
Might that help? If so, I definitely recommend reading through our Themer’s Guide which covers many of the basics for safely overriding and customizing our templates š
Let me know if that helps!
Barry
MemberHi!
Shopp Tickets by default will attempt to generate and dispatch tickets as soon as an order has been invoiced.
This can be configured via a short snippet, however – if you add this to your theme’s functions.php file it should do the trick:
add_filter( 'shopptickets_generate_tickets_hook', 'shopptix_change_generator_hook' ); function shopptix_change_generator_hook() { return 'shopp_captured_order_event'; }Does that help with this at all?
July 31, 2014 at 4:12 pm in reply to: Recurring Events shows price box on every occurance ā How do I change this? #551074Barry
MemberHi! Just for the avoidance of doubt, is it only in list view that you wish to make this change?
Barry
MemberHi!
Do you simply mean to let people jump to the submission page (from the main calendar view) and vice versa?
Perhaps the best and easiest way is simply to add two new menu entries to your main navigation menu – one for the submission page and one for the main events page.
Would that work here?
Barry
MemberHi Stefan,
A snippet like this one – which you could add to your theme’s functions.php file – ought to do the trick:
add_filter( 'tribe-events-bar-filters', 'modify_location_filter', 100 ); function modify_location_filter( array $filters ) { if ( ! isset( $filters['tribe-bar-geoloc'] ) ) return $filters; $filters['tribe-bar-geoloc']['caption'] = 'Location'; $filters['tribe-bar-geoloc']['html'] = str_replace( 'Location', 'Enter Nearest City,State', $filters['tribe-bar-geoloc']['html'] ); return $filters; }Does that help here?
Barry
MemberI’m sorry to hear you are hitting difficulties.
I do see that you already ran through our standard troubleshooting steps which is awesome:
YES, I’ve deactivated all other plugins to check for a plugin conflict.
YES, I’ve reverted to the 2011 default WordPress theme (with other plugins still deactivated) to check for a theme conflict.Can you confirm if those resulted in the problem going away and, if so, were you able to isolate the conflict to a specific plugin or even to your theme?
-
AuthorPosts
