28 Feb 2005

Nuevo Plugin

Archivado en: (Tardarás en leerlo 1 minutos con 42 segundos)

http://www.karlankas.net/blog/wp-images/alert.jpgEn un derroche de imaginación e ingenio he desarrollado un plugin que comprueba si se ha rellenado el campo del nombre, el del correo y el del comentario en el formulario de comentarios antes de mandarlo. Esto lo encuentro muy útil ya que nos evita dos cosas:

El tener que esperar a que se mande el formulario, que nos muestre el mensaje de error y tener que volver a dar para atrás para corregirlo. Con la consecuente pérdida de tiempo.

El tener que hacer una página descriptora de errores ya que el mensaje que aparece en el wordpress original es bastante feo.

Para descargarlo pincha aquí
Su instalación es bien sencilla:

Descomprimes el archivo verificador.php

Copias el archivo dentro del directorio de plugins (dentro de wp-content), lo activas yy… ya está!

Puedes si quieres personalizar los alerts que te muestra editando las variables por defecto que están al principio del plugin.

Decir por último que el plugin funciona si no se ha cambiado el name ni la id de los campos del formulario. Si los has cambiado tendrás que retocarlo.

Espero que lo encontreis tan útil como yo! :wink:



New Plugin

http://www.karlankas.net/blog/wp-images/alert.jpg With a bit of imagination and ingenuity I developed a plugin that test the name, email and comment fields, before you send it. I find this very useful as avoid us two things:

Waiting for the form to be sent out, showing the message error and have to click back to correct it. This is a waste of time.
To have to do a descriptive error page, as the message that appears in the original word press is quite ugly.

To download this comment checker plugin press here.

To install it is very simple:

Unzip the file “verificador. php”

Copy the file into the plugins directory (into the wp-content directory), activate it … and that is it!

You can personalize the alerts, at the beginning of the plugin, that are shown editing the variable by default.

$errorNombre= Put here the message to display if you send the form with a blank name.
$errorCorreo=Put here the message to display if you send the form without an email address.
$errorComentario= Put here the message to display if you send the form without a comment.

Lastly, the pluging works if you have not change the name or ID in the field form. If you have changed it then you will have to alter it.

I hope you can find it as useful as I do!

Gracias a Stef por la magnífica traducción!







Licencia de Creative Commons
Esta obra está bajo una licencia de Creative Commons.

Gestionado con WordPress