Niall

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: send a confrimation email to the event organizer #1134214
    Niall
    Participant

    figured it out:

    // cc someone when an event email is filled out

    function tribe_add_admin_email_to_rsvp_email_recipient( $to ) {
     
        if ( ! is_string( $to ) ) {
            return $to;
        }
     
        $combined_to = array(
            $to,
            tribe_get_organizer_email()
        );
     
        return $combined_to;
    }
     
    add_filter( 'tribe_rsvp_email_recipient', 'tribe_add_admin_email_to_rsvp_email_recipient' );
    in reply to: move my site from local to hosted and got an error: #1091411
    Niall
    Participant

    it was a wp_config.php debug thing, nevermind

    in reply to: pagination for current day list #1091064
    Niall
    Participant

    Josh, If this works I’ll name my first child after you. Thanks for the lead

    in reply to: This week widget day header #1091060
    Niall
    Participant

    okie dokie, thanks anyway

    in reply to: This week widget day header #1090916
    Niall
    Participant

    can I place the method in my theme’s functions.php file and have it override the one in the plugin core?

    in reply to: pagination for current day list #1090276
    Niall
    Participant

    update,
    Ive created a much sexier loop, so this is the function I’d like to add the pagination to:

    function do_easy_event_list() {
    	// Safety first! Bail in the event TEC is inactive/not loaded yet
    	if ( ! class_exists( 'Tribe__Events__Main' ) )
    		return;
    
    	// Has the user paged forward, ie are they on /page-slug/page/2/?
    	$paged = get_query_var( 'paged' )
    	? get_query_var( 'paged' )
    	: 1; 
    
    	// Build our query, adopt the default number of events to show per page
    	$upcoming = new WP_Query( array(
    		'post_type' => Tribe__Events__Main::POSTTYPE,
    		// 'paged'     => $paged,
    
    		'eventDate'    => $current_date,
    		'eventDisplay' => 'day',
    		'tax_query' => array(
    			array(
    				'taxonomy' => 'tribe_events_cat',
    				'field' => 'slug',
    				'terms' => array('adults'),
    				'operator' => 'NOT IN'
    				)
    			)
    		) );
    	
    	// If we got some results, let's list 'em
    	while ( $upcoming->have_posts() ) {
    		$upcoming->the_post();
    		$title = get_the_title();
    		$date  = tribe_get_start_date();
    		
    		// Of course, you could and probably would expand on this
    		// and add more info and better formatting
    		echo "<p> $title <i>$date</i> </p>";
    	}
    	
    	// Is Pagenavi activated? Let's use it for pagination if so
    	if ( function_exists( 'wp_pagenavi' ) )
    		wp_pagenavi( array( 'query' => $upcoming ) );
    
    	// Clean up
    	wp_reset_query();
    }
    
    // Create a new shortcode to list upcoming events, optionally
    // with pagination
    add_shortcode( 'easy-event-list', 'do_easy_event_list' );

    thanks!

    in reply to: my support threads are not showing in my account area #1090273
    Niall
    Participant

    resolved

    in reply to: This week widget day header #1090236
    Niall
    Participant

    Hi Nico,
    I deleted the first line

    <span class=”day”><?php echo esc_html( $day[‘formatted_day’] ); ?></span>

    and then went into This_Week.php (its in the plugin folder inside the pro version, Pro/Src/Tribe

    change this:
    $display_date_format = apply_filters( ‘tribe_events_this_week_date_format’, ‘jS’ );

    to this:
    $display_date_format = apply_filters( ‘tribe_events_this_week_date_format’, ‘l, F jS, Y’ );

    that puts it into the correct format (at least that the format I want, you can change it, just google “date format wordpress”)

    the only prob is that I’ve changed my core files so I’ll have to track this when I do updates (like the one I did last night)

    I wish I knew how to put this change into my theme, maybe there is a way to put the function into my theme’s functions file…

    If anyone knows how to do this please chime in

    in reply to: This week widget day header #1090052
    Niall
    Participant

    sadly I can’t do that, the $display_date_format is created in the

    public static function this_week_query( $this_week_query_vars )

    I then reference it in the loop-grid.php.

    <?php echo esc_html( tribe_events_get_this_week_title( $this_week_template_vars[‘start_date’] ) ); ?>

    thanks for your feedback though!!!

    • This reply was modified 10 years, 1 month ago by Niall.
    in reply to: This week widget day header #1089944
    Niall
    Participant

    I had to go into the plugin core to fix this

    I changed line 269 of This_week.php to:
    $display_date_format = apply_filters( ‘tribe_events_this_week_date_format’, ‘l, F jS, Y’ );

    and then called it from the template in my theme.

    that fixed the problem, but now I can’t update my plugin

    any suggestions?

    in reply to: my support threads are not showing in my account area #1089861
    Niall
    Participant
    in reply to: list view on steroids #1089619
    Niall
    Participant

    please disregard this question, I’ve used the this-week widget for this view and have pursuaded the client to show the calendar weekly not monthly.

    in reply to: list view on steroids #1089301
    Niall
    Participant

    Hello, I meant to say broken out by day, (not week), Also is there a way to have intra month navigation as per the screenshot?– I know it works in the month view but will it work in list view?

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