DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Gallery Templating Issue (http://www.daniweb.com/forums/thread123010.html)

Borderline May 7th, 2008 1:46 pm
Gallery Templating Issue
 
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

robothy May 7th, 2008 2:30 pm
Re: Gallery Templating Issue
 
Hi,

Where does the array $row['url'] come from on line 27 of the gallery script??

Also, the second PDF link you uploaded doesn't work.

R.

Borderline May 8th, 2008 5:15 pm
Re: Gallery Templating Issue
 
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!

robothy May 8th, 2008 6:19 pm
Re: Gallery Templating Issue
 
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.

Borderline May 9th, 2008 2:25 am
Re: Gallery Templating Issue
 
Thank you, that could indeed be a possibility. I'd like to try out the structure I'm aiming for first, though, if anyone has thoughts on how to achieve it.


All times are GMT -4. The time now is 11:14 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC