Solved

Integrating jquery lightbox into MySQL and PHP based photo gallery

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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

17 Experts available now in Live!

Get 1:1 Help Now