User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,195 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,522 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: 233 | Replies: 4 | Solved
Reply
Join Date: Apr 2008
Posts: 18
Reputation: Borderline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Borderline Borderline is offline Offline
Newbie Poster

Gallery Templating Issue

  #1  
May 7th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Posts: 37
Reputation: robothy is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
robothy robothy is offline Offline
Light Poster

Re: Gallery Templating Issue

  #2  
May 7th, 2008
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.
Reply With Quote  
Join Date: Apr 2008
Posts: 18
Reputation: Borderline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Borderline Borderline is offline Offline
Newbie Poster

Re: Gallery Templating Issue

  #3  
May 8th, 2008
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!
Reply With Quote  
Join Date: Jan 2008
Posts: 37
Reputation: robothy is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
robothy robothy is offline Offline
Light Poster

Re: Gallery Templating Issue

  #4  
May 8th, 2008
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.
Reply With Quote  
Join Date: Apr 2008
Posts: 18
Reputation: Borderline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
Borderline Borderline is offline Offline
Newbie Poster

Re: Gallery Templating Issue

  #5  
May 9th, 2008
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC