Pages (2):    1 2
Administrator
Administrator
acrylian   15-02-2008, 17:04
#21

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):
-detail.jpg">Linktext
So automatically a link to a detail image is provided.

Member
Member
darrellm   15-02-2008, 18:42
#22

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?

Administrator
Administrator
acrylian   15-02-2008, 19:24
#23

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.

Member
Member
darrellm   16-02-2008, 00:09
#24

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.

Administrator
Administrator
acrylian   16-02-2008, 12:37
#25
  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.
Junior Member
Junior Member
Jhcbiinoc   13-09-2008, 09:07
#26

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:
    `

">
[b]
[/b]

To be: [b][/b]`

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").

Administrator
Administrator
acrylian   13-09-2008, 09:32
#27

Why don't you use a lightbox script? We have thickbox already on board.

Member
Member
gitarrmannen   07-09-2009, 16:22
#28

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.

`



        " title="">









`

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

Thanks!
Gitarrmannen

Administrator
Administrator
acrylian   07-09-2009, 16:27
#29

Yes, that is the code for the thickbox/full image. The parts that actually are printing the link are
`
if (isImagePhoto()) {
?>
title="">

`

Member
Member
gitarrmannen   07-09-2009, 18:37
#30

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()) {

        ?>

        " title="">
Administrator
Administrator
acrylian   07-09-2009, 18:53
#31

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.

Member
Member
gitarrmannen   07-09-2009, 19:07
#32

Yup, you're right.. thanks for pointing that out for me...

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.