Lytebox blade pack

The place for all your own modifications

Lytebox blade pack

Postby Adminer » Sun Mar 07, 2010 6:54 pm

Installs the Lytebox Engine (http://www.dolem.com/lytebox/) to display photo gallery images, external sites etc, all in a page in page window with transition effects. Bladepack based on one blade pack made by Cryptor.

http://tinyurl.com/y98k3sm

Usage: readme.txt


Tutorial, how to use that blade.
Create a new test page in RazorCMS.
Put [copy and paste] inside that code:

Code: Select all
<p>
   <a href="images/razor_editor.jpg" rel="lytebox[editors]" title="Razor">Razor</a><br />
   <br />
   <a href="images/fckeditor.jpg" rel="lytebox[editors]" title="FCKeditor">FCKeditor</a><br />
   <br />
   <a href="images/razor_editor.jpg" rel="lyteshow[editors]" title="Razor">Razor</a><br />
   <br />
   <a href="images/fckeditor.jpg" rel="lyteshow[editors]" title="FCKeditor">FCKeditor</a><br />
   <br />
   <a href="http://www.geuzen.org/cgi-bin/shmoogle/shmoogle_form.cgi" rel="lyteframe" rev="width: 800px; height: 600px; scrolling: yes;" title="Search Shmoogle">Shmoogle Search</a>

<br />
<br />
<iframe height="600" width="700" src="http://127.0.0.1:4001/razor/gb/index.php" title="GuestBook" ></iframe>

<br />
<a href="http://127.0.0.1:4001/razor/gb/index.php" rel="lyteframe[guestbook]" rev="width: 800px; height: 450px; scrolling: yes;" title="GuestBook"><br />
   GuestBook</a><br />
   <br />

   <a href="http://127.0.0.1:4001/razor/blocks/index.php" rel="lyteframe[comments]" rev="width: 800px; height: 600px; scrolling: yes;" title="Comments">Comments</a><br />
   <br />

<iframe height="400" width="700" src="http://127.0.0.1:4001/razor/blocks/index.php" title="Comments"></iframe>
<br />
<br />

   Note: When using the "Lyteframe" feature, the REV attribute is used to control the width, height, and scrolling of the window. If the REV attribute is omitted, then by default width/height is set to 400px and scrolling is set to auto.</p>
<p>
    </p>
<p>
   Lytebox can be configured by editing the main JavaScript file, lytebox.js. Shown below are the lines in lytebox.js which are configurable. The comments (text following the "//" characters) are fairly self-explanatory, so I won't go into any further detail.</p>
<p>
   /*** Start Global Configuration ***/</p>
<p>
   this.theme = 'grey'; // themes: grey (default), red, green, blue, gold<br />
   this.hideFlash = true; // controls whether or not Flash objects should be hidden<br />
   this.outerBorder = false; // controls whether to show the outer grey (or theme) border<br />
   this.resizeSpeed = 8; // controls the speed of the image resizing (1=slowest and 10=fastest)<br />
   this.maxOpacity = 80; // higher opacity = darker overlay, lower opacity = lighter overlay<br />
   this.navType = 1; // 1 = "Prev/Next" buttons on top left and left (default), 2 = "<< prev | next >>" links next to image number<br />
   this.autoResize = true; // controls whether or not images should be resized if larger than the browser window dimensions<br />
   this.doAnimations = true; // controls whether or not "animate" Lytebox, i.e. resize transition between images, fade in/out effects, etc. this.borderSize = 12; // if you adjust the padding in the CSS, you will need to update this variable -- otherwise, leave this alone...</p>
<p>
   /*** End Global Configuration ***/</p>
<p>
   /*** Configure Slideshow Options ***/<br />
   this.slideInterval = 10000; // Change value (milliseconds) to increase/decrease the time between "slides" (10000 = 10 seconds)<br />
   this.showNavigation = true; // true to display Next/Prev buttons/text during slideshow, false to hide<br />
   this.showClose = true; // true to display the Close button, false to hide<br />
   this.showDetails = true; // true to display image details (caption, count), false to hide<br />
   this.showPlayPause = true; // true to display pause/play buttons next to close button, false to hide<br />
   this.autoEnd = true; // true to automatically close Lytebox after the last image is reached, false to keep open<br />
   this.pauseOnNextClick = false; // true to pause the slideshow when the "Next" button is clicked<br />
   this.pauseOnPrevClick = true; // true to pause the slideshow when the "Prev" button is clicked</p>
<p>
   /*** End Slideshow Configuration ***/</p>
<p>
   <span class="red">iFrames:</span> If you plan to use Lytebox in an iFrame environment, then you need to include <span class="code">lytebox.css</span> in the parent document, while including <span class="code">lytebox.js</span> in the iFrame document.</p>



Hint:

Now, create 'images' folder with sample photos razor_editor.jpg and fckeditor.jpg in your razorcms directory:

Test your link: http://www.mysite.org/images/razor_editor.jpg
If you can see your photo - ok.

Download guestbook script from that link:
http://www.jemjabella.co.uk/downloads/BellaBook.zip

Read carefuly all manual for that Bellabook script.
Create 'gb' folder in RazorCMS directory near 'images'.

Unpack Bellabook.zip inside 'gb' folder.
Configure BellaBook prefs.php file: password, directory...etc.

Change on that test page my own link:
http://127.0.0.1:4001/razor/gb/index.php
on
http://mysite.org/gb/index.php

Save that page in RazorCMS, and test, how it works.

Look, how that blade works in single frame, and without frame,
using Lytebox.

Do the same with Bella blocks script, and change that link
http://127.0.0.1:4001/razor/blocks/index.php
on your own directory, on your test page.

Regards
Last edited by Adminer on Sat Mar 27, 2010 5:37 pm, edited 1 time in total.
Adminer
 
Posts: 231
Joined: Wed Apr 08, 2009 9:52 pm
Location: Poland

Re: Lytebox blade pack

Postby Jancos » Wed Mar 10, 2010 10:58 pm

HI !

Thanks a lot Adminer.
Its works very well !
Jancos
 
Posts: 5
Joined: Tue Sep 22, 2009 8:42 pm

Re: Lytebox blade pack

Postby Crypt0r » Thu Mar 11, 2010 9:47 pm

Hey,

Didn't try it yet but I will.

In what extend does this base on my BP?
www.techgeek.at

Supporting in english, german and hungarian.
Crypt0r
Global Moderator
 
Posts: 226
Joined: Wed Mar 11, 2009 4:40 pm
Location: Austria, Vienna

Re: Lytebox blade pack

Postby Adminer » Fri Mar 12, 2010 12:32 pm

Crypt0r wrote:Hey,

Didn't try it yet but I will.

In what extend does this base on my BP?


Jancos was asking me in pm about his problem with Lytebox in RazorCMS - so
I have learned how do you made your shadowbox blade pack, and do the same in 5 minutes :-)
If you don't need lightwindow (www helpdesk was down) - it's may be a simple solution for nice displaing photos and the others pages in html or php, inside
RazorCMS area, with waiting for Razor blade pack from Paul or the others php programers here.

Regards
Adminer
 
Posts: 231
Joined: Wed Apr 08, 2009 9:52 pm
Location: Poland

Re: Lytebox blade pack

Postby Adminer » Thu Jul 29, 2010 5:01 pm

andrew39 wrote:I’ve tried the modification, and there seems to be a little bug while using Firefox:
You can see the cursor blinking. And when you click on next or prev, the cursor is blinking over the whole image…
This doesnt happen in IE7, only in Firefox


Press F7 on your FF (Caret Browsing). Please, test and tell me how it works.

Regards
Adminer
 
Posts: 231
Joined: Wed Apr 08, 2009 9:52 pm
Location: Poland


Return to Your mods

Who is online

Users browsing this forum: No registered users and 1 guest