Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Need help modifying some PHP

    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
    Attached Thumbnails Attached Thumbnails Need help modifying some PHP-phphelp.jpg  

  • #2
    New Coder
    Join Date
    Dec 2010
    Posts
    37
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •