Mi primer plugin para Wordpress: mitsukaranakatta.

mitsukaranakatta version español

mitsukaranakatta es un generador de errores 404. En pocas palabras, cuando el usuario carge un archivo inexistente en el servidor, podras lanzar aleatoriamente mensajes personalizados con un titulo, un mensaje y una imagen.

Instalacion del plugin

Una vez descargado y descomprimido el archivo(descarga al final del post) debes subirlo a la carpeta de plugins de Wordpress, la ruta regularmente es “/wp-content/plugins/”. Una vez subido el plug debes activarlo desde el administrador de plugins de Wordpress.

Iniciando con mitsukaranakatta

Opcion Agregar: Para iniciar debes alimentar la tabla de errores 404, para eso solo debes dar click en “agregar”, que se encuentra en el pequeño menu que esta arriba de este mensaje. Podras agregar tantos mensajes de error 404 como necesites.

Opcion Editar:Si deseas cambiar el titulo, mensaje o imagen de algun error 404 solo debes dar click en la opcion Editar del menu que esta arriba de este mensaje. De igual manera si deseas eliminar alguno. Una vez que accedas a esta opcion se desplegara una tabla con todos los errores y la opcion editar y eliminar a un lado de ellos.
Como mostrar los errores

Ahora que ya tienes unos cuantos errores personalizados en tu tabla (preferentemente como minimo de 3 a 4) debes mostrarlos. La mayoria de los temas para wordpress soportan la deteccion del error 404 por lo tanto debes buscar el archivo php en la carpeta del tema de tu blog, generalmente el archivo se llama 404.php. Una vez ahi comenta las lineas que muestran el titulo y el mensaje de error, regularmente comienzan con “< ?php _e(". Una vez comentadas estas lineas debes agregar estas lineas:

< ?php $mitsukaranakatta= new mitsukaranakatta();?>
< ? php $mitsukaranakatta->titulo(); ?>
< ? php $mitsukaranakatta->mensaje(); ?>
< img src="< ? php $mitsukaranakatta->url_imagen(); ?>” />

La primer linea siempre es necesario que este antes que las demas para que puedas llamar la funcion que muestra el titulo, mensaje, url imagen. Como notaras el plug es en cierta manera flexible pues puedes aplicarle el estilo que desees.

Se supone que deberia ser lo primero, asi que a si terminaste de leer todo el post significa que de verdad te interesa de que va esto: mitsukaranakatta significa no encontrado, o almenos eso creo yo, si estoy mal porfavor diganme como debe ser para corregir el nombre.

02 de Julio del 2007:Actualmente vamos por la version 1.0 y la puedes descargar de aqui:

mitsukaranakatta version in English

mitsukaranakatta is a generator of errors 404. Briefly, when the user carge a nonexistent file in the servant, podras to send randomly customized messages with I title, a message and an image.

Installation of plugin

Once unloaded and decompressed the file (unloading at the end of post) you must raise it the folder of plugins of Wordpress, the regular route is “/wp-content/plugins/”. Once raised plug you must activate it from the administrator of plugins of Wordpress.

Initiating with mitsukaranakatta

Option To add: In order to initiate you must feed the table on errors 404, for that single one you must give click in “adding”, that is in the small menu that this above of this message. You will be able to add so many messages of error 404 as you need.. Option To publish: If you wish to change I title, message or image of some single error 404 you must give click in the option To publish of the menu that this above of this message. Of equal way if you wish to eliminate some. Once you accede to this option unfolded a table with all the errors and the option to publish and to eliminate a side of them. Like showing the errors Now that already you have a few customized errors in your table (as preferredly minimum from 3 to 4) you must show them. Most of the subjects for wordpress they support the detection of error 404 therefore you must look for the file php in the folder of the subject of your blog, the file is called 404.php generally. Once it comments the lines there that show I title and the error message, regularly begin with “< ? php _e (”. Once commented these lines you must add these lines:
< ?php $mitsukaranakatta= new mitsukaranakatta();?>
< ? php $mitsukaranakatta->title(); ?>
< ? php $mitsukaranakatta->message(); ?>
< img src="< ? php $mitsukaranakatta->url_image(); ?>” />

Forward edge always is necessary that this before the others so that you can call the function that shows I title, message, URL image. As you noticed plug is in certain flexible way because you can apply the style to him that you wish.

One assumes that deberia to be first, so to if you finished reading all post it means that really it interests to you that goes this: mitsukaranakatta means not found, or almenos that I create, if I am badly porfavor diganme as she must be to correct the name.

18 of Julio of the 2007: At the moment we go by version 1.0 and you can unload it of here:

Articulos relacionados:

  1. PLugin WP Cumulus: Cumulo de Tags para Wordpress Interesante plugin para wordpress el cual muestra los tags en...
  2. Proyectos Jorgelig Theme for gregarius Jorgelig es un tema o Skin...
  3. Bonitos Themes para Wordpress Parece que ultimamente el microblogin se vuelve popular, asi que...
  4. 100 Themes para Wordpress Pues les dejo otra pagina donde hacen muy buena una...
  5. El primer SPAM chapis Aun recuerdo que pasaron varias semanas antes de mi primer...

Related posts brought to you by Yet Another Related Posts Plugin.



6 Responses to “Mi primer plugin para Wordpress: mitsukaranakatta.”

  1. meneame.net dice:

    mitsukaranakatta. Un plugin para Wordpress que genera errores 404 (not found) personalizados aleatoriamente….

    mitsukaranakatta es un generador de errores 404. En pocas palabras, cuando el usuario carge un archivo inexistente en el servidor, podras lanzar aleatoriamente mensajes personalizados con un titulo, un mensaje y una imagen….

  2. kassanmoor dice:

    Genial, lo probare ^^

  3. LA100RRA dice:

    Excelente!

    Una recoemndación. Si tienes oportunidad traducelo al inglés y envíalo acá ;)

  4. Anabelle dice:

    Que buen Plugin!! llevabamos buscando algo así mucho tiempo :)
    sabes si funciona con wordpress MU ??

  5. jorgelig dice:

    No lo eh probado Anabelle, pero si tu tema cuenta con una pagina para el error 404, seguro que si. Pruebalo y nos cuentas :)

    La100rra: Gracias por el dato, me pondre a trabajar en ello. ;)

Leave a Reply