WordPress.org

Forums

Recurring Events (10 posts)

  1. sleenmg
    Member
    Posted 4 years ago #

    I have 2 events that will occur during April and May on Sun & Mon. Since they are at different times, I added 2 separate repeating event. The Wednesday one will show but not the Sunday one. This is really important...any ideas? Didn't have this problem until the last upgrade. I'm using WP 3.1 and FT Calendar version 1.03

    I really like this calendar but this site went live today and not all events show up.

    Any ideas?

  2. Lew Ayotte
    Member
    Posted 4 years ago #

    Hi sleenmg,

    Can you tell me what the exact setting details were?

    Thanks.
    Lew

  3. sleenmg
    Member
    Posted 4 years ago #

    Thanks....I have it enabled for post and pages. I'm using the Calendar Event widget and in the page I have [ftcalendar_thumb]

    I have selecte color label.

    For the calendar I have created two events. Each one is a repeating event. One is on Wed evenings for 2 months and the other is on Sunday morning for two months. I've done this before with no problem. Just since this last upgrade I only get one event on the calendar.

    I think that's it for the settings.

  4. Lew Ayotte
    Member
    Posted 4 years ago #

    Ok, thanks for letting me know, I'll be investigating this...

  5. sleenmg
    Member
    Posted 4 years ago #

    Thanks...I appreciate it.

  6. Lew Ayotte
    Member
    Posted 4 years ago #

    sleenmg,

    Can you try this?

    Edit classes/class-shortcode.php and replace lines 1091-1109 with this:

    case 'weekly' :
    	$day = date_i18n( 'w', $str_rsdate ); 	//Get numeric day
    	$str_rsweek = $str_rsdate - $day;		//Set start week
    	$dow = array();	//track days of week and numeric days that event falls on
    	$days = array();
    
    	$days_of_week = array( 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' );
    	for ( $x = 0; $x < 7; $x++) {
    		if ( 1 == substr( $cal_data->r_on, $x, 1 ) ) {
    			$dow[] = $days_of_week[$x];
    			$days[] = $x;
    		}
    	}
    
    	if ( in_array( date_i18n( 'D', $strdate ), $dow )
    			&& in_array( ( $i - $str_rsweek - 1 ) % ( $cal_data->r_every * 7 ), $days ) ) {
    		$cal_entries[date_i18n( 'Y-m-d', $strdate )][$rstime][] = $cal_data->id;
    	}
    	break;

    If you can't figure it out, I can send you the file.

    Thanks.
    Lew

  7. sleenmg
    Member
    Posted 4 years ago #

    I edited the file but the same thing happens. I tried deleting and adding it back in at the page level but it still on shows only the Sun event.

    Thanks,

    Sleenie

  8. sleenmg
    Member
    Posted 4 years ago #

    Correction:..not sure if it make a difference. It's the Wed. event that shows, not the Sun.

  9. Lew Ayotte
    Member
    Posted 4 years ago #

    heh, I gave you the wrong code...

    Use this:

    case 'weekly' :
    	$day = date_i18n( 'w', $str_rsdate * 86400 ); 	//Get numeric day
    	$str_rsweek = $str_rsdate - $day;		//Set start week
    	$dow = array();	//track days of week and numeric days that event falls on
    	$days = array();
    
    	$days_of_week = array( 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' );
    	for ( $x = 0; $x < 7; $x++) {
    		if ( 1 == substr( $cal_data->r_on, $x, 1 ) ) {
    			$dow[] = $days_of_week[$x];
    			$days[] = $x;
    		}
    	}
    
    	if ( in_array( date_i18n( 'D', $strdate ), $dow )
    			&& in_array( ( $i - $str_rsweek ) % ( $cal_data->r_every * 7 ), $days ) ) {
    		$cal_entries[date_i18n( 'Y-m-d', $strdate )][$rstime][] = $cal_data->id;
    	}
    	break;

    Sorry about that.

  10. sleenmg
    Member
    Posted 4 years ago #

    That did it! Thanks so much!! I really appreciate the quick response.

    If you're looking for new features, it would be really great to hover over the date and see the event pop-up versus having to click.

    This is a great plugin and I will be changing out a few calendars on client accounts.

    Again, thanks

    Sleenie

Topic Closed

This topic has been closed to new replies.

About this Topic