Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter marshallsam

    (@marshallsam)

    Hi,

    I will give that a go and let you know the outcome.

    Thanks for sharing your fix.

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    Thank you for letting me know about the changes. The new features are functioning as expected however we have found a glitch/bug.

    When a new role is added with ‘block roles’ not selected, the role is generated with its associated permissions however when we go to assign this role to a new user, it does not display.

    When we added another new role, the original role appeared with the latest role still missing from the user role assigning drop down list.

    We continued this process with three new roles with only two roles displaying. So currently to get the new role to display, we have to generate another role.

    We will continue to investigate it however would value your feedback/advice?

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    That would be great and I appreciate you conducting the additional development.

    Can you let me know when this is ready.

    Many Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi,

    That worked perfectly.

    Thank you

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi,

    I tried to remove the commenting however this does not appear to have worked. Have I missed something?

    function cuar_custom_sorting_order( $args ) {
    $new_args = $args;

    // The next line says that the sort order will be by the date of the last modification
    // You could also sort by any field of the WordPress post table, like ‘title’
    $new_args[‘orderby’] = ‘modified’;

    // This line says that we want to sort by descending order (opposite of ‘ASC’)
    $new_args[‘order’] = ‘DESC’;

    return $new_args;
    }

    // You can change the page slug to another one, for instance ‘customer-pages’ or ‘customer-conversations’
    $page_slug = ‘customer-files’;

    // Uncomment the add_filter line you need, depending on where you want to change the sorting order

    //1. Change the order on the “My files” page (for any display mode)
    add_filter( ‘cuar/core/page/query-args?slug=’ . $page_slug, ‘cuar_custom_sorting_order’ );

    // 2. Change the order on the “My files” page (not when we are showing date archives or category archives)
    add_filter( ‘cuar/core/page/query-args?slug=’ . $page_slug . ‘&display-mode=default’, ‘cuar_custom_sorting_order’ );

    // 3. Change the order on the “My files” page (when showing date archives)
    add_filter( ‘cuar/core/page/query-args?slug=’ . $page_slug . ‘&display-mode=date_archive’, ‘cuar_custom_sorting_order’ );

    // 4. Change the order on the “My files” page (when showing category archives)
    add_filter( ‘cuar/core/page/query-args?slug=’ . $page_slug . ‘&display-mode=category_archive’, ‘cuar_custom_sorting_order’ );

    // 5. Change the order on the “Dashboard” page
    add_filter( ‘cuar/core/dashboard/block-query-args?slug=’ . $page_slug, ‘cuar_custom_sorting_order’ );

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    That appears to have worked perfectly.

    Any idea when you are considering adding the secondary role feature discussed above?

    Thank you very much.

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    I am running 4.18.b5 currently.

    Do I just add another Custom capability with the name of ‘ure_%’ ? As I cant see the permission on the system as default.

    Regards,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    I have downloaded and implemented the beta version and it appears to be functioning as expected with secondary roles remaining when updating.

    Thank you for your support and I look forward to the new update.

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    That appears to be functioning as expected as it maintains the secondary role even after updating whilst logged in as a non-admin user.

    As i use the pro version of this plugin, would the fix be included in that version and I guess I would need to download it from your site?

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    I am still investigating this issue, and have found that the issue does not occur when the distributor makes a new user (secondary role is generated correct) however still occurs when updating.

    I have also discovered that this issue occurs with any user edit role generated role? And does not occur on the WordPress generated user roles (administrators etc.)

    This suggests that I have missed a permission somewhere on the generated roles. What permissions would you expect for a role to allow them to manage, edit users?

    The only other way I can see it working is by selecting all permissions and then just slowly remove them until I get the solution I desire?

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    I am using advanced custom fields plugin – running at Version 4.3.8.1 (integrated with customer area plugin) and I’m running the latest version of user editor role Version 4.17.

    I have deactivated all non essential plugins and removed all custom code from the functions.php and still get the same result.

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    I currently have a single primary role and one single default secondary role.

    Following the updating of the user profile, it removes the additional fields (advanced custom fields attached to the secondary role) and secondary role itself.

    Now if the user is updated using an admin account, the secondary role remains present so this isolates it to the settings of the user updating the other user.

    Issue:

    Distributors –> Edit their customers profiles and once amended the secondary role is removed

    Administrator –> Edit customers profiles and once amended the secondary role remains.

    I can send over screenshots of the settings if that would help for the primary and secondary role.

    Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    That worked perfectly.

    Many Thanks,

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    That’s great and can’t believe I did not see these options before.

    Many Thanks

    Sam

    Thread Starter marshallsam

    (@marshallsam)

    Hi Vladimir,

    That sounds really promising.

    After reading the article, would the user just be greyed out (no edit or view options) or users are completely removed from the table including the ‘all users’ table (the solution I am after)

    If this is correct, I will go ahead and get the pro version.

    Thanks,

    Sam

Viewing 15 replies - 1 through 15 (of 19 total)