Mbrsolution

Web Developing / Computer Repairs Brisbane
  • Home
  • Blog
  • Comment subscriptions
  • Contact Mbrsolution
  • Search My Site
  • Web Tutorials
    • Joomla Tutorials
    • KompoZer Tutorials
    • WordPress CMS Tutorials
      • WordPress Plugins Tutorials
        • WordPress Fast Secure Contact Form Plugin
        • WP CataBlog Plugin Tutorials
      • WordPress Theme Tutorials
        • Template Toaster Software WordPress
        • Suffusion Theme Tutorials
  • WordPress Web Site Design
Home » WordPress » WordPress Simple Membership After Login Redirect add-on

WordPress Simple Membership After Login Redirect add-on

 WordPress
May 042015
 

WordPress Simple Membership After Login Redirect add-on shows you how to redirect your members to page when they log in and more.

Last Updated: December 15, 2020

Latest News: Updated the documentation.

The following instructions shows you how to set up an after login redirect landing page for your members. This is important if you want to create a special page with instructions for your members based on their membership level. There is also an option available that allows the members to be redirected to the page or post they are logging from.

Simple Membership After Login Redirection change log version 1.4

  • Fixed an “Undefined index” PHP notice when the settings is saved and WP Debug is enabled on the site.

What You Need:

  • Simple Membership plugin.
  • Simple Membership After Login Redirection add-on.

WordPress Simple Membership After Login Redirect Steps

Note: In Simple Membership version 3.2.5, a new feature was added to enable redirection to the last page after login (where they clicked the login link).

Step 1 ) Go to WP Membership -> Add-ons as illustrated in the image below to install Simple Membership After Login Redirection add-0n. Make sure you activate the add-on.

wordpress-simple-membership-add-ons-menu

Step 2 ) Go to WP Membership -> Membership Levels. Check to make sure the After Login Redirection Page field is added to all your members level’s as illustrated in the image below.

wordpress-simple-membership-add-on-active

Step 3 )  Create a new page, post or simply add the URL of the page you want the members to be redirected too. I created a new page and named it Free Membership Page. I made sure I protected the page and only allowed the members corresponding to this page. In this example only the Free Level members can have access to this page.

  • Yes, Protect this content
  • Free Level

wordpress-simple-membership-add-on-page-added

Step 4 ) The following image shows you the URL address of the page added to After Login Redirection Page field. Make sure you click on Edit Membership Level button to save your changes.

When the members belonging to the Free Level membership level log in, they will be redirected to the page added to the membership level. In this example I added the following URL, http://localhost/wordpress361/free-members-page/.

wordpress-simple-membership-add-on-url-added

Redirect To The Last Page

Step 5 ) If you want your members to return to the same page they landed on after they click on the login link, then make sure you enable the following feature Enable Redirect to Last Page. This is located in WP Membership -> Login Redirection -> Enable Redirect to Last Page as illustrated in the image below.

wordpress-simple-membership-after-login-redirect-add-on-last-page

Step 6 ) The following image, displays a post with content protected and the Login link to log in. The members need to click on this link to view the content.

Step 6-a ) The following image, displays the protect content after the member has logged in. You can see that the member was not redirected to the URL added above in Step 4 ) because the feature Enable Redirect to Last Page. is enabled.

Note: The login redirect addon LOOKS for the special login link that the core plugin creates. It then replaces that login link with an extra parameter. If you use the custom messages addon to override the standard protection message of the plugin then the login addon can’t add the extra parameter. This is one of those features where you need to pick one (You can’t get both). Also, if you click on the Login Widget on the sidebar or the Login in your menu it will not redirect the member to the page or post they are visiting.

Troubleshooting Information

Issue 1 ) Some have reported the following problem. When a user logs in and it is set to redirect to the previous page, the URL they are sent to excludes the ‘punctuation’ e.g. httpswww.mysite.org.ukmember-list. The “punctuation” has been converted to https%253A%252F%252Fwww.mysite.org.uk%252Fmember-list%252F. The %figures are then ignored in the redirect so “punctuation is removed”.

Solution: (Solution provided by Admin in the forum) Something specific to this site is causing the URL to be broken. The addon uses the following sanitation function on the URL to make sure the URL is safe.

esc_url_raw

This is a WordPress function that you are suppose to use on a URL to make sure it can’t be used to create a security hole. So if your URL has weird/strange characters that is not suppose to be present in a URL then its not going to work. That sanitization function of WordPress will remove the invalid characters to make the URL safe. If this is the case, you will need to edit the URL and make it a valid URL that passes the sanitization check.

Issue 2 ) If you run into issues using this plugin/addon, you might like to read the following solution Back to page after login posted in the support forum.

FAQ

Q1 I am also using Simple Membership Custom Message addon. How do I fix the redirect problem issue?

Answer 1: The redirection to the last page ONLY triggers if you click on the “Login” link from the protected content message that is shown inside a protected post/page. If you also have the following addon Simple Membership Custom Message installed and you alter the default message, the redirect to the last post will not get triggered and will not work. However you can try the following solution someone shared in the support forum.

=============

Q2 The members are not redirected to the URL added in the membership level. How do I fix this issue.

Answer: Make sure the URL is not broken in other words when you enter the URL on the browser’s address you don’t get a 404 page not found error message. Also check your permalink structure, this can sometimes cause an issue.

=============

Q3 I have a cache plugin installed in my site. How do I fix the redirecting issue in my site?

Answer: The membership functionality needs a dynamic page being shown to the members. A cached page simply shows a static cached page (our plugin doesn’t get a chance to apply the conditions to that page). When a cached page is being shown, the user is not actually being shown a page which can read the login status of the user then show/hide the page’s content accordingly. That’s what causes the issue with membership type setup because membership type site is not the same as a blog type site. Caching is normally fine with a Blog type site where there is no need to show content based on a member’s login status. Click the following link forum post to learn more.

We only support the following WordPress caching plugins at the moment:

W3 Total Cache
https://simple-membership-plugin.com/w3-total-cache-compatibility-simple-membership/

WP Super Cache
https://simple-membership-plugin.com/wp-super-cache-compatibility-simple-membership/

WP Rocket Cache
https://simple-membership-plugin.com/wp-rocket-cache-compatibility-for-simple-membership/

WP Fastest Cache
https://simple-membership-plugin.com/wp-fastest-cache-compatibility-for-simple-membership/

==================================

Click on the following URL Form Builder to continue.

If you have any questions please let me know. I will be updating this tutorial from time to time.

Enjoy.

Simple Membership Plugin Tutorial List:

  • WordPress Simple Membership Plugin

Share this post:

Share on Twitter Share on Facebook Share on Pinterest Share on LinkedIn Share on Email
I have been working in IT since 1999 and I enjoy the challenges it brings me. I love developing websites with WordPress. I spend a lot of time helping out in wordpress.org forums. I have been writing tutorials since 2011. Now I am learning how to manage my own VPS "Virtual Private Server.
 Tagged with: addon, login, Membership, page redirection, Plugins, tutorial

  2 Responses to “WordPress Simple Membership After Login Redirect add-on”

  1. Beck says:
    December 31, 2017 at 12:09 am

    Hi
    I’ve installed the plugin WordPress Simple Membership After Login Redirect add-on and I can’t see anything on the side panel to follow the steps. There’s nothing that says ‘membership’. I’ve checked to make sure the plugin is istalled and it is. Do you know why possibly I can’t see anything?
    Thankyou

    Reply
    • Webmaster says:
      January 1, 2018 at 7:27 am

      Hi Beck, as I mentioned in the support forum I suspect a conflict with a plugin or maybe even your theme. Since you also mentioned that you are logging in as an admin. Hopefully we can find the conflict soon.

      Kind regards

      Reply

 Leave a Reply Cancel reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

7 − four =

  WordPress Simple Membership Hide Adminbar   Suffusion Theme Layout Sidebar Settings

Follow Me

Mbrsolution Facebook Mbrsolution RSS Feed Mbrsolution Twitter

Spanish Blog

Blog in Spanish


Blog Español

Recent Posts

  • MailPoet Wizard Setup
  • Translate Simple Membership Using Loco Translate
  • The SEO Framework Webmaster Meta Settings
  • WP The SEO Framework Schema Settings
  • AIOWPS Two Factor Auth Settings

Recent Comments

  • Webmaster on CCleaner Options Settings
  • Nancy Brassert on CCleaner Options Settings
  • Webmaster on WordPress Simple Membership Email Settings
  • Nuu on WordPress Simple Membership Email Settings
  • Webmaster on ClassiPress WordPress Theme Customize Footer Area
Your information will be used to send you Blog updates. You can change your mind at any time by clicking the unsubscribe link at the bottom of any email that you receive from me. You can find details about mbrsolution privacy practices here.

Advertisements

Premium WordPress Apps

Pages

  • About Mbrsolution
  • Blog
  • Comment subscriptions
  • IT and SEO Support Rates
  • Links
  • PC Tips and Tricks For Windows OS
  • Portfolio
  • Recommended Tools For Windows OS
  • Resume
  • Sitemap
  • Testimonials
  • Website Design Tools And Utilities
  • WordPress Web Site Design
  • WordPress Websites SEO Management
  • WordPress Plugins Tutorials
  • WordPress Theme Tutorials

Tutorials

  • Comment subscriptions
  • Facebook Security Tutorials
  • Gimp Tutorials Latest Version 2.10.30
  • Google Tutorials
  • How To Operate An Android Smartphone
  • PayPal Tutorials
  • Selling And Buying eBay Tutorials
  • YouVersion Bible Tutorials
  • WordPress Plugins Tutorials
  • WordPress Theme Tutorials

Buy Me Coffee!

If you find my site helpful, you can buy me a cup of coffee. Click on the following image.
Thank you for your visit, enjoy my site.
© 2009 - 2023 Mbrsolution All Rights Reserved Please read the following:

Terms And Conditions

Privacy Policy

Disclaimer

Copyright Notice.

Suffusion theme by Sayontan Sinha
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT