Jump to content

karl19

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

karl19's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Lite, Many thanks again for replying to the post! Sorry it's taken a while to reply, I was away most of last week. I tried the code you pasted, couldn't get it to work though - it doesn't seem to include any thumbnails on the page? I deleted the previous code from "We display the infomation here" to the end, apart from the closing ?> tag, and pasted in what you sent. All I get is the same error message as before and no thumbnails: [i]Warning: stat(): Stat failed for 01.jpg (errno=2 - No such file or directory) in [LINK TO FILE] on line 196[/i] Line 196 is this: [code]$temp_info = stat($file);[/code] Apologies for asking for more info - if it was a matter of the links not working, I'd probably be able to work it out, but I can't seem to figure out why the thumbs are not being imported. Thanks! Karl
  2. Hi Lite, Many thanks for the code! I pasted it into my page and it's now showing a list of the images in the folder I specified.. but how could I get it to actually show the images themselves rather than a list of them? I'd like a graphic display of the actual thumbs in the specific folder, rather than a list. Also, how would I re-write links from what it is now: [code]<A HREF="' . $new_array[$i][0] . '">' . $new_array[$i][0] . '</A>[/code] To something like this: [code]<a href="#" onclick="mooShows['myShow'].jumptoImage(1);"/a>[/code] Where the number in brackets (1) is increased by +1 for every images (1,2,3 and so on). I tried a few different things, but I seem to get the syntax wrong all the time. Perhaps there are a few snippets that can be changed in the code provided? I also get a list of error messages for each image: [i]Warning: stat(): Stat failed for 01.jpg (errno=2 - No such file or directory) in [LINK TO FILE] on line 195[/i] Not really sure what this means! Well, if you have some ideas about the above, I'd obviously be delighted! Bit of a struggle trying to get my head stuck into PHP.. Many thanks, Karl Ps. How come the forum doesn't like part of the script, btw?
  3. Thanks Eves for reading the post! Sorry if I explained the problem poorly. What I need to do, is first to get a number of images out of a folder, then add links to them. Ie I have a list of 10 thumbnails in a folder on the server and I want to show them on my portfolio.php page. Apart from adding them to the page, I also want to give them individual and unique links - a href="#1", a href="#2" and so on. This is the main setup which I'm struggling to solve. I really am a novice with PHP, but presume this is fairly minor surgery? The code provided above was how the image gallery coder suggested linking directly to the images in the main window. I'm not sure it's the best way, but it works. It's the code I need to use for the links - all constant apart from one variable which would increase +1 with each link. Hope that explains it better! Thanks, Karl [[a href=\"http://www.mooshow.eatpixels.com/example1.php\" target=\"_blank\"]Example gallery[/a]]
  4. Hi there, I'm sorry for these two novice questions, but I really have searched for hours to solve this myself, but to no avail! Hopefully someone has a moment to post a few guidelines to what I presume is a very simple PHP request. 1. Creating a thumbnail gallery from all images in a folder. 2. Giving the thumbnails A HREF links - and making them incremental. I'm using a nifty little PHP image gallery [a href=\"http://www.mooshow.eatpixels.com/\" target=\"_blank\"](mooShow)[/a] to display a couple of images. There is currently no built-in thumbnail capacity with this script, so I thought I'd simply use PHP to gather the thumbnails from a separate folder. The main images can be hot-linked to by typing in: [code]<a href="#" onclick="mooShows['myShow'].jumptoImage(4);"/a>[/code] So I thought, great, I'll get all additional thumbnail images with PHP, then add the A HREF link to each thumb, incrementally increasing the value by +1 for every image (jumptoImage([b]X[/b]) above). But alas, I can do neither 1 nor 2! Happy for any help anyone can give. I'd like to stick with using the image gallery above, but adding the thumbnail feature. Thanks! Karl
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.