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.
Comments
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:
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 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.
we will turn the site loose today, I will let you know how it handles our heavy traffic
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.
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
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">`
Thanks
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.
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.
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.
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.
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:
`
"
title="<?php echo strip_tags(getImageTitle());?>">
<?php printDefaultSizedImage(getImageTitle()); ?>
`
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").
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
`
if (isImagePhoto()) {
?>
"<?php echo $thickboxclass; ?> title="<?php echo getBareImageTitle();?>">
<?php
}
`
and
`
<?php
if (isImagePhoto()) {
?>
<?php
}
?>
`
`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