 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
 |
|
 |
07-29-2009, 12:16 PM
|
#1 (permalink)
|
|
The Visitor
Join Date: Jul 2009
Posts: 3
Thanks: 0
|
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
|
|
|
|
07-29-2009, 12:57 PM
|
#2 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
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
Last edited by codefreek : 07-29-2009 at 02:32 PM.
Reason: TEXT, EDIT
|
|
|
|
07-29-2009, 12:59 PM
|
#3 (permalink)
|
|
The Acquainted
Join Date: May 2009
Location: Durham, UK
Posts: 134
Thanks: 9
|
Sounds like a job for jQuery (or similar) to me.
|
|
|
07-29-2009, 01:06 PM
|
#4 (permalink)
|
|
The Visitor
Join Date: Jul 2009
Posts: 3
Thanks: 0
|
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.
Last edited by codefreek : 07-29-2009 at 02:36 PM.
Reason: note added: i deleted the post i made, but i put it back thats why you did not find it
|
|
|
|
07-29-2009, 02:42 PM
|
#5 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
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
|
|
|
|
07-30-2009, 09:37 AM
|
#6 (permalink)
|
|
The Visitor
Join Date: Jul 2009
Posts: 3
Thanks: 0
|
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!
|
|
|
|
07-30-2009, 10:46 AM
|
#7 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
google has info, just try to google on tutorials etc,
and you shall find some info.
-Cf
|
|
|
|
07-30-2009, 02:47 PM
|
#8 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 7
Thanks: 0
|
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 
|
|
|
|
07-30-2009, 02:53 PM
|
#9 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
|
|
|
|
07-30-2009, 02:58 PM
|
#10 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 7
Thanks: 0
|
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?
|
|
|
|
07-30-2009, 04:09 PM
|
#11 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,267
Thanks: 90
|
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!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
07-30-2009, 04:41 PM
|
#12 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
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
|
|
|
|
07-30-2009, 05:26 PM
|
#13 (permalink)
|
|
The Wanderer
Join Date: Sep 2007
Posts: 7
Thanks: 0
|
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.
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|