•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 363,482 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,501 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 224 | Replies: 4 | Solved
![]() |
•
•
Join Date: Apr 2008
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 1
The following code given to me in another forum, as a "simple photo gallery" code, but I'm still experiencing problems with it. I don't know how to make the two pages interact correctly. I am assuming the [REF] etc sections are causing the problems, but I don't know what they need to be replaced with to pull the relevant info from the database. Any thoughts?
Current page: http://www.equinefocus.co.uk/personal/gallery.php
I am aiming for this sort of format: http://www.equinefocus.co.uk/persona...le_gallery.htm
CODES
gallery.php code:
http://www.equinefocus.co.uk/personal/gallery.pdf
gallery_template.htm code:
http://www.equinefocus.co.uk/persona...y_template.pdf
Current page: http://www.equinefocus.co.uk/personal/gallery.php
I am aiming for this sort of format: http://www.equinefocus.co.uk/persona...le_gallery.htm
CODES
gallery.php code:
http://www.equinefocus.co.uk/personal/gallery.pdf
gallery_template.htm code:
http://www.equinefocus.co.uk/persona...y_template.pdf
•
•
Join Date: Apr 2008
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 1
Thanks for taking the time to respond. While my internet has been down, I've been back to basics - my level of basics, and am a step nearer to achieving the gallery I want:
http://www.equinefocus.co.uk/personal/gallery1.php
I was trying to achieve a layout like this:
http://www.equinefocus.co.uk/persona...e_gallery1.htm
As you can see, I've not quite pulled it off. Seeing the botched attempt though has shown that the sample_gallery format would work nicely in a two columns as per:
http://www.equinefocus.co.uk/persona...e_gallery2.htm
How would I go about editing my code to achieve this style? Are there any other ways of improving the code below?
CURRENT CODE:
http://www.equinefocus.co.uk/personal/basic_gallery.pdf
Thumbnail links don't yet work... not a bug, just not got around to that bit yet!
http://www.equinefocus.co.uk/personal/gallery1.php
I was trying to achieve a layout like this:
http://www.equinefocus.co.uk/persona...e_gallery1.htm
As you can see, I've not quite pulled it off. Seeing the botched attempt though has shown that the sample_gallery format would work nicely in a two columns as per:
http://www.equinefocus.co.uk/persona...e_gallery2.htm
How would I go about editing my code to achieve this style? Are there any other ways of improving the code below?
CURRENT CODE:
http://www.equinefocus.co.uk/personal/basic_gallery.pdf
Thumbnail links don't yet work... not a bug, just not got around to that bit yet!
•
•
Join Date: Jan 2008
Posts: 37
Reputation:
Rep Power: 1
Solved Threads: 5
Hi again,
A thought regarding the layout of your gallery. You could have all the photos arranged in a grid manner, with a 10 or 20px margin between each. Then for displaying information, you could have a div tag display on hover with the dates and names or whatever, together with a message stating to click here to view a larger image. This could then be displayed in a lightbox window using JS and/or Ajax.
The code for the lightbox and ajax are free online. The styles for the gallery would also be relatively simple, and I've posted a solution yesterday stating how to have a div tag display on hover.
Just a thought.
R.
A thought regarding the layout of your gallery. You could have all the photos arranged in a grid manner, with a 10 or 20px margin between each. Then for displaying information, you could have a div tag display on hover with the dates and names or whatever, together with a message stating to click here to view a larger image. This could then be displayed in a lightbox window using JS and/or Ajax.
The code for the lightbox and ajax are free online. The styles for the gallery would also be relatively simple, and I've posted a solution yesterday stating how to have a div tag display on hover.
Just a thought.
R.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Other Threads in the PHP Forum
- Previous Thread: need php codings for my task!
- Next Thread: HELP me pass php variable from a page to other


Linear Mode