lorne17 Posted September 29, 2008 Share Posted September 29, 2008 Hello there, I recently got this slideshow put together that calls for images from two folders, thumbnails and large images. The large images is the display size images in the slideshow. If I edit the code I can make the large image a link to anything I desire. What I want this link to be for each image is a link to the full size image in a new window. So when image01.jpg is displaying in the slideshow, I want the link to be to image01.jpg in the "fullsize" folder. If you take a look at the PHP file attached you'll see that I can customize each individual image, i.e. <img src="i.jpg" link="gallery/album/fullsize/image01.jpg" target="_blank" /> The issue with this is for every slideshow I make, I have to link it individually. I am trying to find code that automatically looks in the "fullsize" folder and finds the corresponding number folling image##.jpg Is there a way to do this so when I create a new slideshow it will add links automatically? Thanks, and sorry if that's confusing. :-\ [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/126333-need-to-dynamically-link-image-folder-to-slideshow/ Share on other sites More sharing options...
monkeytooth Posted September 29, 2008 Share Posted September 29, 2008 Ok, if I am understanding this correctly.. you want to take i.jpg and have it refrence imageXX.jpg (xx being the number).. Now what I am gathering at the moment is, that you don't have a database of any sort to refrence that thumbnail i.jpg is in fullsize as imageXX.jpg That said my idea of a quick solution would be.. name your files to match one another, since you have thumbnails in one directory and fullsize images in another make thumbnail i.jpg in thumbnails be i.jpg in fullsize. Unfortunately without knowing how your script is pieced together and calling images into it short of you doing it manually, I cant help you.. Meaning does this script read the entire directory and make a gallery based on that, is there specific files you call into the gallery via other means to individualize galleries? without knowing that kind of thing, and the code over all other then one line isnt helpful in helping.. Link to comment https://forums.phpfreaks.com/topic/126333-need-to-dynamically-link-image-folder-to-slideshow/#findComment-653378 Share on other sites More sharing options...
lorne17 Posted September 29, 2008 Author Share Posted September 29, 2008 Hey MonkeyTooth, Yes, I understand there isn't enough information. Let me see if I can explain a bit easier. My slideshow/gallery is referencing thumbs in from: gallery/album/thumnails. All thumbnails are named: image01.jpg, image02.jpg, image03.jpg, etc. All my slideshow/gallery large (not fullsize) images are referenced from: gallery/album/large. All large images are named: image01.jpg, image02.jpg, image03.jpg, etc. All this is automatic. All I have to do is have my images in there and they get linked to my .fla file via the PHP or xml file. Which in this case is the one I attached above called images.php. What I want is to also automatically have the large images link to the fullsize image folder I created in: gallery/album/fullsize. All fullsize images are named: image01.jpg, image02.jpg, image 03.jpg, etc. based on the line of code for each individual image: <img src="i.jpg" link="gallery/album/fullsize/image01.jpg" target="_blank" /> can I make this code, work for all images to reference to the fullsize image folder? Does that make anymore sense? Link to comment https://forums.phpfreaks.com/topic/126333-need-to-dynamically-link-image-folder-to-slideshow/#findComment-653466 Share on other sites More sharing options...
monkeytooth Posted September 30, 2008 Share Posted September 30, 2008 Ok i understand a bit better.. but now im curious with what you mean by setting up a gallery.. is there any chance you can just send me the script, and I can take a look at it, rather then going back and forth here with theroy? I mostly want to see what entails setting up the gallery, and how the images are called into it via the script. From there I might be able to gauge a better answer for you.. if you wish to send it to me, send it to my email monkeytooth (@) gmail.com Link to comment https://forums.phpfreaks.com/topic/126333-need-to-dynamically-link-image-folder-to-slideshow/#findComment-653492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.