Thickbox for full image

2»

Comments

  • s3 Member
    Monster: It seems, as I've taken a closer look, you've added this subalbum section here:

    This makes it work (https), but, when I take it out, it no longer works.

    Can you explain this? When I open up your album.php into dreamweaver, it says the code isn't fully functional and has some issues with syntax.

    <!-- Wrap Subalbums -->
    <div id="subcontent">
    <div id="submain">

    <!-- SubAlbum List -->
    <ul id="albums">
    <?php while (next_album()): ?>

    <div class="imagethumb">" title="View the album <?=getAlbumTitle();?>
    <?php if (getNumImages() > 0) {
    echo "with ".getNumImages()." image(s)\">";
    } else {
    echo " (subalbums)\">";
    } ?>
    <?php printCustomAlbumThumbImage(getAlbumTitle(), null, 180, null, 180, 80); ?>
    </div>
    <h4>" title="View album: <?=getAlbumTitle();?>"><?php printAlbumTitle(); ?></h4>
    <?php endwhile; ?>

    <div class="clearage"></div>

    </div>
    </div>
  • s3 Member
    You know what monster, if you could explain how you got it to work on http: instead of https: that would be awesome.
  • I think everything is working for me now. I had 2 issue with getting ssl/https access completely working.

    1) mootools - symptom was security warning box about secure and non-secure content. I had to download the non-compressed version of mootools.js (see monster's post for parts needed) and then I had to change the following line in that file:

    document.write("<script id=ie_ready defer src=javascript:void(0)></script>")

    to

    document.write("<script id=ie_ready defer src='://0'></script>")

    2) apache - odd apache issue that may have been because of reverse-proxying I am doing. Symptom was a blank page when any browser other than IE was used (firefox, safari, etc). I has to make sure nokeepalive was set for SSL. Default setting in apache for IE is to turn it off which is why IE worked. I added this and it worked for me. Not sure if it is a good idea :)

    SetEnvIf "User-Agent" "Mozilla.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0

    ------

    Hope this helps. I thought the problems were still occurring but after clearing cache on the browsers, things have been good.
  • @permesso & s3
    Hi guys,
    this theme which I uploaded to zenphoto official repository
    http://www.zenphoto.org/trac/attachment/wiki/ZenphotoThemes/effervescence1.1+slimbox.zip
    is modified last version of effervescence (1.1)
    Subalbum support was added by Craig - not me.
    I added only slimbox feature, which took me less than 2 minutes.
    I've created slimbox and copied there all required files
    mootools.js, slimbox.js, slimbox.css and gifs for next/previous/close buttons.
    Than I added three new lines to the head of album.php
    `/slimbox/css/slimbox.css" type="text/css" media="screen" />

    /slimbox/js/mootools.js">

    /slimbox/js/slimbox.js">`

    and modified one line (64)
    `" rel="lightbox[<? echo getAlbumTitle();?>]" title="<?=getImageTitle();?>">`
    before it was
    `
    " title="<?php echo getImageTitle();?>">`

    You can make the same changes in any theme you want.
    That's all.
  • s3 Member
    Thanks monster. I'm sure all of us have our real full time jobs and are working on zen on the side... so, appreciate all your time!
  • I agree with s3. Thanks, monster!
  • I've read through the thread, but I'm a bit hazy on what I need to change if I have a table prefix.

    `function getRandomImages() {

    $result = query_single_row("SELECT zenimages.filename, zenimages.title, zenalbums.folder FROM images INNER JOIN albums ON zenimages.albumid = zenalbums.id ORDER BY RAND() LIMIT 1");

    $image = new Image(new Album(new Gallery(), $result['folder']), $result['filename']);

    return $image;

    }

    `

    The prefix is "zen"... it seems as though I changed it properly, but I am getting a line of text with a bunch of text overlaid. If I hightlight it, it tells me that it can't find a "zenfiesta" table. (Which I tried earlier...)
    `

    = zenalbums.id ORDER BY RAND() LIMIT 1 ) Failed. Error: Table 'zenfiesta.images' doesn't exist`

    I don't know where the hell it's pulling "zenfiesta" from. I tried that prefix awhile back, but I have since changed it. It cannot be found in the customfunctions folder. Weird.

    Did I add the prefix business correctly?
    Thanks for your time! And, excuse my noobness.
Sign In or Register to comment.