Jonah

Forum Replies Created

Viewing 15 posts - 3,631 through 3,645 (of 4,001 total)
  • Author
    Posts
  • Jonah
    Participant

    Hi Ken,

    I’m not sure how to check against select values with the function. I’m going to get another dev to chime in here…

    Jonah
    Participant

    Hey Ken, yeah you should be able to use what you’re using with a slight modification, try this:


    if (tribe_get_custom_field('Duration') != ''):

    echo tribe_get_custom_field('Duration');

    endif;

    in reply to: remove end-time event? #14828
    Jonah
    Participant

    Hi Suzanne, you will need to modify single.php but it’s a pretty easy change. First make sure you are working with a duplicate copy in an ‘events’ folder in your theme. Then just look at line 21 where: echo tribe_get_start_date( null, false, ‘Y-m-d-h:i:s’ ); is called. That third argument ‘Y-m-d-h:i:s’ is where the date/time format is set. If you don’t want the time just remove the -h:i:s so is reads like echo tribe_get_start_date( null, false, ‘Y-m-d’ ); instead. Do the same thing for the end date if you want and you should be set.

    Let me know if you need any other help with this.

    in reply to: List view does not work when calendar widget is used. #14827
    Jonah
    Participant

    Hi Kris, very strange. What do you have set as your ‘Events Template’ in the events calendar settings?

    in reply to: Plugin issue with my theme #14826
    Jonah
    Participant

    Hey Sean,

    On the .next class conflict, you’re either going to have to modify the slider to use a different class for the prev/next links or modify the events calendar. To modify the events calendar you just need to modify two files:

    /wp-content/plugins/the-events-calendar/resources/events.css
    /wp-content/plugins/the-events-calendar/views/single.php

    Make duplicate copies of both these files and place them in an ‘events’ folder in your theme.

    In events.css on line 426 change ‘.previous’ to ‘.previous-event’ and on line 431 change ‘.next’ to ‘.next-event’

    Then in single.php on line 107 change the ‘previous’ class to ‘previous-event’ and on line 109 change the ‘next’ class to ‘next-event’.

    That should remove that conflict.

    Do you have an example of a page where the lightbox script is not working?

    For the blank screen issue it might be a server memory issue. Try upping the server memory to 128M.

    I hope that helps,
    Jonah

    in reply to: Date format display on back-end #14824
    Jonah
    Participant

    Hi Ken,

    Unfortunately the only way to do this is to hack the core part of the plugin and there’s no way to preserve your changes upon updating so it’s not a very good solution. And, the hack is fairly complex as it requires changing how the date is handled in multiple places so I won’t be able to help you with this.

    You may want to add this as a feature request though: https://theeventscalendar.com/support/forums/topic/events-calendar-pro-feature-requests/

    Jonah
    Participant

    Hey Rich, you can modify the date format in the tribe_get_start_date function by passing your date format as the third argument like so:


    echo tribe_get_start_date( $post->ID, isset($start) ? $start : null, 'M' );

    There are some more examples in our documentation: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/#functiontribe_get_start_date

    I hope that helps but let me know if you have any other questions on this.

    Thanks,
    Jonah

    Jonah
    Participant

    Glad that worked Ken, I’ll make sure to update the documentation so it’s there.

    Jonah
    Participant

    You’re welcome Rowan, glad to be able to help!

    Jonah
    Participant

    Hey Ken, we’ve got 3 functions available for event custom fields:

    – tribe_custom_field(‘Label Name’) – Echo Event Custom Field by Label
    – tribe_get_custom_field(‘Label Name’) – Get Event Custom Field by Label
    – tribe_get_custom_fields() – loops through all custom fields and builds an array of them
    – tribe_the_custom_fields() – loops through all custom fields and builds a definition list

    You’ll probably want to use tribe_custom_field(‘Label Name’).

    I hope that helps,
    Jonah

    Jonah
    Participant

    @rowan – with future updates there may be changes to the core templates or stylesheets so you will always want to take a look at the release notes to see what has changed and compare as needed for any files you’ve overridden. I wouldn’t anticipate there being huge changes like there were going from 1.6.5 to 2.0 though for some time.

    Jonah
    Participant

    No problem. Yeah, same thing with the events.css file, if you had overridden any of the templates in the previous version (i.e. list.php, gridview.php, etc..) in the ‘events’ folder in your theme, then you need to get the new copies of these template files and either compare/merge or just copy in the new ones. The template files are located in /wp-content/plugins/the-events-calendar/views

    Try that.

    – Jonah

    Jonah
    Participant

    Hey Rowan, it looks like you’re using the older plugin stylesheet. In the new version, id’s and class names changed and if you had a stylesheet override setup with the old version, you’ll want to get a fresh copy of the stylesheet from the new version in /wp-content/plugins/the-events-calendar/resources/events.css – you can either do a comparison between the two or just do a straight replace of the events.css file in your themes ‘events’ folder.

    in reply to: Can search results display the event date? #14732
    Jonah
    Participant

    Hi Tara,

    What you’ll need to do is modify your themes search results template. Typically this is the search.php file. You’ll need to conditionally check to see if the post in the results is an event which you can do with our template tag tribe_is_event() – and then display the event date with the tribe_get_start_date function – so for example:


    if(tribe_is_event()) {
    echo tribe_get_start_date( $post->ID, false, 'D. M j, Y' );
    }

    That should get you pointed in the right direction.

    in reply to: title of calendar is first event entry? #14731
    Jonah
    Participant

    Hey Josh, so if you’re using this full-width template you’ll need to find out where the file for that is in your theme and find the spot where the title is output and utilize the code I posted above to customize it in that template.

Viewing 15 posts - 3,631 through 3,645 (of 4,001 total)