• Resolved will.lawrence

    (@willlawrence)


    Hi there,

    Firstly, love the plugin! I am using your plugin and have set up two custom user levels.

    For pages that a user does not have access to, i want to still display the page, but to have a slight opacity fixed colour overlay over the page with a message in the middle saying to upgrade their subscription in order to view this content. This way it will give the user a preview, and more of an incentive to upgrade their subscription.

    Do you know how im able to do this instead of it showing the ‘Access Denied’ page?

    Thanks
    Will

    https://wordpress.org/plugins/advanced-access-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Will,

    With ConfigPress plugin you have an ability to dive deeper in AAM customization. There are few possible ways to configure AAM behavior when access is denied to posts or pages. Below you can find different sample of configurations that you can insert into ConfigPress.

    Option A – Show custom Access Denied message

    [frontend]
    access.deny.message = "You custom access denied message"

    Option B – Redirect to custom URL

    [frontend]
    access.deny.redirect = "You valid URL"

    Option C – Redirect to public post or page on your website

    [frontend]
    access.deny.redirect = "Post or Page ID"

    Option D – Advanced way to hook your own callback function

    [frontend]
    access.deny.redirect.userFunc = "valid callback function"

    The same approach can be applied to backend. Simply replace [frontend] with [backend].

    For more information about ConfigPress, please check our ConfigPress reference page.

    Thread Starter will.lawrence

    (@willlawrence)

    Thanks for this!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom 'Access Denied' page’ is closed to new replies.