Solved

Integrating jquery lightbox into MySQL and PHP based photo gallery

Posted on 2010-11-16
1
1,978 Views
Last Modified: 2012-05-10
Hi guys,

I have taken over the development of a website that has been built on a custom CMS.

The website has an photo gallery setup which allows the administrator of the site to add new photos using a simple form which writes to a MySQL database. PHP code then reads the entries from the database and renders the relevant pictures for the gallery.

The gallery is currently setup so that it displays a thumbnail for each picture, once the thumbnail is clicked on, the user is taken to a new page that displays the full picture.

The client wants to integrate the jQuery lightbox into the site so that the user is not directed away from the gallery page to view each image.

I have integrated jQuery lightbox onto the site but am having difficulty re-writing the code so that the hyperlink is correct.

You can view the site here http://rivierajoinery.com.au/v2/gallery.php?cid=1

This is the sourcecode for the gallery page

 
Anybody able to provide some suggestions to get this working?
0
Comment
Question by:Timmah790
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
xeonol earned 500 total points
ID: 34153103
On that page I see all the link address of thumb images are empty, for example:
<a class="lightbox" href="" jQuery1289980830122="90">

So I doubt if $images_dir."/".$photo_filename is set correctly as I didn't see there is a line setting value for the two variables: $images_dir and $photo_filename.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question