Forum Replies Created
-
AuthorPosts
-
Brook
ParticipantHowdy origininspired,
It’s nice to meet you. Thanks for reaching out.
You can absolutely hide those form search engines if you are so inclined. Here is a simple snippet you could paste near the top of your theme’s functions.php to add the noindex. Make sure to remove the opening <?php though if your theme already has one, you wouldn’t want an unnecessary duplicate.
https://gist.github.com/elimn/397b1fc8042bf832e813
With that snippet in place you should not see the noindex tag in your source. When Google eventually reindexes the whole site, they will remove those pages.
Does that make sense? Are you able to get that working? Cheers!
– BrookBrook
ParticipantThanks for double checking Kristy. 🙂
I am glad you mentioned the location of those files again. That appears to be the culprit. The current location of your override is:
/themes/my-theme/tribe-events/views/default-template.php
But it should be:
/themes/my-theme/tribe-events/default-template.php
The views are the only thing you can override, so you do not need to include the views folder in your theme structure.
Did that work? Thanks!
– Brook
Brook
ParticipantAlright! Sounds good. To make that change you would need a theme override (click here for a guide)Â for this file:
/the-events-calendar-community-events/views/community/modules/organizer.php
There is a line in there which looks like this:
<?php tribe_community_events_organizer_select_menu( $event ); ?>Simple comment out or remove that line to completely remove the box. However, if users are able to edit events, then when they come back to edit, every time they save after editting a new organizer will be created. Thus, you might be interesting in showing that box when $event != null, which will allow them to use an existing organizer on edits only.
Does that all make sense? Are you able to get that working?
Cheers!
– BrookBrook
ParticipantGood to know, thanks Torsten.
That is harder to do than you might imagine. Our plugin has 4 date format it uses plus another 6Â date time ones. If you want to selectively include Uhr in some instances with the Time, but not all, it is going to be a pain. You would have to write and extensively test a set of filters. This is only a starting place for a couple of the date formats on the site, but if you want you will have to write a bunch of these:
function tribe_change_time_format ($format) { return $format.' \U\h\r'; } //add_filter( 'tribe_date_format', 'tribe_escape_date_format' ); add_filter( 'tribe_datetime_format', 'tribe_change_time_format'); add_filter( 'tribe_time_format', 'tribe_change_time_format');If on the other hand you would like to make it so that anywhere the site displays a time it end with Uhr, that is relatively easy. WordPress gives you the tools in WP Admin > Settings > General. If you select custom format for the time, type “\U\h\r” in at the end:

Does that all make sense? Does the easy option via settings suit your goals?
Cheers!
– Brook
Brook
ParticipantHowdy Torsten,
I would love to help. Would you mind clarifying where and when you would like to add Uhr? Pardon my lack of knowledge about German… Here are some various ways I was picture it might happen:
- 17. September 2015, 13 Uhr– 16:30
- 17. September 2015, 13 Uhr– 16:30 Uhr
- 17. September 2015, 13:00 – 16:30 Uhr
- 17. September 2015, 13:00 Uhr – 16:30 Uhr
Is any of the above possibilites what you had in mind? If not, would you mind sharing what the final one should look like?
Cheers!
– Brook
Brook
ParticipantHowdy Carl,
I have a quick clarifying question for you. Do you want “Use New Organizer” simply set as the default, but a user can still select an existing one if they go out of there way and find one from the drop-down? If so head over to your site’s WP Admin > Events > Settings > Community, scroll down to “Default organizer for submitted events”, and select “No Default”.
Or, do you simply want hide that field entirely and force users to input a new organizer everytime they submit an event? If so, do you really want them to submit a new organizer even if they are returning a second time to submit a second event for the same organizer they added last time, or do you want previous entries to be available to them for submission?
Cheers!
– Brook
Brook
ParticipantHowdy Cristoph,
Thanks for including the events. I just tried importing both of those myself. When I imported them the created a venue within WordPress. I am assuming it is the same for you: Screenshot. However, as you can see the address is the title of the venue. This is because the venue information is incomplete. On Facebook you will notice in the first link that it does not provide you a “Show Map” link to view the event on the map. This is because even Facebook does not understand the address, and thus can’t locate it.
The best solution is to edit the events on Facebook and type in the full universally understood address. Note: On very rare occasion there isn’t a universally understood “official” address. When this happens sometimes you can get Facebook to find it, sometimes not. And even if you can get Facebook to understand as it apparently does in the second event you linked to, Google Maps still might not. Which is what is happening right now with the second event. But, hopefully there is a more specific official address you can input for the second event, and thus fix it.
Does that all make sense? Does that answer you questions?
Cheers!
– Brook
Brook
ParticipantThat makes more sense. I just looked up the ACF API and that helped clarify how your code is behaving.
That template only shows when it is selected in Events -> Settings -> Template -> Events Template. If you go to your WP Admin and then visit that page, which template is selected? If it’s anything other than Default Events Template, this logic will not be loaded.
Does that make sense? Is that the issue?
– Brook
Brook
ParticipantThat’s a good question Juan. But even with Events Calendar PRO you still only need to override the one file, that you already have.
Are you sure that the email you are referring to is the tickets email? Perhaps it is one of the WooCommerce emails. You could test for this by creating a unique override for each of those. Perhaps you could add the name of the file inside each override, and then do a test purchase to see which file is mentioned when you receive it.
Does that sound like a possibility?
– Brook
Brook
ParticipantHowdy Alex,
That is a cool idea. A few people have requested that we add a booking feature to our calendar. This would allow them to set how many overlapping events can be created for a given venue, which in your case would be only one. This is not currently a feature of The Events Calendar, but we are considering building it.
Have you seen the official feature suggestion (click here)? If not, you should open that up and see if it sounds like something you’d be interested.
Unfortunately there are only two solutions available right now. You can wait for us to build that capability and add it to our plugin suite which will take at least a few months to build. Or, you can build it yourself. If you wanted to do something incredibly simple, it might be possible with only a few hours of work. Using the WP API you could tap into save_posts, run a query again the currently selected venue and times, and see if you get any results. If you do throw a WP save error. It won’t be super fancy, but from the sound of your needs I think it would get the job done. 🙂
Does that fully answer your questions? Is there anything else I can help with?
Cheers!
– Brook
April 27, 2015 at 9:47 am in reply to: Template an events list like The Events Calendar Shortcode but using Photo view #958602Brook
ParticipantThanks for getting back to us Jose. I wish there was an option available that didn’t require some scripting. I am going to archive this since you’ve marked it resolved.
Happy developing!
– Brook
Brook
ParticipantThanks for reporting back Glenn.
That is interesting the Technology event was fixed as well. There are certainly some possibilites that could cause that. First and foremost is that permalinks were not fully flushed. This can even happen when you do all the proper steps to flush them. Sometimes a server with caching configured will continue caching the old ones even after they’re flushed. Eventually though, it will clear the cache you just have to give it time.
To be blunt, there is almost no question whatsoever that this is date_default_timezone_set issue. That is the root cause. This issue arises when another plugin breaks a fundamental part of WordPress, presumably unwittingly. When it breaks WordPress, your site doesn’t function properly. In this case the portions of your site which play with dates and times cease functioning as expected. We have done our best to build up a veritable firewall against these sort of attacks by other plugins, but it is not easy. The second thing we are doing is reaching out to any plugin authors who are running destructive pieces of code like that and seeing if we can work with them to fix their plugin.
I am happy things are working well for you now. 🙂 I would not be surprised though if once you enable all of your plugins the issue resurfaces. If that does happen I think the easiest way to proceed will be if you can upload a copy of your /wp-content/plugins/ directory somewhere. Assuming you don’t mind doing that, I can then search through your plugins directory for “date_default_timezone_set”, and which plugin is setting it to something other than UTC.
Please let me know if you have any other questions, Glenn. I would love to answer them and clarify anything I can. Cheers!
– Brook
Brook
ParticipantHowdy Glenn,
I meant I bet my debugging reputation. 🙂 Sorry I didn’t think that might be a localized expression, it’s possible it’s not common in your country or area.
As I mentioned I have switched off all except the 3 plungins I have from you guys. (The events calendar, pro and community events) I run rocket to customise the front screen to show by default as photo.
Thanks for elaborating. When you said you have “removed all plugins” I did not quite know how to interpret that. Obviously you had not removed every plugin from your site. But, now I understand that you were saying you had disabled all of them except the three Tribe ones, Evidently Event Rocket as well, and also some kind of antispam one are now enabled. Thanks for clarifying, very helpful.
Did you notice the URL it is trying to display when clicked?
I definitely did. That is part of the reason why I am rather convinced it is the date_default_timezone issue. That issue can manifest itself in two ways:
1) It messes with an event when the event is being pulled from the database and displayed. Simple disabling the conflicting bit of code (plugin or theme) fixes it.
2) It interferes with the post when it is being saved to the database. When this happens you must not only disable the conflicting bit of code (plugin or theme), you must also resave the post. Sometimes you even need to delete the post, and save it again from scratch.
We are very likely at option #2. While you have every non-Tribe plugin disabled and are running Twenty Thirteen as your theme, try editing the Lion King event. Maybe add the word “test” at the end of the event, then click Update. In every other instance I have seen with your exact symptoms, it will fix the problem. You will need to do this with every event that 404s though, unfortunately. Other plugins really should not being changing the WordPress constant by using the PHP function date_default_timezone_set. It’s not just bad practice, it’s about the worst practice you can have. When they do, it can involve a bit of elbow grease to clean up after them.
To be clear, there are numerous symptoms you share with others who have experienced date_default_timezone_set woes. First and foremost is that this does not affect every event, only certain recurrences. It does not affect the first few events in a recurrence series. To confirm this click See All for the Lion King series, then click on any of the first few events. They all begin at 8pm, and do not suffer form the issues. But those later in the series move to an hour later, 9pm, and they all 404. This is 100% inline with the date_default_timezone_set issue.
Are we closer to the same page now? Does editing and resaving the event fix it?
– Brook
Brook
ParticipantHowdy Leslie,
In that case you could use WooCommerce, WooTickets, and The Events Calendar. You do not need to publicly show The Events Calendar anywhere on your site, rather it can just be the framework underneath WooTickets.
In order to add a ticket, you will add an event with a date/time. Then add tickets to that event. You can add multiple tickets to a single event, and they can be of various prices and quantities. You will need to change a couple of setting in WooTickets to make the tickets visible within WooCommerce’ shop page. But that is quite doable. And you’re all set.
We are adding barcode scanning functionality to our ticket framework. Currently it is in a public beta, but it is note quite released yet as part of the plugin suite. You would need ot contact us about joining the beta if you need that functionality right now. It will likely go from beta to included in the plugins here soon, but it’s not there yet.
Please let me know if you have anymore questions. Thanks!
– Brook
Brook
ParticipantExcellent I am really happy to hear that.
– Brook
-
AuthorPosts
