![]() |
PHP Gallery - Help Needed!
Hello everyone,
I'm new here, so I hope I've posted this in the right place. Basically, I have a problem and I've scoured the web for a solution or a gallery which does exactly what I need, but to no avail, so here goes. I'm trying to build a photo gallery for a friends website. What I need is the ability for the script to read straight from the directory and display those images, BUT(this is where I struggle), I then want to be able to click on that image and have it display in a box to the right - on the same page. Any help would be great, because I'll be pulling my hair out until I'm bald otherwise! Thanks alot in advance, RR |
Have you any code to start with, or some extra info, like some google knowledge ?,
might wanna start with a simple google search, + look at php.net, a basic setup of this would be to set path of the dir, you want to take the photos out from, and then what do you do ?.. thats your goal try to figure it out if you need more help, ask but try first. PHP, is a get a feel to it, code, as everything else is, so if you don't try, only ask.. you will never learn, you have to get a feel for it. PS: welcome to the forums.. :) -Cf |
Sounds like a job for jQuery (or similar) to me.
|
Hi,
I really have tried looking everywhere, altering bits of code I've put in. I haven't really got much to go on at the moment. I wouldn't ask for help if I hadn't tried dealing with it myself - I'm a very proud soul... ;-) So if anyone knows a nice simple solution, I'd be grateful... Thanks. AdminNote: i deleted the post i made, but it is back now thats why you did not find it earlier. |
Set, dir, read dir, print from dir..
i would say is the simple answer to the first question, the second, well as Hightower said, that can be fixed with, jquery, or other, css/javascripts, search for image + css/javascript |
Thanks for the above information.
I've managed to get the images to display on the page, but I'm still confused as to how to get them to open larger within the page - presumably with a JS 'onclick' function. I don't know how to implement this within Dreamweaver, as I'm used to having an image to click on, but obviously it only shows code for now. With regards to Jquery, I've looked at the website, downloaded it and have no idea what to do with it, how to use it or anything... HELP?! Thanks alot guys, I really appreciate it! |
google has info, just try to google on tutorials etc,
and you shall find some info. -Cf |
1 Attachment(s)
Just for fun and since I haven't really done much in PHP/Javascript for a while I decided to create an image gallery like this. It is pretty sloppy but with a little help from google I think I created what you were looking for.
I know me giving this to you won't help you learn that much but feel free to ask questions on how it works. Enjoy, aSAP 8-) |
Download, with safety in mind,
scan file.. http://virusscan.jotti.org/en google for online file scan, http://www.google.se/search?hl=sv&q=...2&oq=file+scan |
Wow, well is there any way you would rather me upload it for him? I know you are trying to protect him from any malicious downloads but was that really necessary?
|
Eek! What was all that about, Codefreek? aSAP is to be trusted. I know him well :-) I suppose you're not to know that. Being programmers though, I am sure we all take steps to scan for pesky viruses!
|
Sorry, some factors that i saw just trigged me to say something for safety of talkphp users, but anyways i am sorry. And on a side note: other forums do also ask for people to post scan results if you upload a file into the forum. Not that hard to do, and proofs the safety of the file. Don't see why we need to make a big deal of that.. just scan it or don't anyways, i don't think i did anything wrong by just alerting the users or did i ? if so then well i did what i thought was right..
-CF |
http://virscan.org/report/22b76eeacf...8cd86927b.html
Scanner results : All Scanners reported not find malware! Time : 2009/07/31 01:22:16 (CST) Doesn't really prove anything different but I hope it eases everyone's mind. I will add a live preview later when my hosting is back up. |
|
| All times are GMT. The time now is 06:09 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0