TopBox One lightbox to rule them all.
I wasted hours trying to get the XXXXXXXX lightbox stack to work, and even the developer gave up replying to my emails. I found your TopBox stack by chance on the RapidWeaver forums, and was astounded at the ease of setup and functionality. Thank you for putting together such a brilliant lightbox stack that actually works!There are dozens and dozens of different lightbox effects available, many of which can be used successfully with RapidWeaver. However some of these are difficult to setup and pull in a huge codebase - sometimes several hundred kilobytes of extra code and graphics. If you are building a website that makes heavy use of lightboxes (such as a video gallery or photography portfolio), using a mainstream lightbox effect like MediaBox Advanced would be a wise move, and help automate your workflow.
Peter
However on the other hand, if you are seeking to just setup a handful of basic lightboxes and you want complete control over the style and functionality, TopBox may be exactly what you've been looking for. Unlike other copy-and-paste solutions, TopBox was specifically designed and developed exclusively for RapidWeaver (meaning you will not find TopBox anywhere else). It takes into account the harsh, mixed-script environment RapidWeaver poses and promises a robust yet customisable lightbox solution. TopBox is ideal for quickly setting up some basic lightbox effects on a page, and works great with many different content types and web browsers. Here are some working examples of TopBox:
Examples
Styled Text Content
Drag and drop basic stacks into your TopBox content region, such as styled text, floating images, HTML code, columns and floats. Mix and match different content types together like text and images. You can also create links to other pages, site resources or external pages. No code required.
Aliquet House Salcombe, South Devon
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet. Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet. Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet. Read more...
At a glance
Reference Number: 78DVZ8Bedrooms: 2
Sleeps: 4
Dogs allowed: No
Changeover day: Saturday
Travel Cot: Yes
Highchair: Yes
Features
- Stunning sea views
- Located in a quiet side-street
- Enclosed rear garden
- Private parking space
- Pub & shops 2 minute walk
- Spacious rooms
- Satellite television & broadband
£540 7 days
Check availability
Contact the owner
Photographs
Lightboxes are primarily used for the display of photographs and other artwork. TopBox is no exception and boasts excellent image support. You can either drag and drop an image directly into the TopBox placeholder, or use the settings provided in the new background module. Alongside support for solid colour fills and CSS gradients, you can opt to use an image stored on your computer or an image already stored online. The benefit of these latter two options are that the image gets applied as a background and no modifications or conversions are applied to the image. So what you see is what you get in the published website. Images get preloaded, so there is no delay between the TopBox opening and the image getting displayed.iFramed Content
The iFrame module supplied with TopBox allows you to easily embed the content from other websites safely within a TopBox. In the iFrame Module, tick the Display An iFrame option to enable the iFrame display. Then enter the URL of your iFramed content. In this instance, the iFrame padding was left at 0px, and the iFrame width and height was set to equal the size of the TopBox (1000px wide and 600px tall).YouTube
TopBox now has good support for YouTube video's presented in either Flash or HTML5 format. When you get the option to embed a YouTube video, copy the link shown in the YouTube embed code (e.g.http://www.youtube.com/embed/Ab0pTVlDbsg). Switch on the iFrame module in TopBox and paste the video URL into the iFrame URL field. Then set the iFrame to the same width and height dimensions as the video (e.g. 853px wide and 480px tall). And that is about all there is to it.
YouTube & Content Combined
It is possible to mix both an iFrame (such as an embedded YouTube video) and some stacks content together, to create a content-rich lightbox. In this instance, a YouTube video was setup using the same procedure in the previous TopBox example. However this time, the TopBox height was set to 700px and the iFrame height was retained at 400px for the YouTube video. The whitespace created below the video enables text or image stacks to be dropped in. So now while the video is being watched, a user can read some other content or click some links for further information.
Metronomy
Metronomy are an electronic music group formed by Joseph Mount in Totnes, Devon, England in 1999. The current band consists of Joseph Mount (composer, singer, keyboards and guitar), Anna Prior (drums and vocals), Oscar Cash (saxophone, backing vocals, guitars and keyboards) and Gbenga Adelekan (bass guitar and vocals). Their music consists of instrumental electronic music and more recently, with the release of Nights Out, vocal electronic pop music. Mount also releases remixes under the name Metronomy, and has remixed many artists including Gorillaz, Roots Manuva, Franz Ferdinand, Klaxons, Goldfrapp, The Young Knives, Zero 7, Ladytron, Kate Nash, Lady Gaga and Lykke Li.Artist YouTube Link: Metronomy
Artist website: Click here
Vimeo
Vimeo supports high-resolution video in both Flash and HTML5 format. Using the iFrame module in TopBox, you can embed a Vimeo video easily and have it open within the lightbox. To do this, switch on the iFrame module and copy the URL in the embed code, which Vimeo provides (typically the URL looks likehttp://player.vimeo.com/video/1431195?title=0&byline=0&portrait=0). Paste this URL into the iFrame URL field and change the iFrame width and height to match the video size (e.g. 800px wide and 450px tall). TopBox can be set to the same dimensions. The TopBox close button can be moved if it interferes with player controls.
Blip.tv
Blip.tv is a fascinating new video sharing website, hosting a wealth of interesting video's produced by professional and up-and-coming producers. The website features a wide variety of dramas, comedies, arts, sports and other shows, many of which can be shared or embedded freely within a website. TopBox supports Blip.tv content in both Flash and HTML5 format. To embed a Blip.tv video in TopBox, click the Share link, under to the video you want to use. In the Embed Episode box, copy the video URL, which would look something likehttp://blip.tv/play/AYLdxW8C.html. Switch on the iFrame module in TopBox, and paste that URL into the iFrame URL box. That will provide playback support for HTML5, and in theory, if HTML5 playback is not available, the video defaults back to Flash (SWF) format.
Google Maps
Google Maps is an excellent service for displaying maps on your website - ideal for both personal and commercial use. To embed a Google Map in TopBox, start by going to the Google Maps website. Find the map you want to use, and apply any other items like map pins or routes. Then in the top right corner (above the map viewer) click on the small chain button marked Link. Then click on the Customise and preview embedded map link (here you can customise the size of the map and see a preview of it). Copy the generated HTML embed code and paste this into a plain text editor. Switch on the iFrame module in TopBox, and set the both the TopBox and iFrame to the same size as the map (e.g. 800px wide and 600px tall). In the embed code (the same code you pasted into your code editor), extract the map URL - this will usually be a very long string of addresses, letters and numbers inside thesrc=" " source attribute. That is the URL to paste into the iFrame URL box, within the TopBox settings.
Website Terms & Conditions
Displaying terms and conditions, a privacy policy or an end user license agreement is almost an essential requirement on any website. In this example, the TopBox stack was used with a HTML code stack, containing<div style="width:500px; height:500px; overflow:scroll; border:1px solid #cdcdcd;"></div>. This code creates a simple box with scrollbars, 500px wide and 500px tall, in which the content is added (content goes before the closing </div> tag). The TopBox was set to 520px wide and 560px tall, with 20px of internal padding applied. Finally a link was added below the scroll box using this code: <a href="http://www.example.com/" class="topboxClose">I have read and understand the terms and conditions.</a>. This code links forwards to another webpage, and the class attribute class="topboxClose" ensures the TopBox is fully closed, when clicked.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et erat ut lectus fermentum tincidunt. Donec sed leo risus. Sed ut eros mi, a pellentesque purus. Donec leo elit, facilisis euismod accumsan in, mollis vel massa. Donec at turpis massa, nec tincidunt erat. In venenatis dolor sem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam euismod egestas facilisis. Aenean vestibulum sapien nec libero imperdiet semper. In risus nulla, eleifend at pharetra sodales, consectetur non justo. Phasellus faucibus, leo eget blandit semper, augue felis ullamcorper lectus, vel luctus urna quam quis nunc. Nullam vel nibh sit amet felis tincidunt convallis eu nec purus. Sed tempor velit ut nulla pretium sodales. Quisque dapibus massa non velit elementum quis aliquam nibh pharetra. In arcu mauris, bibendum eget laoreet at, congue vitae tortor.
Aenean sed lacus vitae ante sagittis pellentesque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam mattis velit sed odio sollicitudin dapibus. Aenean pellentesque lectus quis quam hendrerit vel rhoncus augue facilisis. Aenean tempus malesuada augue vitae commodo. Etiam sed lorem dolor, et congue mauris. Nullam sit amet erat nisl, ac imperdiet dolor. Donec vel ligula odio. Maecenas pretium leo sit amet libero vulputate molestie in at arcu. Suspendisse potenti. Maecenas pellentesque, dolor id scelerisque vehicula, magna dolor luctus lectus, ut ornare lectus ipsum ut ligula. Aenean ante libero, consectetur vel ultricies quis, feugiat sed lorem. Aenean sollicitudin erat quis massa imperdiet et malesuada dui malesuada. Ut id augue nisi, nec placerat ligula. Sed imperdiet neque eget nibh hendrerit accumsan. In eget dolor sem, quis volutpat urna. Proin tempor nunc vitae felis iaculis bibendum.
Sed lacinia, velit vitae gravida egestas, mauris ipsum varius justo, vitae tincidunt felis erat vitae odio. Aenean lorem orci, rhoncus a tincidunt sed, aliquet vitae odio. Nullam ac quam sit amet lacus posuere molestie in quis sapien. Etiam sed erat massa. Maecenas quis elit a mi pellentesque fringilla. Phasellus id velit arcu. Suspendisse pretium rutrum pulvinar. Donec enim turpis, iaculis nec imperdiet at, suscipit eu mauris. Duis luctus venenatis dolor, sed feugiat eros varius mollis. Nunc tincidunt pharetra lorem non convallis. Nulla consequat luctus enim quis varius.
Aliquam id imperdiet tellus. Nam id turpis mauris. Sed vel odio felis. Quisque blandit, est quis vulputate commodo, dolor dui molestie justo, ac posuere diam sem quis tellus. Suspendisse in luctus nibh. Donec porttitor ante nec nunc volutpat vehicula. Nunc nec malesuada enim. Nunc tristique, massa eget vehicula sodales, magna velit tincidunt tellus, interdum vulputate magna tortor sed leo. Praesent dignissim mi sit amet dolor pulvinar quis pellentesque urna cursus. Nam ultricies felis varius arcu pulvinar quis ultricies erat aliquet. Duis non lectus eu massa pharetra pharetra consectetur vitae massa. Nulla facilisi. Cras sed nunc nunc, ac euismod odio. Integer convallis, nisl id ullamcorper volutpat, ligula risus suscipit orci, non gravida magna urna eu urna.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vehicula nulla id nisi laoreet id mattis ante bibendum. Aliquam eget dui id urna bibendum dapibus. Suspendisse potenti. Pellentesque tempor tristique dui. Maecenas arcu tellus, varius at dictum at, adipiscing sed ante. Donec nec sapien justo, volutpat eleifend purus. Aenean quis leo id erat feugiat lobortis. Fusce sed nisi tellus, laoreet ultricies felis. Nam eget lorem erat. Etiam in sapien leo, et ultricies nibh. Suspendisse potenti. Nulla quam lectus, dignissim nec blandit at, hendrerit euismod dui. Integer tincidunt, purus sit amet dictum ullamcorper, augue massa porttitor lorem, non commodo tortor nunc in massa. Nam sodales, risus in scelerisque lobortis, est leo ultricies lorem, et malesuada mauris orci at quam. Quisque et lacinia libero.
Aenean sed lacus vitae ante sagittis pellentesque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam mattis velit sed odio sollicitudin dapibus. Aenean pellentesque lectus quis quam hendrerit vel rhoncus augue facilisis. Aenean tempus malesuada augue vitae commodo. Etiam sed lorem dolor, et congue mauris. Nullam sit amet erat nisl, ac imperdiet dolor. Donec vel ligula odio. Maecenas pretium leo sit amet libero vulputate molestie in at arcu. Suspendisse potenti. Maecenas pellentesque, dolor id scelerisque vehicula, magna dolor luctus lectus, ut ornare lectus ipsum ut ligula. Aenean ante libero, consectetur vel ultricies quis, feugiat sed lorem. Aenean sollicitudin erat quis massa imperdiet et malesuada dui malesuada. Ut id augue nisi, nec placerat ligula. Sed imperdiet neque eget nibh hendrerit accumsan. In eget dolor sem, quis volutpat urna. Proin tempor nunc vitae felis iaculis bibendum.
Sed lacinia, velit vitae gravida egestas, mauris ipsum varius justo, vitae tincidunt felis erat vitae odio. Aenean lorem orci, rhoncus a tincidunt sed, aliquet vitae odio. Nullam ac quam sit amet lacus posuere molestie in quis sapien. Etiam sed erat massa. Maecenas quis elit a mi pellentesque fringilla. Phasellus id velit arcu. Suspendisse pretium rutrum pulvinar. Donec enim turpis, iaculis nec imperdiet at, suscipit eu mauris. Duis luctus venenatis dolor, sed feugiat eros varius mollis. Nunc tincidunt pharetra lorem non convallis. Nulla consequat luctus enim quis varius.
Aliquam id imperdiet tellus. Nam id turpis mauris. Sed vel odio felis. Quisque blandit, est quis vulputate commodo, dolor dui molestie justo, ac posuere diam sem quis tellus. Suspendisse in luctus nibh. Donec porttitor ante nec nunc volutpat vehicula. Nunc nec malesuada enim. Nunc tristique, massa eget vehicula sodales, magna velit tincidunt tellus, interdum vulputate magna tortor sed leo. Praesent dignissim mi sit amet dolor pulvinar quis pellentesque urna cursus. Nam ultricies felis varius arcu pulvinar quis ultricies erat aliquet. Duis non lectus eu massa pharetra pharetra consectetur vitae massa. Nulla facilisi. Cras sed nunc nunc, ac euismod odio. Integer convallis, nisl id ullamcorper volutpat, ligula risus suscipit orci, non gravida magna urna eu urna.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vehicula nulla id nisi laoreet id mattis ante bibendum. Aliquam eget dui id urna bibendum dapibus. Suspendisse potenti. Pellentesque tempor tristique dui. Maecenas arcu tellus, varius at dictum at, adipiscing sed ante. Donec nec sapien justo, volutpat eleifend purus. Aenean quis leo id erat feugiat lobortis. Fusce sed nisi tellus, laoreet ultricies felis. Nam eget lorem erat. Etiam in sapien leo, et ultricies nibh. Suspendisse potenti. Nulla quam lectus, dignissim nec blandit at, hendrerit euismod dui. Integer tincidunt, purus sit amet dictum ullamcorper, augue massa porttitor lorem, non commodo tortor nunc in massa. Nam sodales, risus in scelerisque lobortis, est leo ultricies lorem, et malesuada mauris orci at quam. Quisque et lacinia libero.
I have read and understand the terms and conditions.
Images And Captions
Using stacks like the ImageCaption stack inside the TopBox (the ImageCaption stack is not included with TopBox), it is possible to create a highly effect image and caption combination with ease. Simply drop an ImageCaption stack into the TopBox content container, and set it to the same height as your caption. Now you have a powerful method of pulling images into your website and applying beautiful and professional captions to them.Slideshows
With some skill and a good quality slideshow stack (or RapidWeaver plugin @imported using PlusKit), you can nest a slideshow within a TopBox window. This can be used to create an attractive means displaying several images, possibly with the option of navigation buttons and captions. In this example, the excellent Image Slider stack by Greg Barchard was used. With some minor CSS amendments and careful adjustment of the Image Slider and TopBox settings, an example like this can be created. This CSS code was used in the page, to tweak the slideshow alignment and improve its display in the TopBox:.flexslider {
width: 600px !important;
height: 399px !important;
left: 0px !important;
}
ul.slides li {
height: 399px !important;
}
Not all slideshow stacks or plugins are compatible with TopBox. It would be very wise to get hold of several slideshow stacks and test them against the demo version of TopBox, if you specifically intend to use Topbox for displaying slideshows. That way, you can find a good one which works. It may also be feasible to host a slideshow on its own page, and embed it in TopBox using the iFrame module.
PDF's
Using the free Embed stack inside TopBox, you can safely embed PDF files, like forms, sales brochures, scanned documents and other types of literature. Most web browsers will display the complete PDF file in the TopBox, complete with the normal controls for saving, downloading or printing the PDF. Web browsers which are configured not to display PDF's or are unable to render them will display an alternative link instead, which can be clicked to download the PDF from source.In this example, an embed stack was dragged into the TopBox and set to 700px wide and 700px tall. The link was set to the PDF file, already uploaded to a web server. Then the TopBox stack was configured with a matching width and height of 700px, and internal padding was switched to 0px. TopBox preloads the PDF file when possible, so there is no delay between TopBox opening and the PDF file displaying.
Visitor Surveys
You can use a service like Google Doc's to create simple online surveys very easily, without any complicated code or plugins. When a user submits the survey, the data gets stored in a spreadsheet, and is ready to be viewed or processed.To create the survey, log into your Google Doc's account and click on the New button. From the list of new documents, click and choose Forms in the menu. In the new window which opens, construct your web form. When finished, click More Actions in the top menu, and then click Embed. Copy the single line of iFrame code that Google provides. Back in RapidWeaver, create a new TopBox and place an HTML stack inside the TopBox content placeholder. Then paste your Google iFrame code into the HTML stack. The TopBox can be customised further, if required.
TopBox Sets
TopBox 2 now enables you to display backwards and forwards arrows, chaining multiple TopBoxes together. These customisable images act has links to either the previous or next TopBox. To setup these arrows, tick and enable either the Forwards Link Module or the Backwards Link Module for your selected TopBox. Specify the ID of the TopBox you wish to link to, then drop a suitable icon or arrow button into the image well (TopBox comes supplied with some example arrow images). Now a user is able to navigate through a set of TopBoxes, as this example of ten images demonstrates.Setup
- Drag and drop a TopBox stack into your page. Drag and drop some content into the trigger region and drop some content into the TopBox region. You can use almost any type of content you want.
- In the TopBox settings, increment the TopBox ID number, if another TopBox is already using the same ID on that page. It is important every TopBox has a unique ID, to prevent multiple TopBoxes getting triggered at the same time.
- Change the width and height dimensions, if required. Feel free to change any of the animation open and close settings. Likewise you can also customise the shade fill, TopBox fill, CSS border radius or internal padding.
- Use any of the optional modules to inject extra functionality into your TopBox. For example, setup a close button, navigation buttons between TopBoxes, or an iFrame
From this point onwards, you will have a basic TopBox working in your page. TopBoxes can be triggered via two methods, either by clicking content in the optional trigger region, or by adding
class="topbox#" to any element in the page (replacing hash '#' for the TopBox ID number).Introducing TopBox Modules
TopBox modules provide a set of specific tools to enhance a TopBox and provide additional functionality beyond the basics. Modules are new in TopBox 2.0 and can be accessed from under the Stack settings, in the righthand panel. In some instances, modules like the Background module provide additional styling, whereas other modules like the button controls and iFrame module add extra functionality to TopBoxes, without a need for extra code. Here is some more information about each module available:Background Module
The Background module provides you with 5 powerful background options for the TopBox window; solid colour, vertical gradient, horizontal gradient, local image, and warehoused image. Each background effect is applied as a CSS background on the TopBox window, so you can still display content (like text) in front of the background. This new background module opens up some fantastic possibilities for customising your TopBoxes and creating a real 'wow' factor. Solid colours and gradients look great for presenting text against. Options to use a background image (either from a picture on your computer or from a picture already stored online) enables you to showcase beautiful, engaging photographs and other graphics.Close Button Module
Normally anyone can close a TopBox by clicking the window shade or hitting the escape key, on their keyboard. If you want to provide a conventional close button, use this Close Button Module. Start off by ticking the Display Close Button checkbox. Drag and drop a suitable icon or button image into the image well (note that TopBox installs some example buttons in the Stacks Media panel).By default, the close button is displayed at the top right of the TopBox. You can change the horizontal and vertical position in the select menu's and also adjust the amount of margin that surrounds the close button. When clicked, the close button automatically fades-out that particular TopBox and the window shade.
Backwards Link Module
The backwards link module enables you to display an button, which acts as a link to the previous TopBox. This much-requested feature means that and end user is able to navigate backwards or forwards through a given set of TopBoxes.To use this module, tick the checkbox to enable it. In the TopBox ID box, enter the ID of the TopBox you wish to link back to. Drag and drop a suitable image into the image well in the stack settings (TopBox installs some example buttons in the Stacks Media panel). The position and margin of this new image button you add can be changed using the provided settings. Now when the TopBox is open, a button gets displayed which will take a user back to the previous TopBox, when clicked.
Forwards Link Module
The forwards link module works in much the same way as the backwards link module, and enables you to display a button, which acts as a link to the news TopBox in a given set.To use this module, tick the checkbox to enable it. In the TopBox ID box, enter the ID of the TopBox you wish to link forward to. Drag and drop a suitable image into the image well in the stack settings (TopBox installs some example buttons in the Stacks Media panel). The position and margin of this new image button you add can be changed using the provided settings. Now when the TopBox is open, a button gets displayed which will take a user forward to the next TopBox, when clicked.
iFrame Module
This is probably the most powerful module included with TopBox and has infinite uses. Primarily the iFrame module can be used to pull in pages from other websites, and safely embed these within your current page. It can also be used to embed video content and video's served by other content providers like YouTube and Vimeo. There are some good examples above.Geek blurb: The iFrame code gets generated by the browser DOM using some clever jQuery code. This means that iFramed content is excluded from pre-loading, until the particular TopBox is triggered. Likewise the playback of any Flash video content or streaming is instantly terminated when the TopBox is closed.
iOS Support
Creating lightboxes which work on iOS devices like the iPhone, iPad and iPod is no easy task. Firstly these devices have small screen resolutions, compared with a normal computer. Secondly these devices lack certain CSS support, likeposition:fixed making the placement of lightboxes very difficult. Compared to other lightbox scripts, TopBox is about one of the most compatible lightbox plugins out there, for use with iOS devices. Users of these devices are able to click and open a TopBox, much the same as a person on a regular web browser can. A user is also able to double-tap and scale content within the TopBox, and pan around on content which extends outside of the viewport. About the only difference you will notice is that opening TopBoxes appear at the top of a page, and the page automatically jumps to the top when a TopBox is triggered. Remember that some content types like Flash are not supported on iOS devices, and you may see differences in the way other content types like YouTube and PDF's are handled.Most experts still recommend that if you are serious about delivering optimised content for iOS devices, you use the Mobilize plugin by Nimblehost and a dedicated iOS RapidWeaver theme. There will be several brand new iOS RapidWeaver themes becoming available in early 2012.






































