Abby

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Controlling the display of Past Events #1532332
    Abby
    Participant

    Thank you. I am aware of the ability to view past events by using the ‘previous’ buttons but what I need is a ‘past events’ page that can show the TEC past events and to which I can add other content too.

    I note from going through your support pages that there are a number of requests for a way to specifically show Past events, with varying responses from the support team. Is there any hope of a past events shortcode in the future?

    Perhaps you could give me guide on how to alter the generic past events page? Which template to change or how to add extra content to this page only?

    Cheers,
    Abby

    in reply to: Isotope version #1159840
    Abby
    Participant

    This reply is private.

    in reply to: Isotope version #1156979
    Abby
    Participant

    Hi Geoff,
    I’m away from broadband for a week so can’t do this until next Monday unfortunately. I will do so then however.

    Abby

    in reply to: Isotope version #1156238
    Abby
    Participant

    This reply is private.

    Abby
    Participant

    Thanks for getting back to me Cliff.
    I’ve checked my media settings and they are set to 300 x 300px. I’ve tried regenerating thumbnails anyway, but that makes no difference. I’ve also tried uploading new images and that doesn’t seem to make any difference.
    I would greatly appreciate any further ideas or insight from your end if that’s possible?

    Abby
    Participant

    Thanks for that Josh. We have been working on it too and have come up with the following (posting it here for the record):

    from theme functions.php

    add_filter(‘tribe_events_event_schedule_details’, ‘custom_events_event_schedule_details’, 1, 4);
    function custom_events_event_schedule_details($html, $postid, $before, $after)
    {
    if(tribe_is_recurring_event($postid))
    {
    $start_dates = tribe_get_recurrence_start_dates( $postid );
    $firstdate=reset( $start_dates );
    $lastdate=end( $start_dates );
    $firstmonth=$firstdate;
    $first=getdate(strtotime($firstdate));
    $lastmonth=$lastdate;
    $last=getdate(strtotime($lastdate));
    if($first[‘mon’]==$last[‘mon’])
    {
    $dthtml=$first[‘mday’].” – “.$last[‘mday’].” “.$first[‘month’];
    }
    else
    {
    $dthtml=$first[‘mday’].” “.$first[‘month’].” – “.$last[‘mday’].” “.$last[‘month’];
    }
    $dthtml=”<div classname=\”tribe-events-period\”><abbr title=\”Season from “.tribe_format_date($firstdate,false).” until “.tribe_format_date($lastdate,false).”\” classname=\”tribe-events-period-dates\”>”.$dthtml.”</abbr></div>\n”;
    $html=$dthtml; // nb this replaces the normal start date
    }
    return $html;

    I’m not marking this as resolved as I believe it needs to stay unresolved pending the recurring description fix? But I think we have sorted the dates, so thank you.

    Abby
    Participant

    Hi Josh,
    Further to my last comment, I notice there is built in support for getting the first date of a series:

    class Tribe__Events__Pro__Recurrence_Meta {…

    private static function get_series_start_date( $post_id ) {
    if ( method_exists( ‘Tribe__Events__Main’, ‘get_series_start_date’ ) ) {
    return Tribe__Events__Main::get_series_start_date( $post_id );
    }
    $start_dates = tribe_get_recurrence_start_dates( $post_id );

    return reset( $start_dates );
    }

    …}

    But there is no equivalent for the last date in the series. Would the following work? And if so how would I best utilise it?

    private static function get_series_last_date( $post_id ) {
    if ( method_exists( ‘Tribe__Events__Main’, ‘get_series_last_date’ ) ) {
    return Tribe__Events__Main::get_series_last_date( $post_id );
    }
    $start_dates = tribe_get_recurrence_start_dates( $post_id );

    return end( $start_dates );
    }

    Abby
    Participant

    Hi Josh,
    I think I’ve figured out where perhaps I haven’t been clear in my request. My events are recurring events, some happening every day for two weeks, some Tuesday-Sunday evenings for 1 – 3 weeks.. So the list and photo views are showing the start and end of the first occurance, which is a single date with a time span. So I guess my question should actually be, how can I show the date of the first occurance to the date of the last occurance? Is that possible? Or is that in fact only possible with the entering of the recurrance description, bringing us full circle to the original issue?

    Apologies for my lack of clarity in the original description of this request!

    in reply to: Show full date range rather than first date and time. #1067415
    Abby
    Participant

    Hi Hunter,
    I feel like perhaps I’ve double dipped with this assistance request. I thought that as my other ticket was initially for a different issue I should start another, but since I posted this I’ve had a response from Josh. See the ticket at https://theeventscalendar.com/support/forums/topic/theatre-events-proving-complex-to-schedule-as-recurring-events/#post-1066375

    Unfortunately the filter provided is not showing the end date?

    Many thanks,
    Abby

    Abby
    Participant

    This reply is private.

    Abby
    Participant

    Hi, I’m not sure if it’s okay to jump back on here or if I should start another support ticket?

    I wondered if you could point me in the right direction to find out more about the “tribe_events_event_schedule_details_formatting” filter? I have read this page https://theeventscalendar.com/function/tribe_events_event_schedule_details/ but as I’m relatively new to this I’m unsure how to create/access the filter?

    Abby
    Participant

    Thanks Josh, that should do it.
    I look forward to hearing when the recurrence description issue bug is fixed.

    Many thanks for your help.

    Abby
    Participant

    Thank you! I knew I was misunderstanding the interface somehow. You have clarified it wonderfully for me and your approach will work for this purpose.

    I have tried entering alternative data into the ‘Recurrence Description’ field but it just disappears when I save? Would this be to do with my theme?

    Lastly, is there perhaps an easy way I can have the date range showing in the photo and list view, and in the single event details rather than the first date and time? (Does this question need to be a separate support request?)

    Many thanks,
    Abby

    in reply to: Filter simply by category #1054349
    Abby
    Participant

    Thanks for your assistance Geoff,
    I will try the custom menu but it may not work with the restrictions of the site in question. I am a bit disappointed that the filters don’t work as I imagined they would, and indeed that filtering by category is not part of TEC itself. However both these things are apparent prior to purchasing so I can’t really complain.
    Many thanks,
    Abby

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