March 7, 2018 at 11:14 am #13600
I used your custom message add on to change the above message, but now find that having done this I can no longer use the after login redirect addin to ‘Enable Redirection to the Last Page’. Why are these two incompatible? And is there anything I can do about it? I cant find a way of restoring the original message so that I can use the redirection.March 8, 2018 at 3:26 am #13605
Hi, have you tried deleted the custom message addon? Then installing a fresh copy? Let me know how you go.
In regards to your other question please read below.
(The following was quoted by admin in the forum.)
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).
Kind regardsMarch 8, 2018 at 9:58 am #13609
Thanks. I think I will stick with what I have, as custom messages are probably of more value to me that the redirect. Cheers for your response though.March 8, 2018 at 10:16 am #13610
Sure no problem. I will mark this support thread as resolved.
Enjoy the plugin.November 25, 2018 at 9:08 pm #16855
I understand the technical reasons for this:
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.
But there must also be a solution. Perhaps a macro for the custom messages plugin that allows the link to be extended with the
?swpm_redirect_to=parameter? Something like
<a href=/login-page?swpm_redirect_to=%%MACRO%%>…?November 26, 2018 at 5:07 am #16856
What you can do is use the filter (triggered by the core plugin) directly. Then customize the code according to however you need it.
The filter hooks in question are the following:
swpm_not_logged_in_post_msgSeptember 4, 2020 at 2:47 am #20838
These post are now 2 years old. Has anything changed?
I have both the redirection addon and the custom message addon. After reading the documentations and the forum, I am still a little confused. Please bare with me as I am not an expert and new to wordpress.
I understand that the custom message overrides the redirection but there is this message in the documents:
“When this feature is enabled, if you click on the “Login” link of a protected post or page, it will send you to the login page with “swpm_redirect_to” query parameter in the URL (meaning this feature is active).” I don’t quite understand what this means, but I am under the impression that I can add (/?swpm_redirect_to=) after my domain address in one of the custom message fields and it will operate like the redirection addon. I tried that and it didn’t work.
Currently I have the following in the field:
Could you help me add the redirect parameter to the URL?September 4, 2020 at 5:50 am #20841
You must be logged in to reply to this topic.