• I am trying to configure a list to show only users with first role s2Member Level 1. Note the role name includes spaces. It doesn’t work if you put this by itself in the include field of the list configuration. The returned list is empty. I think amr users is seeing the space as a delimiter and it tries to find the role s2Member which doesn’t exist.

    If I add a comma like so: s2Member Level 1,
    it works properly.

    Exclude is OK without the comma.

    Priority isn’t high as I finally figured out the comma workaround.

    When you fix it, please make sure a trailing comma doesn’t break the list. A trailing comma or not seems OK in the Exclude field.

    Thanks.

    https://wordpress.org/plugins/amr-users/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author anmari

    (@anmari)

    Hi roysmith,

    it’s working fine for me. http://imgur.com/RjY2yT5
    config: http://imgur.com/lQakEHK

    HOWEVER the stored data has underscores. The role ‘label’ has the spaces.

    Also Similar logic used to isolate or explode includes or excludes. Are you sure you don’t have a data problem?
    Exclude would be ok anyway if there wasn’t anything that matched.
    If include returns nothing, maybe nothing matches? Or perhaps you have a hidden character in what you are pasting in ?

    If you have amr-plus, the filtering will usually highlight any data anomalies (or look in phpmyadmin)

    Note: S2 member roles are wp roles and note Justin Tadlocks members plugin role creation says:

    The role name should be unique and contain only alphanumeric characters and underscores.
    The role label is used to represent your role in the WordPress admin.

    Thread Starter roysmyth

    (@roysmyth)

    I’m quite sure. I tested this very carefully.

    – I do have a user with s2Member Level 1 role.
    – I can exclude the user from a list normally, no comma needed
    – I can only include by adding a comma to the role name

    I’ll have another look when I have a chance and report again.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug in configuring lists – role name with spaces not processed correctly’ is closed to new replies.