Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Password Protected Pages - cannot sign in


 
Prev Previous Post   Next Post Next
  #1  
Old Aug 29, 2013, 01:05 PM
AmiG
 
8 posts · Aug 2013
[SOLVED] Password Protected Pages - cannot sign in

I am unable to figure out what my problem is. I am hoping someone can help me.

I have several password protected pages that I have not visited since upgrading to Montezuma some time ago.

They have worked in the past but no longer respond to the correct password. I probably should have tested them at the time but didn't.

I have deactivated the theme with all plug-ins activated and the password protection works just fine. I have disabled all the plug-ins with Montezuma activated and the page is non-responsive again.

The only modification I have made is to add the following to the functions.php:

add_filter( 'the_password_form', 'custom_password_form' );
function custom_password_form() {
global $post;
$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
$o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post">
' . __( "Your files are only a password away.<br />Please use the password that was sent to you via email to access the goodies.<br /> <br />") . '
<label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" class="button" value="' . esc_attr__( "Submit" ) . '" />
</form><br /><p style="font-size:14px;margin:0px;">If you have misplaced your password, or need a new one, please <a href="http://domain/contact">contact us to get set up.</a></p>


';
return $o;
}

Restoring the original functions.php makes no difference.

Here is an example of an offending page: bit.ly/15jBEHt I have reset the password to "montezuma"

Any ideas?
 

Bookmarks

Tags
password protected page



Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa 3.6.4 & Password Protected Pages olsonsp4c Atahualpa 3 Wordpress theme 0 Apr 9, 2011 11:47 AM
Formatting of Sumbit Button on Password Protected Page aebrigham Header configuration & styling 7 Sep 14, 2009 09:42 AM
Password protected Page aebrigham Page & Category Menu Bars 7 Aug 12, 2009 09:59 AM
Making a 'child page' password protected when it holds a forum Steven Atahualpa 3 Wordpress theme 2 Mar 31, 2009 06:11 PM


All times are GMT -6. The time now is 06:35 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.