WordPress.org

Ready to get started?Download WordPress

Forums

FT Calendar
[resolved] Recurring events broken. (27 posts)

  1. enej
    Member
    Posted 3 years ago #

    Hi
    I can't seem to get the calendar to show up any recurring events that are happening on Monday and Thursday. The calendar only shows events that are displaying on Monday but not on Thursday. Like I though they would.

    Thanks and great work on the calendar plugin.

  2. Glenn Ansley
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,
    Thanks for your feedback! Could you let me know what version of WordPress, what version of FT-Calendar you're using? Also, could you give me the exact settings you used for every visible field for your event?

    Sorry for the trouble.

    Glenn

  3. enej
    Member
    Posted 3 years ago #

    Sure

    FT-Calendar Version 1.0.2 and WP 3.1 (Multi user setup)
    here is what I have on the new post page
    https://skitch.com/enej/rsdtf/add-new-post-calendar-site-wordpress

    here is what the widget looks like
    https://skitch.com/enej/rsdtj/calendar-site-just-another-wordpress-dev-sites-site

    It has nothing in it even though I think it should have at least one event that repeats on both Monday and Thursday.

    :S

  4. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    Hi enejb,

    We have a fix for you, you can download it here: http://downloads.wordpress.org/plugin/ft-calendar.1.0.3.zip

    The actual update will be published soon, along with any other bug fixes we find out about.

    Let us know if you still have any trouble.

    Thank you.
    Lew

  5. enej
    Member
    Posted 3 years ago #

    Great it works. Thanks for the quick fix.
    You guys rock.

  6. babacom
    Member
    Posted 3 years ago #

    Great plugin. I've selected different colors for several calendars I'm using, but instead I'm getting a white background for all the colors I've selected - except for the default. Looking in the code it looks like the div is not picking up the style...any ideas?

    <div class="ftcalendar-event" style=""><div style="">

  7. Glenn Ansley
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,
    Are you reading the 'Calendar Label' color as the 'calendar color'? It sounds like you're changing the color of the labels for the different calendars. You can see an example at http://calendar-plugin.com The different color calendar labels at the bottom correspond with their respective events in the calendar.

  8. babacom
    Member
    Posted 3 years ago #

    Thanks for the quick response! Here is a link to the test page I'm working on: http://community.poppyswap.com/new-calender-test/. Yes I did change the Calendar Label color for the different calenders, but the changes are not being displayed...

  9. Glenn Ansley
    Member
    Plugin Author

    Posted 3 years ago #

    Interesting. I see that the CSS is messed up. I'll have to check and see if its happening when you set the calendar or when the buttons are printed. What browser are you using?

    Could you try doing two things for me?

    1) In the same browser you've been using, create a new calendar and give it a separate color than go look to see if it worked. Note if it did or didn't set the color correctly

    2) Go edit that calendar label color and go back to see if anything changed.

  10. babacom
    Member
    Posted 3 years ago #

    1. It set the color correctly.
    2. When I changed and updated the color - it was also correct.

    Thinking that I should just start over and maybe that will solve the problem...

  11. Glenn Ansley
    Member
    Plugin Author

    Posted 3 years ago #

    Ok. Let us know if you have any other problems. When I viewed your source code I noticed that it was creating bad CSS. It was using 2 hash marks rather than 1:
    background-color:##333333;

    I couldn't reproduce the error though. If it happens again, let me know what browser / OS you are using and I'll try to reproduce.

  12. babacom
    Member
    Posted 3 years ago #

    Thanks Glenn! I'll let you know if it happens again. Appreciate it.

  13. thaunak
    Member
    Posted 3 years ago #

    My events are not showing in my calendar. It's such a simple process that I can't figure what is missing. This is my test calendar. I've added two posts and added calendar events. One this month and one in April. Any suggestions?

  14. thaunak
    Member
    Posted 3 years ago #

    Maybe it's because I haven't disable MyCalendar yet?? I can't figure out how to import my events into FT-Calendar, so I didn't want to deactivate yet.

  15. thaunak
    Member
    Posted 3 years ago #

    Would help if I linked my page http://twistedspiders.com/calendar-2-2/ Sorry.

  16. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    thaunak,

    What version of WordPress are you using?

    Try this: Go to FT Calendar -> Calendars, edit the calendar(s) that you have and select a color label. Then hit save. Does this fix it for you?

    It looks like your data is actually on the calendar, the styling is just a little messed up. If you go to the link you sent and hit "CTRL-A" on your keyboard it will highlight the entire page. You should see that the event details are there.

    By the way, we will be working on a MyCalendar importer soon... not sure when, but it's on the list of to-dos.

    Thanks.

  17. thaunak
    Member
    Posted 3 years ago #

    Thank you, Layotte! It's good to see my data is there. I didn't even think of that.

    I'm using the latest version of WP. I've changed the color label and saved a couple times, trying different color options. No change. I even tried deactivating MyCalendar, that didn't work either.

    I also just updated FT Calendar.

    I still love this calendar....so much better than what I was using. :) But I just want to see my data.

  18. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    thaunak,

    Can you contact me - info (a) calendar-plugin.com - with your WordPress administrator credentials? I'd like to see what's happening here (and fix this).

    Thanks.

  19. rdallal
    Member
    Posted 3 years ago #

    Hey layotte,

    I also have a problem with recurring events weekly - i've tested recurring daily and it works fine but not weekly.... I have the latest versions of both WP and FT cal

    (if it is relevant at all: I was using The Events Calendar but i deactivate it)

  20. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    Hi rdallal,

    I'll be looking into this. Thanks for the report.

    Lew

  21. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    Hi rdallal,

    In /classes/class-shortcode.php, change lines 1091-1109 to 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;

    That should fix it... I'll add this to the next update.

    Lew

  22. paulwms
    Member
    Posted 3 years ago #

    Some folks may have a problem in IE because the write-edit-post.js code for function set_repeating_displays() uses "repeats_every" as the name of a local variable and tries to assign $('select#repeats_every_select').val() to it. But "repeats_every" is already the id of a <tr> element, which means IE created a window-level variable with that name for you.

    The effect is that repeating weekly events cannot be created properly in the post editing page. I changed the "repeats_every" variable name to "repeats_every_var" and it all works great now.

  23. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    paulwms, What version of IE are you having this trouble?

    Thanks.

  24. paulwms
    Member
    Posted 3 years ago #

    Hi Layotte - I'm still using IE8. But IE has been using element id's to name window properties for some time now. Have you not seen this problem with your IE version? It doesn't affect Firefox users because Mozilla does not do that.

    -- Paul

  25. paulwms
    Member
    Posted 3 years ago #

    After thinking this through with the clarity that morning caffeine often provides, it occurs to me that the proper fix for this issue is simply to use 'var' to declare the repeats_every variable as a local variable in the set_repeating_displays() function. (I'm told its a good habit anyway.) Thereby, removing the ambiguity with the IE property named for the <tr id="repeats_every"> element.

    -- Paul

  26. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks Paul, I've fixed it for the next release.

  27. rdallal
    Member
    Posted 3 years ago #

    thanks Layotte - it worked!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic