[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Integrating jquery lightbox into MySQL and PHP based photo gallery

Posted on 2010-11-16
1
Medium Priority
?
2,057 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
1 Comment
 
LVL 3

Accepted Solution

by:
xeonol earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Recursive SQL is one of the most fascinating and powerful and yet dangerous feature offered in many modern databases today using a Common Table Expression (CTE) first introduced in the ANSI SQL 99 standard. The first implementations of CTE began ap…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses
Course of the Month18 days, 4 hours left to enroll

831 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