I just got lytebox working... was pretty easy after thinking about it for a
while.  Worked basically the first time I tried it.  Packaging it up might
be interesting though as I used the same config that I used on my other
sites and had hacked the original lytebox CSS and JS to work properly where
I placed it.  This was to keep it self contained in its own directory away
from other code so it was more portable.

Most likely will just post the plugin without the Lytebox code and let the
user figure that out with some tips.

Right now, like most of my other sites, the lytebox stuff is located in the
webroot /lytebox so I have excluded that in my .htaccess from rewriting (I
use cleanURL).

I had to add two lines to the top of the skin to include the CSS and JS that
lytebox uses because I couldn't figure out how to optionally add it
properly.

<script type="text/javascript" language="javascript"
src="lytebox/lytebox.js"></script>
<link rel="stylesheet" href="lytebox/lytebox.css" type="text/css"
media="screen" />

Located in the HEAD section...

The plugin sets up a call like:

[(lytebox rev='width: 640px; height: 670px; scrolling: no;'  url='
http://sitename/content' img='/images/image.jpg' )]

Required Options:

    rev - Must contain rev coding
    url - Must contain URL of in to display when activated
    img - Must contain image to show before action

There are some optional arguments to adjust the image displayed as well:

    width - Width of img to display
    height - Height of img to display

When used, the output is generated with BOLTescape and uses normal html to
generate the links.  The img is displayed for the link and when clicked on,
the url is activated.  The url could be a larger version of the same image
or a whole page containing other content.  If one of the required options is
missing an error is output instead of the link/image.

Info about Lytebox: http://www.dolem.com/lytebox/

I am using a much older version of it though... need to update.

--

You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.


Reply via email to