?
Solved

Integrating jquery lightbox into MySQL and PHP based photo gallery

Posted on 2010-11-16
1
Medium Priority
?
2,008 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 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

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

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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