Nick Ritar

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Edit and manage attendee lists #1074052
    Nick Ritar
    Participant

    I would also like to view, manage and report on (export) previous Course attendees.

    in reply to: The Iframe not working in iphone #1054598
    Nick Ritar
    Participant

    Hello
    The problem is not that iframe is not showing, the problem is if you touch in any part of the iframe, it does not do nothing.
    I cleared cache and I am using safari.
    Thanks

    in reply to: Month and Venue in the Title of individual event #350377
    Nick Ritar
    Participant

    I still can’t get it to work… even with the twenty thirteen theme…. nothing else activated and a clean cache.

    I’ve had a few people working on this project… looks like we might have to reinstall the plugins…as i think someone may have broken something in your code.

    Would you mind leaving this open while i test .

    Cheers
    Nick

    in reply to: Month and Venue in the Title of individual event #262928
    Nick Ritar
    Participant

    Niether tribe_is_event( $post ) or is_single( ‘tribe_events’ ) resolves to true, when I am viewing a single event on a page like http://staging01.laocoffee.com.au/course/gourmet-mushroom-cultivation-sept-2014-sydney/

    I can get ( is_single() && !comments_open() ) to resolve true for this page, but obviously this is a hack.

    Even when I do get ( is_single() && !comments_open() ) to resolve true, $title.tribe_get_start_date( $post->ID, false, ‘F Y ‘ ) resolves to todays Month and Year, not the events date a year.

    Thanks for your help so far, but can you think of any reason why the tribe variables are not returning anything useful.

    Cheers
    Nick

    in reply to: Month and Venue in the Title of individual event #256380
    Nick Ritar
    Participant

    Thanks for the tip about is_single(). I’ll check that out.

    At the moment that is not my problem though.

    I can’t get tribe_get_start_date( $post->ID, false, ‘F Y ‘ ) to return anything useful. It just gives me todayts month, not the month of the event.

    Can you please take a look at my code below and see what i’m doing wrong.

    Cheers
    Nick

    http://snipt.org/Wijih3

    in reply to: Month and Venue in the Title of individual event #254515
    Nick Ritar
    Participant

    whooops scratch that… tribe_get_start_date( $post->ID, false, ‘F Y ‘ ) returns today’s date… nothing to do with the event.

    I’ve tried your snippet in functions.php with the 2013 theme…… and it behaved the same. That is to say that it worked fro a Photo View page, but not an individual event page.

    So it’s not anything in our theme.

    in reply to: Month and Venue in the Title of individual event #254005
    Nick Ritar
    Participant

    I ended up giving up on tribe_is_event() and ended up using !comments_open and is_single to work out if it is an single event.

    All this is being called through functions.php (just to be clear).

    I’m having trouble getting many of the tribe functions to give me the expected result, for example tribe_get_venue() and tribe_get_venue_link() do not return anything via functions.php, but do within tribe-events/single-event.php

    tribe_get_start_date does work however

    if( is_single() && !comments_open() ) { // Single Events
    $title = $title.tribe_get_start_date( $post->ID, false, ‘F Y ‘ ).’ | ‘;
    }

    in reply to: Month and Venue in the Title of individual event #253890
    Nick Ritar
    Participant

    No matter what page i am on tribe_is_event() does not return 1

    in reply to: Month and Venue in the Title of individual event #253829
    Nick Ritar
    Participant

    Hi Casey,
    Getting close,

    It’s working for the tribe_is_photo pages really well, but not for tribe_is_event…… if i just use is_single it works, but of course on blog pages as well

    // Tribe events: Manually set title for each event listing type
    function filter_events_title ($title) {
    if ( tribe_is_event() && is_single() ) { // single event
    $title = ‘Nicks attempt to get this working | ‘;
    }
    elseif ( tribe_is_photo() && !is_tax() ) { // Photo View Page
    $title = ‘Upcoming Courses | ‘;
    }
    elseif ( tribe_is_photo() && is_tax() ) { // Photo View Category Page
    $title = tribe_meta_event_category_name() .’ Courses | ‘;
    }
    return $title;

    }

    can you spot whats wrong?

    Nick Ritar
    Participant

    Awesome thanks Casey…. had to play with it a bit to get it to remove multiple, but the following worked great

    add_filter( ‘tribe_events_filter_values’, ‘tribe_filter_event_categories’, 10, 2 );
    function tribe_filter_event_categories( $values, $slug ) {
    if ( $slug == ‘eventcategory’ ) {
    foreach ( $values as $i => $category ) {
    if ( $category[‘name’] == ‘Cooking’ or $category[‘name’] == ‘Growing’ ) {
    unset ( $values[$i] );
    }
    }
    }
    return $values;
    }

    Nick Ritar
    Participant

    Hi Casey,

    The page is a photo listing of all events with the filter bar displayed across the top.

    http://staging01.laocoffee.com.au/courses/

    Apparently since the 3.6 release of Filter Bar….

    “Added a WordPress filter so that available values in the filters could be modified (‘tribe_events_filter_values’)”

    https://tri.be/support/forums/topic/release-versions-3-6-of-the-events-calendar-events-calendar-pro-all-add-ons/

    But yet to find an example of it being done.

    Cheers
    Nick

    in reply to: Month and Venue in the Title of individual event #253528
    Nick Ritar
    Participant

    Hi Casey,

    That’s great. Thanks.

    Can you please give me a pointer on where I can find out how to use variables (such as EventStartDate or Tags) in the above snippet. Or perhaps a short example.

    Thanks for your help 🙂

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