Image Gallery

kuzco

Avatar: kuzco

2011-12-16 09:23

Hello,
I have create am image gallery with "Image Gallery Maker" to show the picture on a dedicated page.
So far so good, when clicking on the page you will see all thumbs and descriptions.

Unfortunately there exists a difference between InternetExplorer and Firefox.
When using Firefox, you can open a picture and can go forward and backward (lightbox is working well), but when using InternetExplorer I have some problems. When clicking a thumb the picture will be shown in a new IW windows and there is no way to go backward and forward.

Here is an example of the page:

<?php
<p>
    &
nbsp;</p>
<
p>
    &
nbsp;</p>
<
p>
    <
meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
</
p>
<
p>
    &
nbsp;</p>
<
p>
    &
nbsp;</p>
<
p>
    <
title></title>
</
p>
<
p>
    &
nbsp;</p>
<
p>
    &
nbsp;</p>
<
p>
    <
meta content="Sándor Veress: Image Gallery Maker" name="generator" />
    <!--Include 
this rows in your headerSTART--><script type="text/javascript" src="IGM/prototype.js"></script><script type="text/javascript" src="IGM/scriptaculous.js?load=effects,builder"></script><script type="text/javascript" src="IGM/lightbox.js"></script></p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <link href="IGM/lightbox.css" media="screen" rel="stylesheet" type="text/css" />
</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    <link href="IGM/library/svigm.css" rel="stylesheet" type="text/css" />
    <!--Include this rows in your header: END--><!--Gallery START--></p>
<div id="divIGM">
    <table cellpadding="10" cellspacing="5" id="tblThumbsLayout">
        <tbody>
            <tr>
                <td colspan="4" id="topCell">
                    <table border="0" cellpadding="0" cellspacing="0" id="tblGalleryName" width="100%">
                        <tbody>
                            <tr>
                                <td id="galleryNameCell">
                                    15.10.2011 - Lukas, Prinz-Friedrich-Str. 1, 45257 Essen</td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <!-- Image:111015_T2_DSCF0680 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0680.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0680"><img alt="111015_T2_DSCF0680" class="eImage" src="IGM/thumbs/111015_T2_DSCF0680.jpg" title="111015_T2_DSCF0680" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0680</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0681 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0681.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0681"><img alt="111015_T2_DSCF0681" class="eImage" src="IGM/thumbs/111015_T2_DSCF0681.jpg" title="111015_T2_DSCF0681" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0681</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0683 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0683.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0683"><img alt="111015_T2_DSCF0683" class="eImage" src="IGM/thumbs/111015_T2_DSCF0683.jpg" title="111015_T2_DSCF0683" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0683</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0684 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0684.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0684"><img alt="111015_T2_DSCF0684" class="eImage" src="IGM/thumbs/111015_T2_DSCF0684.jpg" title="111015_T2_DSCF0684" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0684</font></p>
                </td>
            </tr>
            <tr>
                <!-- Image:111015_T2_DSCF0685 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0685.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0685"><img alt="111015_T2_DSCF0685" class="eImage" src="IGM/thumbs/111015_T2_DSCF0685.jpg" title="111015_T2_DSCF0685" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0685</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0686 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0686.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0686"><img alt="111015_T2_DSCF0686" class="eImage" src="IGM/thumbs/111015_T2_DSCF0686.jpg" title="111015_T2_DSCF0686" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0686</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0687 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0687.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0687"><img alt="111015_T2_DSCF0687" class="eImage" src="IGM/thumbs/111015_T2_DSCF0687.jpg" title="111015_T2_DSCF0687" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0687</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0688 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0688.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0688"><img alt="111015_T2_DSCF0688" class="eImage" src="IGM/thumbs/111015_T2_DSCF0688.jpg" title="111015_T2_DSCF0688" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0688</font></p>
                </td>
            </tr>
            <tr>
                <!-- Image:111015_T2_DSCF0689 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0689.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0689"><img alt="111015_T2_DSCF0689" class="eImage" src="IGM/thumbs/111015_T2_DSCF0689.jpg" title="111015_T2_DSCF0689" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0689</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0690 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0690.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0690"><img alt="111015_T2_DSCF0690" class="eImage" src="IGM/thumbs/111015_T2_DSCF0690.jpg" title="111015_T2_DSCF0690" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0690</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0691 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0691.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0691"><img alt="111015_T2_DSCF0691" class="eImage" src="IGM/thumbs/111015_T2_DSCF0691.jpg" title="111015_T2_DSCF0691" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0691</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0692 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0692.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0692"><img alt="111015_T2_DSCF0692" class="eImage" src="IGM/thumbs/111015_T2_DSCF0692.jpg" title="111015_T2_DSCF0692" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0692</font></p>
                </td>
            </tr>
            <tr>
                <!-- Image:111015_T2_DSCF0693 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0693.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0693"><img alt="111015_T2_DSCF0693" class="eImage" src="IGM/thumbs/111015_T2_DSCF0693.jpg" title="111015_T2_DSCF0693" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0693</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0694 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0694.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0694"><img alt="111015_T2_DSCF0694" class="eImage" src="IGM/thumbs/111015_T2_DSCF0694.jpg" title="111015_T2_DSCF0694" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0694</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0695 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0695.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0695"><img alt="111015_T2_DSCF0695" class="eImage" src="IGM/thumbs/111015_T2_DSCF0695.jpg" title="111015_T2_DSCF0695" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0695</font></p>
                </td>
                <!-- Image:111015_T2_DSCF0696 -->
                <td class="tdImg">
                    <a href="IGM/photos/111015_T2_DSCF0696.jpg" rel="lightbox[id0]" title="111015_T2_DSCF0696"><img alt="111015_T2_DSCF0696" class="eImage" src="IGM/thumbs/111015_T2_DSCF0696.jpg" title="111015_T2_DSCF0696" /></a>
                    <p align="center">
                        <font class="tdTitle">111015_T2_DSCF0696</font></p>
                </td>
            </tr>
            <tr>
                <td colspan="4" id="pnCell">
                    <a class="pn" href="http://www.digicart.hu/vs_photos/igm/ImageGalleryMaker.html">Created using Image Gallery Maker</a></td>
            </tr>
        </tbody>
    </table>
</div>
<!-- Gallery END -->
?>

» Quick.Cms v3.x

Guido

Avatar: Guido

2011-12-26 12:47

I have another way to create a simple gallery (using lightbox of QuickCart), are you interested? I can copy-paste it here..

(thanks to Baronjon)

qwerious

Avatar: qwerious

2011-12-29 05:59

Hi Guido - yes please! Can you paste your gallery code?

Guido

Avatar: Guido

2011-12-29 11:58

css.php:

/* IMAGES STYLES */
.imagesList{list-style:none;}
.imagesList li{background:inherit;color:#5b5b5b;font-size:0.917em;text-align:center;}
.imagesList li img{border:5px solid #e6e3e3;}
.imagesList li img:hover{border-color:#d7d2d2;}
.imagesList li div{text-align:center;}

#imagesList1{float:left;margin:10px 15px 0 0;}
#imagesList2{float:left;margin:25px 0 0 0;width:100%;}
#imagesList2 li {width:33%; float:left;height:180px;}


(Maximum size of thumb is 150px + title of pic + some space = about 180px high)


pages_default.tpl:

<!-- BEGIN IMAGES_DESCRIPTION_DEFAULT --><div class="desc">$aData[sDescription]</div><!-- END IMAGES_DESCRIPTION_DEFAULT -->

Jupraw

Avatar: Jupraw

2011-12-29 12:20

Guido - rozwiązanie już było, trzeba czytać:

http://opensolution.org/Quick.Cart/forum/galeria-zdjec-w-poziomie-najlepsze-rozwiazanie-na-forum,6901.html

http://opensolution.org/Quick.Cms/forum/zdjecia-w-poziomie,1890.html

Guido

Avatar: Guido

2011-12-29 13:01

Jupraw - graag Engels want Pools kan ik niet lezen.

I mentioned that this code was not mine.

In the code I replaced #imagelist 2 with an image gallery.
I can also give code with #imagelist 3..

Guido

Avatar: Guido

2011-12-29 20:39

Hmm, my previous code was not correct...

1) default.css:

/* IMAGES STYLES */
#imagesList1{float:left;margin:10px 10px 0 0;}
#imagesList2{float:left;margin:10px 0 0 0;width:100%;}
#imagesList2 li {width:33%; float:left;height:175px;}
#imagesList3{clear:right;float:right;margin:10px 0 0 10px;}


2) pages_default.tpl:

<!-- BEGIN CONTAINER -->
<div id="page">
$sTxtSize
$aImages[1]
$aImages[3]
<h3>$aData[sName]</h3>
<div class="content" id="pageDescription">$aData[sDescriptionFull]</div>
$aImages[2]
$sPages
$sFilesList
$sSubpagesList
</div

AND ALSO:

<!-- BEGIN IMAGES_LIST_1 --><li><a href="$config[dir_files]$aData[sFileName]" rel="lightbox-page" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a>$aData[sDescriptionContent]</li><!-- END IMAGES_LIST_1 -->
<!-- BEGIN IMAGES_DESCRIPTION_1 --><div>$aData[sDescription]</div><!-- END IMAGES_DESCRIPTION_1 -->
<!-- BEGIN IMAGES_HEAD_1 --><ul class="imagesList" id="imagesList1"><!-- END IMAGES_HEAD_1 -->
<!-- BEGIN IMAGES_FOOT_1 --></ul><!-- END IMAGES_FOOT_1 -->

<!-- BEGIN IMAGES_LIST_2 --><li><a href="$config[dir_files]$aData[sFileName]" rel="lightbox-page" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a>$aData[sDescriptionContent]</li><!-- END IMAGES_LIST_2 -->
<!-- BEGIN IMAGES_DESCRIPTION_2 --><div>$aData[sDescription]</div><!-- END IMAGES_DESCRIPTION_2 -->
<!-- BEGIN IMAGES_HEAD_2 --><ul class="imagesList" id="imagesList2"><!-- END IMAGES_HEAD_2 -->
<!-- BEGIN IMAGES_FOOT_2 --></ul><!-- END IMAGES_FOOT_2 -->

<!-- BEGIN IMAGES_LIST_3 --><li><a href="$config[dir_files]$aData[sFileName]" rel="lightbox-page" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a>$aData[sDescriptionContent]</li><!-- END IMAGES_LIST_3 -->
<!-- BEGIN IMAGES_DESCRIPTION_3 --><div>$aData[sDescription]</div><!-- END IMAGES_DESCRIPTION_3 -->
<!-- BEGIN IMAGES_HEAD_3 --><ul class="imagesList" id="imagesList3"><!-- END IMAGES_HEAD_3 -->
<!-- BEGIN IMAGES_FOOT_3 --></ul><!-- END IMAGES_FOOT_3 -->


3) Config > lang_en

$aPhotoTypes[1] = 'Left';
$aPhotoTypes[2] = 'Gallery';
$aPhotoTypes[3] = 'Right';

Guido

Avatar: Guido

2012-02-11 01:38

Hi,

The code I've displayed here is not working anymore in the new QuickCms (version 4).

Who has a new code for displaying image gallery with default settings/lightbox?

Guido

stacjonarny

Avatar: stacjonarny

2012-02-13 00:44

Hi. For Quick.cms 4.0.
For the templates/default/style.css add 4 new positions for the gallery:

[css]#imagesList3,#imagesList4,#imagesList5,#imagesList6{float:left;margin:9px 5px 0 0;}[/css]

Now we add it to templates/default/pages_default.tpl changing:

[tpl]$aImages[1]<!-- here is content from IMAGES_DEFAULT or other IMAGES_xx blocks -->
$aImages[2]<!-- here is content from IMAGES_DEFAULT or other IMAGES_xx blocks --> [/tpl]

to:

[tpl]$aImages[1]<!-- here is images left position -->
$aImages[2]<!-- here is images right position -->
$aImages[3]<!-- here is images gallery position 1 -->
$aImages[4]<!-- here is images gallery position 2 -->
$aImages[5]<!-- here is images gallery position 3 -->
$aImages[6]<!-- here is images gallery position 4 -->[/tpl]

For the database/config/general.php add new photo Gallery types:

$aPhotoTypes = Array( => $lang['Left'], => $lang['Right'], => $lang['Gallery_1'], => $lang['Gallery_2'], => $lang['Gallery_3'], 6=> $lang['Gallery_4'] );



For the database/translations/en.php add:


$lang
['Gallery_1'] = "Gallery 1";
$lang['Gallery_2'] = "Gallery 2";
$lang['Gallery_3'] = "Gallery 3";
$lang['Gallery_4'] = "Gallery 4";



For the database/translations/pl.php add:


$lang
['Gallery_1'] = "Galeria 1";
$lang['Gallery_2'] = "Galeria 2";
$lang['Gallery_3'] = "Galeria 3";
$lang['Gallery_4'] = "Galeria 4";



The core/files.php, in section: List all images by types, list types images is limited to 2, less than 3. We need 6, less than 7:

if( $iType ){



If the images are of different height of the gallery looks ugly. I have two solutions.
-First solution:
For the templates/default/style.css add:

[css]#imagesList3 li,#imagesList4 li,#imagesList5 li,#imagesList6 li{height:130px;}[/css]

-Second solution:
For the templates/default/style.css add:

[css]
#imagesList3 li .gallery, #imagesList4 li .gallery, #imagesList5 li .gallery, #imagesList6 li .gallery{height:124px;}
.gallery{}[/css]

and for thetemplates/default/pages_default.tpl changing:

[tpl]
<ul class="imagesList" id="imagesList$aData[iType]"><!-- START LIST -->
<li>
<a href="$config[dir_files]$aData[sFileName]" class="mlbox[pages]" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a><!-- IF:START DESCRIPTION -->
<div>$aData[sDescription]</div><!-- IF:END DESCRIPTION -->
</li><!-- END LIST -->
</ul>
[/tpl]

to:

[tpl]
<ul class="imagesList" id="imagesList$aData[iType]"><!-- START LIST -->
<li><div class="gallery">
<a href="$config[dir_files]$aData[sFileName]" class="mlbox[pages]" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a></div><!-- IF:START DESCRIPTION -->
<div>$aData[sDescription]</div><!-- IF:END DESCRIPTION -->
</li><!-- END LIST -->
</ul>
[/tpl]

Now the descriptions of the photographs will also be equal.
Style is the thumbnail of 150 px.
Do not use the Left and Right together with the Gallery. It is better to create Left_1 etc. and Right_1 etc.
I tested only in Firefox10 and Chrome 17.0.963.46 10, OS Linux. Other webbrowser?

Guido

Avatar: Guido

2012-02-13 19:15

THANKS!

I still use my own code but together with yours :-)

1) Templates > Default > pages_default.tpl
Add:
$aImages[3]<!-- here is content from IMAGES_DEFAULT or other IMAGES_xx blocks -->

2) Templates > Default > style.css
Add:
#imagesList3{float:left;margin:10px 0 0 0;width:100%;}
#imagesList3 li {width:33%; float:left;height:175px;}

3) Database > Config > general.php
Add , 3 => $lang['Gallery'] in this line:
$aPhotoTypes = Array( 1 => $lang['Left'], 2 => $lang['Right'], 3 => $lang['Gallery'] );

4) Database > translations > en.php
Add:
$lang['Gallery'] = "Gallery";

5) Core > files.php
Change number 3 into 4:
if( $iType < 4 ){

Layout 100% with 100 and 150 pixel thumbnails.

Guido

euphoria-art

Avatar: euphoria-art

2012-02-20 02:05

Works! beautiful gallery! http://obrazyolejne.cba.pl/?galeria,15
Thanks!

stacjonarny

Avatar: stacjonarny

2012-02-28 23:21

Thanks Guido. Your CSS is better. My css code is also useful. I have one line: img 1, img 2 img 3, img 4, in the second line: for example, only the img 5. I can decide in which column. I used your code css as a jquery gallery; http://http://quickcms.comze.com/?jq-galeria-1,4 . In another jQ gallery is the code:

#adgalleryList1,#adgalleryList2,#adgalleryList3,#adgalleryList4 {}

http://http://quickcms.comze.com/?galeria2,2

euphoria-art

Avatar: euphoria-art

2012-03-02 18:07

jak mozna podnieść tekst nad zdjęcia w galerii?

stacjonarny

Avatar: stacjonarny

2012-03-04 09:04

<!-- BEGIN IMAGES_DEFAULT -->
<ul class="imagesList" id="imagesList$aData[iType]"><!-- START LIST -->
<li><!-- IF:START DESCRIPTION --><div>$aData[sDescription]</div><!-- IF:END DESCRIPTION -->
<a href="$config[dir_files]$aData[sFileName]" class="mlbox[pages]" title="$aData[sDescription]"><img src="$config[dir_files]$aData[iSizeValue2]/$aData[sFileName]" alt="$aData[sDescription]" /></a>
</li><!-- END LIST -->
</ul>
<!-- END IMAGES_DEFAULT -->

freetemplatescms.com

stacjonarny

Avatar: stacjonarny

2012-03-04 10:15

pages_default.tpl block CONTAINER

<div class="content" id="pageDescription">$aData[sDescriptionFull]</div><!-- IF:START PAGES -->
<div class="pages">$lang['Pages']: <ul>$aData[sPages]</ul></div><!-- IF:END PAGES -->
$aImages[1]<!-- left -->
$aImages[2]<!-- right -->
$aImages[3]<!-- gallery A, 150px -->
$aImages[4]<!-- gallery B, 100px -->


http://freetemplatescms.com/?galeria,19

stacjonarny

Avatar: stacjonarny

2012-03-04 10:40

$aImages[1]<!-- left -->
$aImages[2]<!-- right -->
<div class="content" id="pageDescription">$aData[sDescriptionFull]</div><!-- IF:START PAGES -->
<div class="pages">$lang['Pages']: <ul>$aData[sPages]</ul></div><!-- IF:END PAGES -->
$aImages[3]<!-- gallery A, 150px -->
$aImages[4]<!-- gallery B, 100px -->

http://freetemplatescms.com/?galeria,19

euphoria-art

Avatar: euphoria-art

2012-03-04 11:35

dzięki

V

Avatar: V

2012-06-09 14:27

We cant add this script into Quick.CMS.Add
:(

Quick. CMS 4x Türkiye

V

Avatar: V

2012-06-09 15:09

When applied this inform appears;

"This functionality is not included in this script.
You can get this functionality and much more if you will buy Quick.Cms.Ext

Demo izle &#187;"

Quick. CMS 4x Türkiye

kuzco

Avatar: kuzco

2012-06-13 18:01

Due to the fact, that I had still problems with ImageGalleryMaker I have decided to google for a new solution.
I have found VisualLightBox and this tool is pretty simple and easy to handle ImageGalleries.
It will create *.html with all necessray parameters - just copy the source to QC (plus some files) and enjoy the gallery.

Back to top
about us | contact