Jason Lovoy

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Duplicate Recurring Events #963875
    Jason Lovoy
    Participant

    If I delete the recurring event it will delete the real event also. They are both linked to the same recurring event. I have a number of recurring events and do not want to go individually into each one and see if it is being duplicated and then try to clean it up. I was hoping you could provide a simple modification to the script I mentioned above, but apparently that is not possible?

    Could you please contact the Casey from this thread: https://theeventscalendar.com/support/forums/topic/recurring-events-bug-that-creates-duplicates/

    He provided a solution to the problem I am having but I think it needs a little tweaking.

    in reply to: Duplicate Recurring Events #963713
    Jason Lovoy
    Participant

    Yes, these are duplicates from the update. They were not there before the update and now they are. I was updating from 2.0.11 to the latest version.

    Also, I do not think you understand which duplicates I am talking about.
    There are duplicates in the database that have the exact same information all except the post ID. Each recurring event had this happen to it. I then used the above script to remove the duplicates on most but there are a few duplicates left over.

    Below I have posted some code from the calendar. The first event is a duplicate of the second event and the third event is a duplicate of a fourth event that is hidden on the calendar view.

    Here is the code from the calendar:

    <div id="tribe-events-event-3299-26" class="hentry vevent tribe-events-category-meeting post-3299 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745" data-tribejson="{&quot;eventId&quot;:3299,&quot;title&quot;:&quot;Stephen Ministry Meeting&quot;,&quot;permalink&quot;:&quot;http:\/\/www.springcreekumc.org\/event\/stephen-ministry-meeting-2\/2015-04-26\/&quot;,&quot;imageSrc&quot;:&quot;&quot;,&quot;startTime&quot;:&quot;April 26, 2015 @ 12:00 am&quot;,&quot;endTime&quot;:&quot;2:00 pm&quot;,&quot;imageTooltipSrc&quot;:&quot;&quot;,&quot;excerpt&quot;:&quot;The Stephen Ministry team meets in the Youth building on the 2nd and 4th Sunday of each month from 12-2.&quot;,&quot;categoryClasses&quot;:&quot;hentry vevent tribe-events-category-meeting post-3299 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745&quot;}">	
    
    <div id="tribe-events-event-3300-26" class="hentry vevent tribe-events-category-meeting post-3300 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745" data-tribejson="{&quot;eventId&quot;:3300,&quot;title&quot;:&quot;Stephen Ministry Meeting&quot;,&quot;permalink&quot;:&quot;http:\/\/www.springcreekumc.org\/event\/stephen-ministry-meeting-2\/2015-04-26\/&quot;,&quot;imageSrc&quot;:&quot;&quot;,&quot;startTime&quot;:&quot;April 26, 2015 @ 12:00 am&quot;,&quot;endTime&quot;:&quot;2:00 pm&quot;,&quot;imageTooltipSrc&quot;:&quot;&quot;,&quot;excerpt&quot;:&quot;The Stephen Ministry team meets in the Youth building on the 2nd and 4th Sunday of each month from 12-2.&quot;,&quot;categoryClasses&quot;:&quot;hentry vevent tribe-events-category-meeting post-3300 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745&quot;}">
    
    <div id="tribe-events-event-3652-26" class="hentry vevent tribe-events-category-meeting post-3652 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745 tribe-events-last" data-tribejson="{&quot;eventId&quot;:3652,&quot;title&quot;:&quot;Stephen Ministry&quot;,&quot;permalink&quot;:&quot;http:\/\/www.springcreekumc.org\/event\/stephen-ministry\/2015-04-26\/&quot;,&quot;imageSrc&quot;:&quot;&quot;,&quot;startTime&quot;:&quot;April 26, 2015 @ 12:00 pm&quot;,&quot;endTime&quot;:&quot;2:00 pm&quot;,&quot;imageTooltipSrc&quot;:&quot;&quot;,&quot;excerpt&quot;:&quot;The Stephen Ministry team meets weekly in the Youth Building&quot;,&quot;categoryClasses&quot;:&quot;hentry vevent tribe-events-category-meeting post-3652 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745 tribe-events-last&quot;}">
    in reply to: Duplicate Recurring Events #963453
    Jason Lovoy
    Participant

    That is not the duplicate… There are two separate events with the same title. One of them has a time stamp from 12am – 2pm and another has a time stamp of 12pm – 2pm. Both of these have their own duplicates duplicates.

    I am wondering if it is possible to modify the script to clean up the remaining duplicates.

    in reply to: Duplicate Recurring Events #963345
    Jason Lovoy
    Participant

    There are quite a few events that need to be removed… it appears that they link to the same event, but they each have different post ID’s. Here is the events page: http://www.springcreekumc.org/events/

    For this month, there are a few duplicate events for: “Stephen Ministry Meeting” with the timestamp of: “May 24, 2015 @ 12:00 am – 2:00 pm”

    As far as I can tell, this recurring event is the only one that has duplicates now, but I would still like to be able to clean them all up in bulk, since there are so many.

    Thank you for your help.

    in reply to: Make entire calendar private? #22862
    Jason Lovoy
    Participant

    Thanks guys,

    I ended up using the WordPress post_password_required() function and setting it in line with a page that I’d created. Then I forked the get_the_password_form() function in WordPress to work with a user provided page ID to pass the id of the faux page I created to establish a connection to the password requirement. It was a little janky, but it worked. I didn’t want to require login, just a password.

    Thanks though, the template override made it possible, and I wasn’t thinking about that at first. I put it on the gridview template w/o an issue

    in reply to: template tags in custom page templates #17397
    Jason Lovoy
    Participant

    Yes, I did. I also checked the source of the plugin itself. The inherent problem is that TEC likes to hijack a url, rather than adopt one. By that, I mean when you go to settings and set a base url, like “events” and “event” for singular, whenever you take an action with any TEC function (like the upcoming events function, or by month dropdown function) it does this with the base url, even when a template tag has been used in a custom template, such as I was attempting.

    What would be highly preferable is for these functions to detect where they are being used and adopt to the current location, so that if a the calendar grid, for instance, is being used in the url “/around-town/calendar” (a custom page w/ template tags rather than the base url in settings) the upcoming events template tag would return as “/around-town/calendar/upcoming” rather than jumping to the default “/events/upcoming” which makes the use of template tags in page templates pointless to begin with.

    I’ve expressed these concerns w/ Joey Kudish before (to a degree), so I’ll reference him to this thread, but that’s the basis of my issue.

    In the meantime, I finally found (because some of these things aren’t yet documented well) the url for the full calendar grid by category at “/base-url/category/my-category” and used a redirect from my page where I wanted it to be (for site hierarchy purposes) along with some conditionals to make my sidebar logic, etc., work. However, I’d love for there to be a better method.

Viewing 6 posts - 1 through 6 (of 6 total)