+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Cycle Through Images on Hover with jQuery

  1. #1

    Angry Cycle Through Images on Hover with jQuery

    Hi,

    I have to implement the function Cycle to make sure that when you hover with the mouse over the main picture to start the slideshow of other photos.
    I tried following this tutorial here: http://jquery.malsup.com/cycle/ but the problem I encounter when I have to call up the other pictures (not the main photo).

    I tried to call a picture with the following code in file t/l/blocks/listing.tpl but does not work:

    <img src="{$smarty.const.RL_URL_HOME}files/{$photos.0.Photo}" />
    <img src="{$smarty.const.RL_URL_HOME}files/{$photo.Photo}" />

    Can anyone help me?

    Thanks

  2. #2
    No one knows how to do? Flynax Help me!

  3. #3
    i would like to know as well this.

  4. #4
    Hallo Flynax.
    I asked a question too difficult?
    This could also be useful to other customers Flynax ...

  5. #5
    Hello Maurizio,

    at first you should select photos for each listing. In ftp://includes>>classes>>rlListings.class.php file.

    Find method: getListings and code in:

    PHP Code:
    Only registered members can view the code
    and replace to:

    PHP Code:
    Only registered members can view the code
    then you can use in tpl file:
    {$listing.photos} - it's array
    Last edited by Viktor; November 8, 2013 at 05:41 AM.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Hello Viktor,

    thanks for the reply ...

    Unfortunately it does not work.
    There seems to be a bug in the code written because I get a blank page.
    You can check it out?
    thanks

  7. #7
    Hello Maurizio,

    ohh yes it was 1 error. So sorry. I have changed my previous post. Please copy code above again and insert in your site.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Hello Victor,

    with the new code the page is loaded but the photos are not seen ..

    I put this code in the file listing.tpl

    <img style="width: 100px;height: 100px;" alt="{$listing.listing_title}" src="{$smarty.const.RL_URL_HOME}files/{$listing.photos}" />

    From the html code of the page I see that the code looks for the photo in files/Array/

    Unfortunately I am working in localhost otherwise you spent your login information.
    Can you solve it?

    Thanks

  9. #9
    Hi Viktor there are new?

  10. #10
    Hello Maurizio,

    Sorry for delay

    yes it's right because {$listing.photos} - it's array

    you should use it like here:

    Code:
    Only registered members can view the code.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread