A great plugin to use. However,
Button not Displaying on the page therefore plugin doesn’t work because of another plugin {Password Protect WordPress Lite}.
When I disable this plugin the button shows up perfectly but when I use that plugin it stops working. Password Protect WordPress Lite plugin is only used to change the front end of the protected password page.
Any Help would be appreciated.
]]>Hi just installed the plugin but it doesn’t seem to work.
The text message does pop up.
I have created this test page with a password of test . This is a password protected page.
The same occurs on the “members only” page.
Any help would be appreciated. Thanks very much.
Glenn
The plugins been working fine for the last couple of years on this site but has suddenly stopped working. I’ve removed cache plugin as it was mentioned on another post. but still no joy. ive also removed the plugin and re-installed. Any help appreciated.
]]>Hi, the button doesn′t work properly. I can login with the password “123456” without problem, but when i press logout button i read the message “logged out” but is still in the same page, this until i press f5 to refresh page and now is logged out correctly. How can I fix this?. My theme is “Hestia”
Thanks,
]]>Hi,
Great plugin, thank you!
I put the button shortcode into sidebar (with content aware plugin) and it is not shown up in set up pages/blog post.
Can you help me out what can be the problem and how to solve it?
Thank you,
Agnes
Hi Nate!
Reopening this issue reported by @gahapati — I’m using WordPress 5.1.1 multisite, version 1.4.2 of your excellent plugin (latest version). The fix mentioned below is still needed. Thanks for your attention!
Gabriel
]]>A while back, when I reported that Protected Posts Logout Button does not work in WP Multisite, user rcreators come up with a solution to this.
I’m sorry to bring this up again, but I just noticed that as of v1.4.1 this bug is still there and preventing Protected Posts Logout Button from working in WP Multisite. In my case it has been re-introduced with the previous update, since I had already applied the fix mentioned to v1.3.2.1.
For those trying to use Protected Posts Logout Button on their WP Multisite here’s the fix again. It involves replacing line
9097 of pplb_logout_button.php
Instead of
setcookie( ‘wp-postpass_’ . COOKIEHASH, stripslashes( ” ), time() – 864000, COOKIEPATH );
line9097 ought to read
setcookie( ‘wp-postpass_’ . COOKIEHASH, ”, 0, COOKIEPATH, COOKIE_DOMAIN ); // Multisite fix by rcreactorIt would be great if you could include this in your next release.
Kind regards
https://www.ads-software.com/plugins/protected-posts-logout-button/
Hello Nate
Is there a way to put the logout button in a text widget or custom HTLM widget?
Thanks. Mike
]]>Hi! My website has 3 languge versions. How to create translation for button text? I use WPML.
]]>hi~there
when I login wp users that logout button is working,but when I non-login wp users that logout button is not working(no refresh) ,what can I do ? Thanks for your great plugin.(WP version 4.8.2,php 7.0)
For example: password:abc
https://tp.blisswisdom.org/for-example
There seems to be no automatic logging out of my password protected page per the Protected Posts Logout Button plugin, other than if I refresh the page.
The setting is currently at 3 minutes. Even if I visit another page on my website after 3 minutes, I’ll press the back button and I’ll still be logged in.
Is there any setting other than the cookie expiring time where automatic log out can be enabled?
Any information and guidance would be greatly appreciated.
]]>Hi there,
I’m reposting about my issues with the Protected Posts Logout Button purely because the original topic had been closed to replies. My apologies for not responding to the reply Nate, not sure why I didn’t.
Anyway, I’ve installed the plugin, I have the settings and when I insert the code it works, a log out button appears but the button doesn’t actually work.
Nate, you asked me the following questions, some of which I can provide an answers to:
1. What theme are you using?
2. Are there any javascript errors in your browser’s console/developer tools?
3. Do you have any caching or minify plugins installed?
4. Can you share a link to the page a sample protected page and password that I can inspect/debug? Please note, do not share anything sensitive that could compromise the security of your website or content. You can create a simple test page and give it a non-important password.
ANSWERS:
1. WordPress-bootstrap
2. No idea, how/where would I find this out?
3. Again no idea, I don’t think so, but I could give you a list of the installed plugins and you could tell me if any of them fall under that category.
4. If my answers to the above are helpful, I could try that out.
Any information and guidance would be greatly appreciated.
]]>Really useful plugin, thank you for taking the time to create it!
I understand that you can move the button manually using the shortcode/php, but can i move the default hook for this by using the remove_action, add_action functions?
I tried the following, but it doesn’t appear to work:
remove_action( 'the_content', 'pplb_logout_button');
add_action( 'genesis_after_header', 'pplb_logout_button');
]]>
Hi there,
I have installed the Password Protected Logout Button plugin on my work site, when I have tried to use it, the log out button appears on the page I want it to, however the button doesn’t actually work, it doesn’t logout.
I changed the default cookie expire time to five minutes, logged out of the site and nothing worked.
Any advice on this issue would be greatly appreciated.
Thank you.
]]>Hi Nate!
A while back, when I reported that Protected Posts Logout Button does not work in WP Multisite, user rcreators come up with a solution to this.
I’m sorry to bring this up again, but I just noticed that as of v1.4.1 this bug is still there and preventing Protected Posts Logout Button from working in WP Multisite. In my case it has been re-introduced with the previous update, since I had already applied the fix mentioned to v1.3.2.1.
For those trying to use Protected Posts Logout Button on their WP Multisite here’s the fix again. It involves replacing line 90 of pplb_logout_button.php
Instead of
setcookie( 'wp-postpass_' . COOKIEHASH, stripslashes( '' ), time() - 864000, COOKIEPATH );
line 90 ought to read
setcookie( 'wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH, COOKIE_DOMAIN ); // Multisite fix by rcreactor
It would be great if you could include this in your next release.
Kind regards
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Hi
Great job putting the code into a class – the right thing to do. ??
However my site was using the PHP call to the function, like this:
echo pplb_logout_button();
After updating your plugin I got PHP errors that the function was not found, so I had to change my code to this:
$pplb = new PPLB_Plugin(); echo $pplb->pplb_logout_button();
You might want to update your advice on the settings page and/or provide a backup function so that users like me don’t get struck with PHP fatal errors.
Thanks for the plugin though – nice work ??
Tim
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Hello,
I just inherited this site and one of the issues was that the password protected page keeps you logged in. I installed this plugin, (simple enough), and activated it but I’m not being logged out. I manage the site in IE and test it in Chrome. I have deleted cookies several times and am not logged into WP. I am VERY new to WP and newer still to .php and scripting. Not afraid to make changes as long as I know what and where. Last course was Java2 in 2000.
Signed,
Oldie but Goodie ??
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>I am using the plugin “smart passworded pages”. This allows the user to login and access all child pages of a particular page once they have logged in. Each page is still password protected. The first page they attempt to access will ask for a login then can access the others.
https://thecodecave.com/plugins/smart-passworded-pages/
I tried to use the logout button in conjunction with this plugin. It only logs the user out of the page with the buttton. Is there a way to have it log the user out of all pages that are protected. A complete logout?
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Is it possible to add the button to the top of the protected page or post?
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Logged out but now can’t login
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>I was wondering if the protected posts logout button plugin works on password protected pages as well as posts?
Thanks.
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>This plugin provides such an essential function to WordPress that one cannot but wonder why this isn’t part of the core code in the first place.
Under my WP 4.1.5 Multisite setup, however, pushing the logout button quite simply and sadly does nothing at all. Page reloads and, voila, you’re still logged in on the protected page.
If this actually worked, it would deserve a five star rating.
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Sorry for the newbie question, but I want to change the appearance of the button to match the rest of the buttons on my site. However I don’t know the class name. How do I find the class name to enter into the “Button CSS class” field?
Thanks!
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>2 separate questions on logout:
#1 Is there anyway I can add a redirect to another page after logout? Say even after a few seconds with a message saying something like “you are now logged out, redirecting to the home page”.
#2 I notice on logout the page shows a logout message but in every browser I’ve looked at it appears to refresh, and although the user is logged out, the current page they were on still shows the content and not the login screen again. Can this be changed?
Thanks in advance for your reply!
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Hi!
Thanks for your great plugin!
Well, I set a numeric value on the settings page but then I decided to leave it to defaults and was clearing the field (to an empty string).
This seems to be caused by:
$new_expire = get_option( 'pplb_pass_expires', false );
if( $new_expire !== false ){
return time() + $new_expire;
}
else{
return $expire;
}
}
since there is an option after clearing, which is not FALSE while ist’s an empty string.
Unfortunately I was not able to clear settings (even not by uninstalling, what seems to be another issue with your plugin, because settings will be left in the db after uninstalling).
So changing the condition to
if( $new_expire !== false && is_numeric($new_expire) ){
solved it for me.
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>After logging in to view a protected page clicking the logout button has not effect. I was able to fixit in my case by loading the JS script in the footer. Would it be possible to make this change to your code (assuming it doesn’t cause other errors) or at least add it as an option?
Nice plugin, thank you for releasing it!
–AJ
To make this change modify line 84 adding ,true to force wp_register_script call to load script in the footer.
function pplb_logout_js(){
wp_register_script( 'pplb_logout_js', plugins_url( '/logout.js', __FILE__ ), array('jquery'), null, true );
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>Just downloaded and installed your plugin on top of 3.8, however,
when I I click the logout button generated by the shortcode you provided, I am still logged in.
Greg
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>I am using WP 3.6.1, the plugin works fine.
But can I put it at the end of the post?
https://www.ads-software.com/plugins/protected-posts-logout-button/
]]>I was excited to find your plugin as the previous one I was using is no longer supported.
But when I click the logout button I DO get a “successfully logged out” pop up. But then the page reloads itself and is still logged in???
What am I missing??
I have an mp3 player pulling through an iframe on the page. Could these be a conflict somehow?
https://www.ads-software.com/extend/plugins/protected-posts-logout-button/
]]>Nate; you’ve got a gold mine here that answers a question I’ve been asking for about a week now. I think you could explode this plugin usage on this one attribute:
showing people how to change cookie expiration.
…or creating a field to do so.
i changed your default to be 3 hours for my tastes; because I don’t people to leave the site available on a public computer or one that is not there’s.
many people do not like the default 10 day expiration and want to edit it. i haven’t found a succinct answer, but your plugin allowed me to by adapting code.
https://www.ads-software.com/extend/plugins/protected-posts-logout-button/
]]>