{"id":190,"date":"2005-02-28T12:58:07","date_gmt":"2005-02-28T11:58:07","guid":{"rendered":"http:\/\/www.karlankas.net\/blog\/index.php\/noticias\/190"},"modified":"2005-03-10T23:51:45","modified_gmt":"2005-03-10T22:51:45","slug":"nuevo-plugin","status":"publish","type":"post","link":"https:\/\/karlankas.top\/index.php\/2005\/02\/28\/nuevo-plugin\/","title":{"rendered":"Nuevo Plugin"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/karlankas.top\/wp-images\/alert.jpg\" style=\"float:left;border:solid 1px black;margin-right:10px;\" alt=\"http:\/\/karlankas.top\/wp-images\/alert.jpg\" title=\"http:\/\/karlankas.top\/wp-images\/alert.jpg\" \/>En un derroche de imaginaci\u00f3n 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 \u00fatil ya que nos evita dos cosas: <\/p>\n<p> 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\u00e1s para corregirlo. Con la consecuente p\u00e9rdida de tiempo.<\/p>\n<p> El tener que hacer una p\u00e1gina descriptora de errores ya que el mensaje que aparece en el wordpress original es bastante feo.<\/p>\n<p>Para descargarlo pincha <a href=\"verificador.zip\">aqu\u00ed<\/a><br \/>\nSu instalaci\u00f3n es bien sencilla:<\/p>\n<p>Descomprimes el archivo verificador.php<\/p>\n<p>Copias el archivo dentro del directorio de plugins (dentro de wp-content), lo activas yy&#8230; ya est\u00e1!<\/p>\n<p>Puedes si quieres personalizar los alerts que te muestra editando las variables por defecto que est\u00e1n al principio del plugin.<\/p>\n<p>Decir por \u00faltimo que el plugin funciona si no se ha cambiado el name ni la id de los campos del formulario. Si los has cambiado tendr\u00e1s que retocarlo.<\/p>\n<p>Espero que lo encontreis tan \u00fatil como yo! \ud83d\ude09<\/p>\n<hr \/>\n<p><img border='0' src='http:\/\/karlankas.top\/wp-content\/plugins\/titleimages2.php?func=generate&#038;title=New+Plugin' alt='New Plugin' \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/karlankas.top\/wp-images\/alert.jpg\" style=\"float:left;border:solid 1px black;margin-right:10px;\" alt=\"http:\/\/karlankas.top\/wp-images\/alert.jpg\" title=\"http:\/\/karlankas.top\/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:<\/p>\n<p> 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.<br \/>\n To have to do a descriptive error page, as the message that appears in the original word press is quite ugly.<\/p>\n<p>To download this comment checker plugin press <a href=\"verificador.zip\">here<\/a>. <\/p>\n<p>To install it is very simple:<\/p>\n<p>Unzip the file &#8220;verificador. php&#8221;<\/p>\n<p>Copy the file into the plugins directory (into the wp-content directory), activate it \u2026 and that is it!<\/p>\n<p>You can personalize the alerts, at the beginning of the plugin, that are shown editing the variable by default.<\/p>\n<blockquote style=\"font:normal 12px\/18px courier;border:solid 1px silver; background-color:#efefef;\"><p>\n$errorNombre= Put here the message to display if you send the form with a blank name.<br \/>\n$errorCorreo=Put here the message to display if you send the form without an email address.<br \/>\n$errorComentario= Put here the message to display if you send the form without a comment. \n<\/p><\/blockquote>\n<p>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.<\/p>\n<p>I hope you can find it as useful as I do!<\/p>\n<p><small>Gracias a <a href=\"http:\/\/www.karlankas.net\/stef.jpg\" onclick=\"window.open(this.href,'','width=404,height=375');return false;\">Stef<\/a> por la magn\u00edfica traducci&oacute;n!<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En un derroche de imaginaci\u00f3n 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 \u00fatil ya que nos evita dos cosas: El tener que esperar a que se mande [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-plugins-de-wp"],"_links":{"self":[{"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":0,"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"wp:attachment":[{"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karlankas.top\/index.php\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}