TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   PHP Gallery - Help Needed! (http://www.talkphp.com/general/4794-php-gallery-help-needed.html)

Rubin Remus 07-29-2009 12:16 PM

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

codefreek 07-29-2009 12:57 PM

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

Hightower 07-29-2009 12:59 PM

Sounds like a job for jQuery (or similar) to me.

Rubin Remus 07-29-2009 01:06 PM

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.

codefreek 07-29-2009 02:42 PM

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

Rubin Remus 07-30-2009 09:37 AM

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!

codefreek 07-30-2009 10:46 AM

google has info, just try to google on tutorials etc,
and you shall find some info.


-Cf

aSAP 07-30-2009 02:47 PM

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

codefreek 07-30-2009 02:53 PM

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

aSAP 07-30-2009 02:58 PM

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?

Wildhoney 07-30-2009 04:09 PM

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!

codefreek 07-30-2009 04:41 PM

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

aSAP 07-30-2009 05:26 PM

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.

aSAP 07-31-2009 06:14 PM

Had to go with a different host so here is the preview.

http://asap.x10hosting.com/ImgGallery/


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