Disable Full Size Image Link/Popup

I have seen a few posts via search,but they didnt seem to help my issue.

I would like to disable the entire link action for full size images. My default image size is the largest, so there is no need for the large image to have a link attached.

Im using the "default" template, do I edit the full-image.php or image.php in the template folder?

thanks, this gallery will be used inside Joomla with a wrapper.
«1

Comments

  • You can use the nightly build. It has an option as to whether you get the pop-up or not.
  • thanks, i just ran across that post.

    im having my server tech fix this issue

    "mySQL access rights [insufficient rights]

    Your mySQL user must have Select, Insert, Update, and Delete rights.

    Grants found:
  • ok, i have the daily version installed, but the full default image still has a link to open a larger image in a browser window, which is not needed.

    all of the large images are 400x600, which fully displays in the page. there is no need for any popups or links to larger images. how can I remove the link completely?

    thanks
  • in the default theme

    in the file named image.php

    somewhere around line 57 it might read
    `"><?php printDefaultSizedImage(getImageTitle()); ?>`

    removing the `` should work; leaving only

    `<?php printDefaultSizedImage(getImageTitle()); ?>`

    please take caution since i do not have the nightly build.. but if it looks like the above.. that should be it.
  • Sorry, I misunderstood your question the first time. motaheri has give you the correct change.
  • sweet, it worked. No problem sbilliard!

    we will turn the site loose today, I will let you know how it handles our heavy traffic
  • Hey, I need help with this too. I like the intermediate picture and wish to keep it. What I want is so that when you go to the image page and click on it for the full size image, you get a pop up. Also, is it possible to not allow a pop up to be opened if the intermediate image is the original image, as there is no point in allowing this.
  • If you will update to the nightly build you will find two things:

    First, there is an option as to whether clicking for the full sized image shows the image or pops up the download dialog.

    Second, you can password protect albums (But not individual images) so that they cannot be viewed.

    The full sized image is devoid of your theme html, so it is never the same as the image displayed on the image page. You could add code that disabled the link to the full sized image if it is the same size as in on your image page.
  • Hey, i setup the nightly build but I cant seem to find an option anywhere that allows a popup. I found options to turn off comments and ratings, but nothing about popups. Do you know where the option can be found?
    Oh, another question. How would I create an album with another album inside it without putting any images inside it. It seems I can only create albums with images inside.
    Thanks
  • acrylian Administrator, Developer
    Please read carefully:
    First, there is an option as to whether clicking for the full sized image shows the image or pops up the download dialog.

    There is no option for that popup , only one for disabling the download. If you don't want to have the full image to be shown you need to adjust your theme's image.php. Just remove the link from around this line (default theme example): `" title="<?php echo getImageTitle();?>"><?php printDefaultSizedImage(getImageTitle()); ?>`
  • acrylian Administrator, Developer
    For your albums question. Either you use ftp to create a folder or you just upload any random picture to create an album and delete the image afterwards.
  • So there is no way to have a original image open original size in a popup window? when clicked?
  • Yes, under Options --> Image Display --> Full image download (make sure this is unchecked)

    And then using the default theme as an example, open up image.php and look at line 46, change:

    `" title="<?php echo getImageTitle();?>">`

    to

    `
    " title="<?php echo getImageTitle();?>" target="_blank">`
  • That just opened a new page. I mean, like a sized popup window of the image. Is that not possible?
  • acrylian Administrator, Developer
    Of course is that possible, but you need to add javascript to your theme for that yourself.
  • Oh, nevermind. Im too unexperienced to do that. Ill find another script.
    Thanks
  • That sounds like a great idea with the pop-up and I would like to use that - however, is it possible to have the image in the popup window come from another folder? The images on there now are default size (595 pixels) and I'd like to keep it that way. What I'd like to do is show, perhaps a detailed part of an image. In other words, I will be doing the cropping in photoshop.

    At the moment, I'm using sub-albums to show a detailed image, which I think a pop-up window would be a better choice.

    Here's the Gallery - http://www.mlownie.com/gallery - under the "New Works" you can see the sub-album idea. I'm using the latest default theme. Thanks.
  • acrylian Administrator, Developer
    The full size image is the full size image that you upload and image size options have no effect on that.
  • Right. I understand that option. But what I'd like to do is on the original image I would like to link to a pop-up that would only show a certain part of the image in detailed form. In this case, I would probably need to upload the "detailed image" separately in another folder and link to that. I don't want to show the entire image as a full size.

    My question is: How do I link to another folder (that I would create) to place the detailed image?

    If nothing else, I could add a tag for a pop-up under the description to show the detailed image from another folder I could create somewhere (would it be outside the zenphoto folder?) and just disable the image link. I don't know if it would be a better choice.

    Thanks.
  • acrylian Administrator, Developer
    Ok, I think now I got you. Someone did something similar, can't remember the post right now.

    You could do this like this for example. Given you always provide such a detail image, you could create a second folder. Let's name it "details" for example. The detail image which you indeed need to upload separatly you name exactly like the image or image title, but append for example "-detail" to it. So now you could create a link to that like this (rough sketch):
    `"/details/<?php echo imageTitle(); ?>-detail.jpg">Linktext`
    So automatically a link to a detail image is provided.
  • Thanks Acrylian. The link sample you wrote, is that to be put in the description area below the image or is that to be placed in the image.php default theme page? If in the image.php, do I need to do this (see above sample by aitf311) on line 46 to get the pop-up?
  • acrylian Administrator, Developer
    Yes, that is meant to replace the url in the full image link on image.php. Of course this is not a pop up link, it's simply a solution to generate an automatic link, so you don't have to write it manually. You will have refine and to add a popup-javascript to that yourself.
  • Sorry to bug you about this, but where do put this url? Do i replace it in line 47? Would you please show me (the location) where to insert the url? And the folder "details", does that go inside the theme folder, same place where the image.php is located? I guess I can do without the pop-up for now. Thanks again.
  • acrylian Administrator, Developer
    1. Exactly, the full image url in line 47 (actually it is line 48) of image.php
    2. The details folder should be a folder within the zenphoto folder. If zenphoto is just a subfolder of a site, it could be outside the zenphoto folder, too.
  • Someone was asking how to open the full size image in a JavaScript pop up the size of the full size image; here is a way I found to do that:

    1. Get the code from this page: http://www.codelifter.com/main/javascript/autosizeimagepopup.html and save the javascript in a file (I named mine imageGallery.js and saved it in a folder called /js/).
    2. On image.php, call the script in your head tag: e.g., ``
    3. Then edit the line on image.php as follows:
    `


    `
    To be:
    ``

    So far, this is working for me in both Firefox and IE. I'm still debating whether I want to do it this way or just have the full size image open in an html page (target="_blank").
  • acrylian Administrator, Developer
    Why don't you use a lightbox script? We have thickbox already on board.
  • Bump this thread up...

    I have the same issue. I really don't need the popup and i use the latest version, and the code is different compare to the older post in this thread.

    `


    <?php if(getOption("Use_thickbox")) {<br />
    $thickboxclass = " class=\"thickbox\"";

    $tburl = htmlspecialchars(getUnprotectedImageURL());

    } else {

    $thickboxclass = "";

    $tburl = htmlspecialchars(getProtectedImageURL());

    }

    if (isImagePhoto()) {

    ?>

    "<?php echo $thickboxclass; ?> title="<?php echo getBareImageTitle();?>">

    <?php<br />
    }

    printCustomSizedImageMaxSpace(getBareImageTitle(),500,500); ?>

    <?php<br />
    if (isImagePhoto()) {

    ?>



    <?php<br />
    }

    ?>

    `

    How do i remove the popup? Is there a way to do this from the code above?

    Thanks!
    Gitarrmannen
  • acrylian Administrator, Developer
    Yes, that is the code for the thickbox/full image. The parts that actually are printing the link are
    `
    if (isImagePhoto()) {
    ?>
    "<?php echo $thickboxclass; ?> title="<?php echo getBareImageTitle();?>">
    <?php
    }
    `
    and

    `
    <?php
    if (isImagePhoto()) {
    ?>

    <?php
    }
    ?>
    `
  • Ahhh.. Big thanks for the quick reply. For anyone else that want to get rid of the popup, remove this part of the code in image.php on line 61 or something.
    `if (isImagePhoto()) {

    ?>

    "<?php echo $thickboxclass; ?> title="<?php echo getBareImageTitle();?>">

    <?php<br />
    }
    `

    A big thanks for this gallery acrylian and everybody that is involved in this proejct. I have been searching the net for almost 1.5 years now for a decent image gallery, and honestly, most of the image gallerys are plain crap. This one is perfect with great features and easy to work with.

    Keep up the good work guys,

    Cheers,
    gitarrmannan
  • acrylian Administrator, Developer
    You also need to remove the other "if" construct I posted, unless you want invalid html with a single ``. To remove only the thickbox popup there is an option on the backend.
Sign In or Register to comment.