Total Users Online: 0 üye, 69 guest | Tarih/Saat: 2026-04-21 12:44
Lightbox BBCode
Lightbox BBCode for seditio is meant for admins only.
Lightbox BBCode
Lightbox BBCode for seditio is meant for admins only. I use it for reviews of products.
You need to have 2 images: An ordinary image and a thumbnail.
When You click on the thumbnail, the ordinary image pops up centered - se demo.
Also there is a link version available.

How to do the modifications:
Download the zip file from here: http://www.huddletogether.com/pr.....#download
- From the images folder You upload loading.gif and close.gif to root/images
- From the images folder You upload: nextlabel.gif and prevlabel.gif to root/theme/images
- Upload the js folder to root
- Add following at the bottom theme/skins.css:
Kod:
    #lightbox{   position: absolute;   left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
    #lightbox img{ width: auto; height: auto;}
    #lightbox a img{ border: none; }

    #outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
    #imageContainer{ padding: 10px; }

    #loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
    #hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
    #imageContainer>#hoverNav{ left: 0;}
    #hoverNav a{ outline: none;}

    #prevLink, #nextLink{ width: 49%; height: 100%; background-image: url('data:image/gif;base64,AAAA'); /* Trick IE into showing hover */ display: block; }
    #prevLink { left: 0; float: left;}
    #nextLink { right: 0; float: right;}
    #prevLink:hover, #prevLink:visited:hover { background: url("{T_THEME_PATH}/images/prevlabel.gif") left 15% no-repeat; }
    #nextLink:hover, #nextLink:visited:hover { background: url("{T_THEME_PATH}/images/nextlabel.gif") right 15% no-repeat; }

    #imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100%   ; }

    #imageData{   padding:0 10px; color: #666; }
    #imageData #imageDetails{ width: 70%; float: left; text-align: left; }   
    #imageData #caption{ font-weight: bold;   }
    #imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em;   }         
    #imageData #bottomNavClose{ width: 66px; float: right;  padding-bottom: 0.7em; outline: none;}       

    #overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }

Add the following code before </head> in both header.tpl:
Kod:
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.jsşload=effects,builder"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
]
How to create the BBCode for the easy single image version
Create this BBCode in ACP:
BBCode:
Kod:
    [light1=URL1]URL2[/light1]

:
tml]'\\[light1=([^\\\'\;\ş([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/light1\\]' => '<a href="\\3.\\4" rel="lightbox"><img style="border: 1px solid black;" src="\\1.\\2" alt="" /></a>',

How to create the BBCode for the linked image version
Create this BBCode in ACP:
Kod:
[light2={URL}]{TEXT}[/light2]
    <a href="{URL}" rel="lightbox" title="Click to see image">{TEXT}</a>
    [light2=http://stokershoppen.dk/bbcodes/images/billede19.jpg]Check this link![/light2]
    [light2=http://www.dynamicdrive.com/dynamicindex4/listenmusic.jpg]Link to external image[/light2]

How to create the BBCode for the easy group image version
Create this BBCode in ACP:
BBCode:
Kod:
    [lightgroup={URL1}]{URL2}[/lightgroup]
    <a href="{URL1}" rel="lightboxgroup"><img style="border: 1px solid black;" alt="" title="" src="{URL2}" /></a>

şrnek:
Kod:
    [lightgroup=http://www.bbcodes.com/images/billede16.jpg]http://www.bbcodes.com/images/billede16lille.jpg[/lightgroup]    [lightgroup=http://www.bbcodes.com/images/billede6.jpg]http://www.bbcodes.com/images/billede6lille.jpg[/lightgroup]
    [lightgroup=http://www.bbcodes.com/images/billede8.jpg]http://www.bbcodes.com/images/billede8lille.jpg[/lightgroup]    [lightgroup=http://www.bbcodes.com/images/billede1.jpg]http://www.bbcodes.com/images/billede1lille.jpg[/lightgroup]

Henüz yorum yapılmamıştır.
Lightbox BBCode
Author: Kaan
Date: 2010-11-09 00:22
Comments: (0)
Benzer SayfalarYorum
NOTE BBCODE0
BBCODE PARSER V22
Textarea BBCode0
Inline code BBCode0
IE Only BBCode0
Letter Spacing BBCode0
System Info BBCode0
Ekstra Qoute BBCode0
Typo Code BBcode0
Highlight Text BBCode0
 
Powered by Seditio © 2009-2012 All Rights Reserved