Solved

Integrating jquery lightbox into MySQL and PHP based photo gallery

Posted on 2010-11-16
1
1,901 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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)

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now