Forums

[Plugin: Events Calendar] Can't edit access level (8 posts)

  1. GokuMew2
    Member
    Posted 4 years ago #

    With the new version 6.0.4, I can't seem to edit the access level in the Options. I changed it to "Editor" but after I clicked on Update Options, it reverts back to "Administrator."

    I wanted to try to edit it manually in the MySQL database and this is what I see:

    a:5:{s:16:"dateFormatWidget";s:3:"m/d";s:16:"timeFormatWidget";s:5:"g:i a";s:15:"dateFormatLarge";s:5:"Y/m/d";s:15:"timeFormatLarge";s:5:"g:i a";s:11:"accessLevel";N;}

    I'm guessing "N" is what changes the access level? I have no idea what it should be in order for it to be set to Editors.

    http://wordpress.org/extend/plugins/events-calendar/

  2. jonadjei
    Member
    Posted 4 years ago #

    Seems this is just a small naming bug in the ec_management.class.php file of the plugin. The quick fix is to search that file for line 306..

    <select name="EC_accessLevel" id="accessLevel">

    and change it to

    <select name="accessLevel" id="accessLevel">

    .. and make sure you have the latest version of the plugin. It seems this feature has only just been fully added. Incidentally you want to end up with
    s:11:"accessLevel";s:7:"level_7";}
    or similar in your database. 'level_7' gives editors access.

    Hope that helps.

  3. GokuMew2
    Member
    Posted 4 years ago #

    That did the trick! Thanks a lot~

  4. DIGITALDR
    Member
    Posted 4 years ago #

    This also fixed it so that when I post events for access level public that it actually shows up.

    Thank you so very much!

  5. snumb130
    Member
    Posted 4 years ago #

    This has been taken care of in the 6.0.5 update. My bad.

  6. ronbme
    Member
    Posted 4 years ago #

    Luke, check out line 352 in the ec_management.class.php file.

    It has "<select name="EC_accessLevel" id="accessLevel">".

    Shouldn't that be changed too?

  7. ronbme
    Member
    Posted 4 years ago #

    Sorry, that should have been line 306 in ec_management.class.php file.

  8. snumb130
    Member
    Posted 4 years ago #

    I believe that is what it should be.

Topic Closed

This topic has been closed to new replies.

About this Topic