Forum Replies Created
-
AuthorPosts
-
Brook
ParticipantHowdy Kalle,
I would love to help you with this.
That variable would be accessible as a member of the public object:
tribe_ev.geolocSo you can check if:
tribe_ev.geoloc.mapIs accessible.
Just a parting tip if you’re new to JavaScript development. Using console.log() instead of alert() will make your life much easier. Console.log will give you access to the full variable, allowing you to inspect its properties.
Please let me know if you have any questions. Cheers!
– Brook
August 10, 2016 at 10:42 pm in reply to: Extremely slow events page and single event page load times. #1150359Brook
ParticipantOi! It’s crazy that it crashed. Sorry for all the hassle but I am really happy to hear that SQL query worked such a marvel. For anyone else facing a similar dilemma, here’s the relevant bits from that private reply:
https://gist.github.com/elimn/e5de5d2037678de0b926c307022571c5
If you want to you could follow that tutorial/sql query instead and directly delete the events. On the one hand it is very very fast. On the other hand, if you have any third party plugins that add data to posts, it is possible their data will not get deleted by this fast method. It’s a very rare thing, but it is why my preferred method for deleting those recurrences would be updating the event from WP Admin as I outlined in my last post.
Thank you for getting back Thomas.
- Brook
August 9, 2016 at 9:49 pm in reply to: The server responded with a malformed response. Please see the JS console for mo #1149853Brook
ParticipantWould you mind trying to delete the saved import and recreating it? Now when you run it, what happens?
I am wondering if the errors from back when your server was having issues permanently affected the saved import. It is strange it is not showing more detail here on what went wrong.
- Brook
August 9, 2016 at 6:10 pm in reply to: Extremely slow events page and single event page load times. #1149800Brook
ParticipantThis reply is private.
August 9, 2016 at 10:38 am in reply to: Community Event Edit form does not maintain category info #1149588Brook
ParticipantGood to hear! This ticket is now one step closer to being in 4.2.5. It looks pretty likely it will get fixed in the next release. 🙂
– Brook
Brook
ParticipantAlright! Happy that worked. If you don’t mind, would you let me know what QR app you’re using now, and which one you used before? It’s just always good to know which ones give people trouble, then we can update our tutorials.
Thanks for getting back and letting me know it’s resolved. Cheers!
– Brook
Brook
ParticipantYou are welcome Math! I wish I could be of more help there. I looked into making this change a number of ways and it just was not possible without the plugin update issue. But I did log two feature requests because of this, both are different routes for making this possible. And we already have a third feature request to add this to our Default Content feature in Pro. Eventually there will be a bunch of different ways to set this.
Thank you for marking this resolved. Please let us know if you ever need anything else. Cheers!
– Brook
August 9, 2016 at 7:28 am in reply to: Recurring events/main loop/functions.php/and settings :) #1149395Brook
ParticipantHowdy Jennifer,
Cliff asked the rest of the team if any of us had any ideas or some directions for you. It’s awesome how far you’ve made it!
I just wanted to ask a clarifying question, when you say recurring events “blocks the loop completely” do you just mean that there are too many recurrences in the main loop causing countless pages to be useless, or that the entire loop is empty/comes back with nothing? If it is just that there are too many recurrences, you could try adding ‘post_parent’ => 0, to your main loop query. This will only include events which have no parent, recurrences events are all children of the initial event.
If instead the loop is empty or returns no results, it’s probably one of our query hooks in Pro that also needs to go away. You might remove the ‘setup_hide_recurrence_in_query’ like this but only do it when you run your main loop query there Maybe just before you run the query:
remove_action( 'tribe_events_pre_get_posts', array( Tribe__Events__Pro__Main::instance(), 'setup_hide_recurrence_in_query' ) );
I was also wondering, did you try the “show event in main blog loop” setting and find it to be insufficient in some way, hence all this modification? If so we’d love to hear your feedback on what more it could do.
Cheers!
– Brook
Brook
ParticipantThat makes more sense! Thank you for clarifying.
Since you are on a WordPress network the settings location will look a bit different and not be in the same spot. You will need to head to your network admin page, which can be found in My Sites > Network Admin > Settings. From there you will see a “Registration Settings” heading where you can set “User Accounts may be registered”.
(A) I think a watermark will limit me, i’ll rather have it as default image for event tickets. I also want it to appear in the tickets email.
That’s a good idea, I would prefer to set the default image if I were you as well.
However it is currently not possible to set a default ticket image without directly modifying the plugin. The file you would need to modify (/event-tickets/src/admin-views/meta-box.php) can not be overriden by the usual means, and so you can’t set a default like you should be able to.
This is a feature I am very interested in seeing us add. You should be able to set the default content for this in my opinion.
I really wish I had better news on this front. If you wish to modify the plugin directly, and thus risk losing your modification each time the wordpress updates/upgrades the plugin, then you could modify that file.One line 13 you will see it set $header_id to be the ID for the ticket header image attachment. Just below this you check to see if $header_id is empty, and if so set it to be a different attachment ID. Then it would be the default image.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
August 8, 2016 at 11:43 pm in reply to: tribe_get_events and future recurring events when first has passed #1149311Brook
ParticipantExcellent! I am happy you got that sorted. That is a very good idea what you did.
I am sorry my last response got a little mangled by our HTML editor, causing it to show erroneous characters in my code. I just fixed it for posterity. But your solution will work good for showing all events from today forward.
Thank you for getting back! Cheers!
– Brook
August 8, 2016 at 11:25 pm in reply to: Some events have the wrong time listed / Google maps not auto showing #1149304Brook
ParticipantThank you so much for your response, I’ve been doing some research on these issues. I downloaded a plugin for extra php functions and added the code snippet you sent. The maps still don’t show up but I’m assuming I’ll have to delete all events and then reimport them for the maps to show?
Good question. You actually should not have to delete anything for that change to show up. If your site has caching enabled, such as the plugin W3 Total Cache, you might have to disable that or clear the cache. But the change should show up instantly.
To clarify, this will not check the box on the edit event screen. Rather that snippet will cause our plugin to ignore the setting completely, and always show the map regardless of whether it is checked or not. If it is not doing this for you and you have cleared all your caches, it might be your functions plugin is not working right. You might try inserting that line of code directly into the theme file for now, just to test and see if that works.
As far as the timezone goes, attached is a screenshot of the actual google calendar with correct times and the same event on the website design with the events calendar. It looks like all events are now about 3 hours off. I’m still a little lost as far as the recurring imports work in general so I was hoping to get some guidance. Am I supposed to manually import her iCal link once a day or week?
Thank you for the screenshots! Would you be willing to share a copy of the iCal file or the link to it?
If I click “recurring,” does that mean the plugin is automatically pulling in all new events put into the google calendar?
Exactly. A recurring import will continuously pull in new additions from the iCal URL.
Thanks so much for your help! Hoping to get this resolved soon as my client’s customers are super confused about the times right now haha.
You are very welcome!
- Brook
August 8, 2016 at 11:07 pm in reply to: Extremely slow events page and single event page load times. #1149301Brook
ParticipantWell then let’s dive in. Could you run the following SQL query for me, and perhaps share the output in a private reply here?
https://gist.github.com/elimn/a998d7b67f6166dab5e17ec071eb35ee
That will show the number of recurrences each event ID has, including any strange duplicates that might have been created by that bug. It is likely that one or two in particular will have an enormous number of recurrences.
The output from this is the main thing I’m interested in, so if you don’t mind sharing it that would be awesome. But there is a little bit more you can try right now that might speed things up. Whichever event has the most recurrences, could you try updating it in WP Admin? Grab the event ID from the SQL query, then go to:
http://example.com/wp-admin/post.php?post=EVENTID&action=edit
Once you’ve pulled up the event on that page, try adding an extra space to the end of the event description, then hit update. This will cause the entire event series to be regenerated. After a few seconds the page should reload. Does it now say “Recurring event data is still being generated for this event. Don’t worry, you can safely navigate away – the process will resume in a bit in the background.” up top? If you wait a few minutes and rerun the above SQL query, are there fewer recurrences for that event ID?
Cheers!
– Brook
August 8, 2016 at 12:19 pm in reply to: The server responded with a malformed response. Please see the JS console for mo #1149139Brook
ParticipantExcellent! I am happy to hear it imported this time. Are all of your events apparently present?
The error you are seeing is likely just telling you about the problems you had before when the server had a fatal. If you are still seeing those messages and yet the events seem to be present. When you click to view do the error messages go away? If you are worried that it did not get imported correctly, you could try doing a one-time import right now and and seeing if the error message comes back. If not you should be all in the clear.
Cheers!
– Brook
August 7, 2016 at 9:30 pm in reply to: Need to have the ticket before the completion of the order #1148867Brook
ParticipantYou are welcome! Thanks for getting back. Best of luck with the rest of your site.
– Brook
Brook
ParticipantOh awesome! We’re nearly there.
I would checkout this tutorial for transferring your key from one site to another:
https://theeventscalendar.com/knowledgebase/moving-your-license-keys/
I know you mentioned at the outset that you read about deactivating keys (which the above article highlights). Have you successfully deactivated the one key? If so is the license active on the new site? You should just be able to click Update once it’s active.
Cheers!
– Brook
-
AuthorPosts
