Delayed Password Masking With ign_password_protect

Posted 284 days ago and modified 128 days ago
Filed Under: , , ,

Requirements

Demonstration

In the password field (second field); enter some characters to see the delayed masking occur.

Javascript

  1. Include jQuery library in head of document.
  2. Include dPassword plugin in head of document.
  3. Call on the plugin’s dPassword function also in the head of your document.

<script type="text/javascript" src="<txp:site_url />js/jquery.js"></script>
<script type="text/javascript" src="<txp:site_url />js/jQuery.dPassword.js"></script>
<script type="text/javascript">
	$(document).ready( function() {
		$('input:password').dPassword();
	});
</script>
</script>

Login Form

Called with the ign_password_protect plugin.

<txp:ign_show_login form="login_form" />

The Textpattern Form ‘login_form’ contains the following:

<input name="username" class="delayed-masking" type="username" />
<input name="delayed-masking" id="delayed-masking" class="delayed-masking" type="password" />

CSS (Optional)

An optional class was provided for each input field called delayed-masking. The following CSS mimics the example style above.

<style type="text/css">
input.delayed-masking {
width: 290px;
font-size: 20px;
margin-right: 10px;
}
</style>

Filed Under: , , ,
Comment · Tweet!

Escape Textile

Posted 425 days ago and modified 128 days ago
Filed Under: , ,

<txp:php>echo date('F Y'); </txp:php> produces the following error when posted to the <txp:body /> of an article:

error: Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE or '$' in /var/www/sitepath/textpattern/publish/taghandlers.php(3089) : eval()'d code on line 1

As noted here, escaping textile does render the PHP correctly. Escaping in textile is done as follows by wrapping with double equal signs.

==<txp:php>echo date('F Y'); </txp:php>==

And, thereby PHP does echo the date as shown here: Today is September 09, 2010

Now on to establishing a 1000 beat per day format for <txp:posted />

Filed Under: , ,
Comment · Tweet!
 
Trusted Payments
Send a text to 646.836.9557 (VENMO):
Pay whaleen