29

Ene

Plugin: Automatix LightBox for MT y MTOS



English

Este plugin agrega LightBox de una forma automática a todos los enlaces a imágenes que se encuentren en tu blog.
La forma de operación es muy sencilla, solo instala el plugin, publica todo tu blog y listo, tendrás lightbox en tus entradas, archivos y en general en todas las páginas que lo requieran.
Imagen de lightbox
Si una página no requiere los scripts de javascript, es decir que no contiene ningún enlace, estos no serán añadidos a la misma.
A diferencia del plugin anterior, el cual agregaba el rel="lightbox" a las imágenes, al momento de agregarlas a la entrada, en este no modificamos el contenido del blog, ya que tanto los scripts y el rel="lightbox" son agregados directamente al html después de pasar por todo el proceso de publicación.

Si ya tienes el anterior plugin de lightbox, entonces lo que tienes que hacer es lo siguiente:
 
Quita la etiqueta <$MT:LightBoxScripts$>
Desactiva el plugin de LightBox o elimina la carpeta de este.
Tanto el Css y el Javascript ya generado por el otro plugin,  son 100% compatibles por lo que si ya están funcionando, déjalos tal cual.

Listo Vuelve a publicar todo tu blog para el plugin haga su magia.

Si aun no instalas el plugin, entonces lo que tendrás que hacer es lo siguiente:

Sube el contenido del archivo comprimido a la carpeta de plugins de tu instalación de MT o MTOS.
sube las imágenes a la raíz del sitio o en algún otro lugar. La carpeta por default es LBimages.
-Esto lo puedes hacer por medio del mismo MTOS o por ftp, la forma de hacerlo queda a tu elección.

Publica tu sitio y listo, ahora el plugin hará su magia por ti.

En este plugin, por Automático me refiero a lo siguiente:
se agregara el rel="lightbox" a todo enlace que tenga como href una imagen, no importa si es un simple enlace de texto o una imagen, o tal vez algo más compuesto.

Ejemplos validos serian como este:

<a href="http://mixelandia.com/imagenes/imagen1.jpg">Imagen</a>
<a href="http://mixelandia.com/imagenes/imagen1.png"><img src="http://mixelandia.com/imagenes/imagen1-mini.jpg" alt="imagen1"></a>
<a href="http://mixelandia.com/imagenes/algo_raro.gif"><strong>Imagen</strong></a>

Si tienes dudas, comentar o detectas algún error, no dudes en dejar un comentario.

Saludos.



This plugin adds LightBox in an automatic way in any link to an image in the web pages of your blog.
To make this plugin works, you only have to install it and then publish all the templates.

Imagen de lightboxWhen a page doesn't have any link to an image, the scripts (css and JavaScript) aren't added to that page.
The main difference with the other lightbox plugin, is that the previous, added the rel="lightbox" to the links when the images were added to the entry, but in this the content of your blog is not modified, because the scripts are added after MT builds the html but before it is saved to disk.

If you already have the previos lightbox plugin:
 
 delete the <$MT:LightBoxScripts$>
 Unistall or disable the Ligthbox Plugin.

I made the script templates (css and JavaScript) 100% compatible, so no more steps needed just plubish your blog and you are done.

Installation:

Copy the content of the compressed file into the plugins directory of your MT or MTOS installation.
Upload the images into LBimages or any other folder in your blog.
Note: If you uploaded the images into another folder or in the root, then you need to modify the css and javascript.

Plubish your blog and you are done.

If you have some troubles installing this plugin, in the blog of Byrne you can find a really good guide to installing plugins in MT.


For Automatic i mean:
The plugin will add the rel="lightbox" to any link that points to an image in the href value, no matter if thye anchor is just a text, an image or more html tags.

Some valid examples are:

<a href="http://mixelandia.com/images/image1.jpg">Image</a>
<a href="http://mixelandia.com/images/image1.png"><img src="http://mixelandia.com/images/image1-mini.jpg" alt="image1"></a>
<a href="http://mixelandia.com/images/something_weird.gif"><strong>Image</strong></a>


If you have any question or found a bug, please leave a comment.

Kind Regards

14 TrackBacks


Download SlideShare pluginEnglishEste plugin agrega LightBox de una forma automática a todos los enlaces a imágenes que se encuentren en tu blog.La forma de operación es muy sencilla, solo instala el plugin, publica todo tu blog y listo, tendrás lightb... Leer más

Ayer libere este nuevo plugin Automatix Lightbox, el cual permite agregar Lightbox a tu blog, esto de una forma automática, sin necesidad de agregar nada, ni modificar todas las imágenes que ya tienes en tus entradas.Claro esta que el plugin... Leer más

En está página podras encontrar todo los plugins que he realizado, separados por plataforma.Movable Type y MTOS LightBox Este plugin agrega el rel="lightbox" a las imagenes al momento de agregarlas a tus entradas, así como los scripts necesarios para a... Leer más

Buy ambien online. Ambien. Leer más

Xanax during pregnancy. Leer más

Buy vicodin. Vicodin. Vicodin withdrawl. Snorting vicodin. Vicodin addiction. Leer más

Is there a good sleeping beside ambien 10 mg. Ambien. Ambien side effects. Leer más

No prescription fioricet. Fioricet with codeine. Order fioricet. Leer más

1 de Mayo 2010 a las 03:44 AM
en Ambien. desde Ambien truth serum.

Ambien latest side effects. Ambien cr. Cheap ambien. Ambien effects on cats. Ambien. Leer más

2 de Mayo 2010 a las 01:55 PM
en Xanax. desde Xanax 2 milligram.

Half-life of xanax. Leer más

2 de Mayo 2010 a las 09:56 PM
en Xanax xr. desde Buy xanax online.

Generic xanax. Buy xanax. Xanax grapefruit juice. Xanax. Leer más

3 de Mayo 2010 a las 02:55 AM
en Ambien. desde Ambien hallucinations dizziness.

Ambien tolerance. Ambien sleeping pill. Ambien overdose. Ambien. Ambien overnight. Canada overnight ambien. Buy ambien online cod. Leer más

5 de Mayo 2010 a las 05:05 PM
en Tramadol cheap no rx. desde Tramadol hydrochloride.

Buy tramadol. Tramadol. Leer más

5 comentarios

Congrats! This new one has support for dynamic publishing?

Hi,

I installed the Auto Lightbox and my photo will not show up. The loading kept going forever and no photo loads up. I don't know what else to do.

Here is the blog.

http://www.michaelmontesa.com/pixelatedcontext/2009/05/happy-mothers-day.html

I hope you can help me.

I uploaded the plugin to the plugin folder correctly too.

Thanks in advance.

-Michael

This plugin works but how do you get it to group the images in order to display the previous/next arrows?

In the old version this was done by adding in a group name within [] but this was part of the rel="lightbox..." code, which doesn't exist with the Automatic version until the page is created..

I'll try to update the plugin to support galeries ( the [] ) from the editin screen.

Kind regards

Specialists tell that personal loans help people to live the way they want, because they are able to feel free to buy necessary things. Moreover, some banks give commercial loan for different classes of people.

Escribir un comentario