• Resolved jdowns1

    (@jdowns1)


    I operate a site that hosts fundraisers, and members create UM accounts to show off their profile page. Once the fundraiser is finished, I want these profile pages to remain viewable (for Google indexing), but deactivate the users accounts so they can no longer access it. Right now, when a user is inactive, their profile page is redirected to the home page. I couldn’t find a hook to override that.

    If this is not an option, how can I add a custom user account status so I can filter on my users that way?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @jdowns1

    No, keep the Members active and restrict their Login with an UM Role change.

    You can try this code snippet “Restrict Login form for specific role”.
    Change the test for Administrator Role to a Role for your site.

    https://docs.ultimatemember.com/article/1791-restrict-login-form-for-specific-role

    Install the code snippet into your active theme’s functions.php file
    or use the “Code Snippets” plugin.

    https://www.ads-software.com/plugins/code-snippets/

    Thread Starter jdowns1

    (@jdowns1)

    I don’t want to change the role, I use their role to make their profile forms role specific, so changing their role would no longer allow their profile page to render. I need their profile page to remain viewable – see my original question.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @jdowns1

    Unfortunately, this functionality does not exist in our plugin at this time.

    Regards.

    Thread Starter jdowns1

    (@jdowns1)

    I was able to implement this by installing a plugin that allowed a user to be assigned multiple roles. I kept them in their specific role already assigned to their user profile, and add them to a new ‘Expired’ role once their fundraiser is complete. Then use CSS to hide the elements based on if they were in this Expired role.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Able to View Inactive User Profiles on Front End’ is closed to new replies.