WordPress.org

Ready to get started?Download WordPress

Forums

Ajax Event Calendar
[resolved] color settings being ignored? (37 posts)

  1. mcmito
    Member
    Posted 2 years ago #

    Hi,

    The calendar works fine except one thing. The colors I set up for the different calendar categories are being ignored. #3366cc is being used instead for all categories. Same applies to the event filter links in the front end: Only the "all" link has a background color, the rest don´t.

    I´m using version 0.9.8.6

    thanks
    Mito

  2. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Try this fix, and let me know if it works for you. I will look into why this occurs...

    Thanks,
    Eran

  3. n-way
    Member
    Posted 2 years ago #

    Hi Eran,

    I have updated the plugin and have same problem with colors now:

    1. In the WordPress Dashboard / Calendar / Categories, all of my categories are there and they all have the appropriate colours displayed.

    2. Go the main Events calendar and all of the categories listed at the top are uncoloured.

    3. Look down at events being displayed in the calendar and they are all highlighted in dark blue.

    4. Look at the sidebar widget display and the events listed show no colour.

    I did updated the categories as you suggested but it doesn't help. You can see my calendar here: http://chinesegongfu.ru/calendar/

  4. mcmito
    Member
    Posted 2 years ago #

    Hi Eran,

    Thanks for looking into this. I tried the fix too but it didn´t work either.

  5. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Check the plugin css folder, do you see a cat-colors.css file?
    If not, you may not have write access to the folder, and the css file is not getting created.

    @n-way: Your css page was missing - 404 error.

    This issue appears to be limited to certain users, so it could be server settings. Without more detailed information (such as PHP error logs) it's just a guess.

    Eran

  6. mcmito
    Member
    Posted 2 years ago #

    Hi,
    Ok I got it to work now.
    You´re right. There was indeed no such css file. I re-installed the plugin again and when I activated it I got the following error:

    Warning: fopen(........./wp-content/plugins/ajax-event-calendar/css/cat_colors.css) [function.fopen]: failed to open stream: Permission denied in ........../wp-content/plugins/ajax-event-calendar/ajax-event-calendar.php on line 1159
    cannot open file

    I guess that prevented the css file from being created.

    However, even with all permissions set to 777 and creating cat_colors.css manually it still didn´t work.
    So I re-installed it again (third time) and changed the permissions to CHMOD777 BEFORE activating your plugin. Only then the css file could be created automatically.

    I´m not php nor server-stuff-savy but since it´s the very first plugin to ever do that I´m still not sure that it has something to do with any general faulty permission setting on my server.

    Anyway...thanks for pointing me in the right direction.

  7. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    I'm glad you got it to work!

    Since I have only heard about this issue from a handful of the hundreds that download the plugin, I can only assume it has something to do with how your server permissions are setup. But since I am no expert in server administration, it is merely an assumption.

    Thanks for posting your solution!
    Eran

  8. ChrisSuttonSilver
    Member
    Posted 2 years ago #

    @Eran Miller - I've tried the above solution same as McMito, still struggling to get the calendar to show up.

    I've removed the plugin a couple of times and tried re-installing it, with CHMOD777 on the CSS folder in the plug in too, the file is still not being created on my server.

    I've just tried to place a 'cat_colors.css' file in that folder and tried to make that writeable, but still it's made no difference.

    Any more ideas?

  9. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Chris-
    I just checked your site and it appears you resolved the css permission issue, because the file is being found and loaded, however, it doesn't appear that any of the calendar's javascript files are being loaded.

    Check your PHP error log.

    FYI, getting the calendar to show up is unrelated to the css permission issue.

    Eran

  10. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    A new beta has been released for those interested in testing and confirming that it works see this post for details.

  11. VirtbizGuy
    Member
    Posted 2 years ago #

    Thanks from me to for the great plugin. Your time and hard work is appreciated!

    I am seeing that even after changing the folder permissions to 777, not all the color adjustments made in the back end "take." At http://www.spbclongview.org/calendar/, the Youth Ministry category has been set as green, but is shows up blue. Also, note that the upcoming events widget only sees the color set for the "Sunday Worship Service" category.

    Just wanted to alert you to this, as I know you are working on the new release.

    Thank you, Klaus

  12. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    If one category shows color, that would suggest the stylesheet is working. Out of curiosity, did you try this first?
    http://wordpress.org/support/topic/plugin-ajax-event-calendar-events-appear-with-wrong-date-and-time-time-cannot-be-changed?replies=19#post-2238258

    Eran

  13. VirtbizGuy
    Member
    Posted 2 years ago #

    Hi Eran,

    I did update the categories, just to be sure, and nothing changed. Note also that the only category showing a bg color is the default category (the one that is not to be deleted), which I changed to "Sunday Worship Services"

    Thanks, Klaus

  14. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    The css file is being generated, so it's not a permissions issue - something else is causing javascript errors on the front-end calendar. You are using the old version of the init_show_calendar.js file. You could be using other old files as well. If you're going to try out the beta, it's important to replace all the old plugin files. I suggest downloading a fresh copy of the beta and installing again - just to be 100%.

    Eran

  15. MarshaS
    Member
    Posted 2 years ago #

    Eran,

    I'm having the same issue with the color settings. Your fix, updating the categories and refreshing, didn't fix it. The version is 0.9.8.6 and I just installed it today.

    Also, I'm trying to create a two-day event, but the color bars on the large calendar don't show the days as continuous. Perhaps I didn't set the event up correctly?

    You can see the front end calendar at http://psychicpsychology.org/seminars/calendar with the widget version on the home page.

    Thanks for your help.

    Marsha

  16. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    If that didn't work you can try this or wait until the next version of the plugin is released in 7-10 days.

    If you want to create a two day event, you need only create one event with the desired start date and end date values.

    Eran

  17. writerdave
    Member
    Posted 2 years ago #

    I had the same problem as everyone else.

    Tried mcmito's trick with install/change to mod777, activate... didn't work. The css color file was not created.

    Then I had a thought. All of my old categories with their corresponding colors were still there in the back end... so I just created one new, temporary category, with a color.

    Poof! All of the colors for all of the categories suddenly reappeared.

  18. writerdave
    Member
    Posted 2 years ago #

    Actually, I'm wondering if that is the solution.

    Don't reload the plugin.
    Don't change the permissions on the server folder.
    Just simply create a new category (temporary) and set an arbitrary color for it.

    My guess (and that's all it is) is that doing so causes all of the category colors to be rebuilt and they will then display properly.

  19. MarshaS
    Member
    Posted 2 years ago #

    Eran,
    Thank you. I may wait for the new version.
    Created the two-day event properly. Thanks.

    Tried writerdave's idea of creating the temp category but that didn't work.

    I don't really want to uninstall, reinstall and reload the calendar data etc. So I guess I just wait.

    Thanks again.

  20. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Plugin version 0.9.9.1 is now available for download.
    Let me know if this issue persists after you've upgraded to the new version.

  21. MarshaS
    Member
    Posted 2 years ago #

    Eran,
    Updated the plugin.
    Color settings issue is not resolved.
    And the calendar listings in the home page sidebar disappeared and the plugin disappeared from the Dashboard panel.
    Next?

  22. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    It sounds like you've got a theme/plugin conflict - which will require editing code. I'm sorry to suggest, but you may not be able to use this plugin.

    Eran

  23. MarshaS
    Member
    Posted 2 years ago #

    Ouch.
    I'm using Thesis.
    Should I try uninstalling and reinstalling?
    Haven't tried that yet.

  24. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    You have this error on your site, unrelated to the calendar.

    $m(".ccf-datepicker").datepicker is not a function
    [Break On This Error] $m(".ccf-datepicker").datepicker();

    Check for errors in your browser javascript console. Other plugins or your theme may be causing conflicts that prevent the calendar from functioning. Disable any plugins and isolate the cause of the error by reactivating them one at a time.

  25. MarshaS
    Member
    Posted 2 years ago #

    Error console said it was the Custom Contact Form plugin. I deactivated it. Uninstalled and reinstalled the Calendar. Have to go back and modify to get it to appear in the Dashboard again.

  26. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    As I indicated before, this will require changes to the code.

    The second FAQ answer addresses the dashboard issue:
    http://wordpress.org/extend/plugins/ajax-event-calendar/faq/

    However, once all is said and done, I can't promise you wont encounter further javascript conflicts.

  27. MarshaS
    Member
    Posted 2 years ago #

    S'alright. Got the dashboard issue fixed. It appears.
    Still, no change in color categories.
    That's not that critical for me, but I'd like the color to be one of the site's colors.

  28. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Try this with the categories:

    1. Go to the categories page
    2. Change the name of one of the categories and press update
    3. Change the name back and press update again
    4. Go to the calendar page
    5. Press Shift-F5 (to force reload the page, ignoring the cache)

    Are the colors back?

  29. MarshaS
    Member
    Posted 2 years ago #

    No.
    Did everything you said.
    Nothing happens when I Shift F-5. So I cleared recent history.

    Ya know, I frequently get a message that a script has stopped running that has to do with Chrome. Maybe there's a glitch with Firefox somewhere?

    I love the look of this calendar and want to use it. Much slicker than the standard Calendar.

  30. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Very strange, I'm afraid I have nothing left to suggest. I use Firefox, Chrome and IE on Windows when testing the plugin and I have yet to experience this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic