View Full Version : Need help modifying some PHP

12-27-2010, 12:59 AM
So I am using the Joomla! content management system, and have a component called jreviews that gives me the functionality to create a city wide directory.

I want to modify a little bit of code so that when a user clicks on the thumbnail associated with the listing, instead of the link taking the user to the "detail view" of the listing, it takes the user to the short advertising movie (stored on the server) associated with the listing. Now to make this possible, each movie file name is in .mov format, and is named EXACTLY like the listing (i.e if the listing is for Tumalo Creek Kayak and Canoe, the file will be named "Tumalo Creek Kayak and Canoe.mov".

Attached are two pictures to help. One of them shows the line(s) of code that are involved with the linking--I just don't quite know how to modify them to get the desired result. Any help is SO much appreciated.

Jeff Clark

12-27-2010, 06:14 AM
Hi, Jeff!

I know nothing about Joomla, but it looks to me like the easiest way would be to create the list of movie links, assign them a variable (like $movie_listing for example) then substitute $movie_listing for $listing throughout the section of code in your screenshot.

Hope this helps!