Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter wyclef

    (@wyclef)

    i’m wondering if this plugin has user roles built into it that aren’t being overridden by other plugins?

    Thread Starter wyclef

    (@wyclef)

    specifically ‘Cannot load constant-contact-api.’ in editor role. really could use some help getting this to work for editor.

    I have the same identical issue!

    I’ve searched all over, but am unable to find an answer.

    Side note: Looks like we may just terminate Constant Contact and use another service instead. (At least that’s where the discussion is heading at this end).

    @wyclef – I think there must be user roles built in? But, with the short time I’ve been given, I can’t find then.

    I tried the following to change permissions, however, I’m still getting the error when using the Editor account:

    Editing files:

    • functions.php
    • events.php
    • constant-analytics.php
    • widget-form-designer.php
    • form-designer.php

    Search for:

    current_user_can

    Change the option (for “current_user_can”) to be equal to some option (such as edit_others_posts). The syntax would be some example like this:

    current_user_can('manage_options')

    changed to this:

    current_user_can('edit_others_posts')

    It almost seems like there is some other hard coding we’re not yet aware of. I just wish the developer was available to provide a comment so that we could try and effect the needed capability.

    Plugin Author Zack Katz

    (@katzwebdesign)

    For events.php, list_users is the required role.
    For the widget, it’s install_plugins
    Everything else, it’s manage_options

    Am I hearing that you prefer integration with the Members plugin?

    Hi Zack

    Thanks.

    The plugin does not work with the Editor role. (When the editors log into wp-admin, they cannot access the Constant Contact options).

    So… I edited the plugin files (as above) and changed “manage_options” to “edit_others_posts” (which Editors can do). However, when Editors select the option, they are displayed the cannot load Constant Contact API message.

    What is the proper way for me to enable Constant contact options to be accessible to the Editor role and higher, when logged into wp-admin?

    [The Members plugin didn’t work (for this scenario) as this pertained to content, not to the ability to access the Constant Contact options in wp-admin]

    Again… Thank you!!

    Addendum:

    I just checked and the following plugins are in use:

    @zack

    I took another look at your suggested plugin. You’re correct after all. ??

    Yes!

    Can this work with Constant Contact on the back end, to allow an Editor (or other defined role) to configure the Constant Contact options in the wp-admin dashboard?

    Thanks!

    @zack

    Okay, something just is not working.

    I installed Members and made sure that I enabled the following capabilities to the Editors:

    • manage_options
    • list_users
    • install_plugins

    As these are the permissions I found when searching for “current_user_can”, within all Constant Contact plugin files.

    Constant Analytics displayed in the Dashboard for Editors, but Constant Contact (and options) did not.

    I used Admin Menu Editor so that the Constant Contact link would appear in the Dashboard for Editors – Now it does.

    But when I click the link (logged in as an Editor) I get an error message that says: Cannot load constant-contact-api.

    Please let me know what can I do to get this working?
    Thanks!

    Thread Starter wyclef

    (@wyclef)

    do a multi-file search for ‘administrator’. change what you want for editor to ‘moderate_comments’. a bit of a hack but worked for me. i needed a fix pronto.

    @wyclef.

    Thanks, I just finished that, but it does not seem to work at my end. I Still get that “cannot load” (Constant Contact API) error. ??

    Thread Starter wyclef

    (@wyclef)

    which files did you change?

    @wyclef

    There were only three files with the word “administrator”.

    constant-analytics.php -edited
    menu.php – edited
    form-designer.php – edited.

    Changing “administrator” to “editor” did not provide a fix.

    Also, when searching for files with the word “administrator”; returned three files that did NOT specify user capabilities (except for constant-analytics.php), as such, there was no where to replace permissions with “moderate_comments”

    However, I searched for “current_user_can” and was able to modify several files, changing permissions to “moderate_comments” – But it did not work at this end.

    Those files were:

    • functions.php
    • events.php
    • constant-analytics.php
    • widget-form-designer.php
    • form-designer.php

    What are your thoughts?
    Thanks muchly…

    Thread Starter wyclef

    (@wyclef)

    well, i didn’t bother with the form-designer stuff as I am not using that but changing administrator to editor also did not work for me. i changed administrator to moderate_comments and that did work.

    hey guys,

    1. Please install the plugin Members for easier role capability management.
    2. Then go to constant-contact-apo/admin/menu.php

    3. you need to look for add_menu_page and add_submenu_page
    the word administrator should really be a capability instead. So if you give your editor can manage_options, replace the administrator with manage_options

    Hope it helps!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: Constant Contact for WordPress] Trouble getting plugin to work in Editor role’ is closed to new replies.