- This topic has 2 replies, 2 voices, and was last updated 8 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › custom page for restricted content
Is there any way to show a specific (you do not have access) page for restricted content? I know I can change the message with the “custom messages” plugin, but this is still very limited and doesn’t look pretty.
The primary obstacle to implementing redirection as an option, is reliability. Whatever solution offered has to work 100% of the time, across every platform.
Using a Meta refresh to redirect requires placing an http-equiv Meta tag in the Head section of every protected page. However, this method is browser dependent; and the “brief flashing” of the screen may induce an epileptic seizure in the user.
Using JavaScript redirects is not fool-proof either. The action may give a false positive to a browser’s ad-blocker or popup-blocker.
PHP redirects will always work; but must be positioned in the code, before any other markup codes or characters are sent to the user’s browser. A poorly designed theme or “rogue CSS” will cause the browser to display a “white screen of death,” with a 1 line error message, saying that headers have already been sent (or equivalent).
And of course, there are various server and scripting language dependent solutions as well…
ok so is there any other “reliable” method for customising the content other than using a redirect, besides the single line/formfield of the “custom messages” addon.
Ideally I want all the pages to match the rest of the theme.