e2interactive forums » Report a Bug

Search:

Thumbnail Scroll not working

(7 posts)

  1. StratMK
    Member

    For some reason the scroll buttons are not appering on the thumbnails and i am unabel to scroll through them can you help.

    Also is there any way to Have it display the file Name rather than the IPTC data?

    Thanks
    Martin

    Posted 9 months ago #
  2. Okay, sorry about that, but I have fixed this issue. You'll need to download the latest and replace the js/e2photo2.js file or download this file only:

    Download e2photo2.js update

    I have now fixed it and your thumbnails scrolling will work with this update.

    To be able to grab this file name, would be an easy change.

    Open up the getfolders.php file and find the following line (about line #58):

    echo "$galleryName";echo"[".$j."]=['".$path."/".$file[name]."', '".$width."', '".$height."', '".$size."', '".$title."', '".$author."', '".$copyright."', '".$description."', '".$j."']\n";

    change it to:

    echo "$galleryName";echo"[".$j."]=['".$path."/".$file[name]."', '".$width."', '".$height."', '".$size."', '".$file[name]."', '".$author."', '".$copyright."', '".$description."', '".$j."']\n";

    Posted 9 months ago #
  3. StratMK
    Member

    Thanks this has resolverd the scroll problem.

    is there anyway of displaying the file name with out th efile extetion?

    Regards
    Martin

    Posted 9 months ago #
  4. To be able to grab this file name, would be an easy change.

    Open up the getfolders.php file and find the following line (about line #58):

    echo "$galleryName";echo"[".$j."]=['".$path."/".$file[name]."', '".$width."', '".$height."', '".$size."', '".$title."', '".$author."', '".$copyright."', '".$description."', '".$j."']\n";

    change it to:

    echo "$galleryName";echo"[".$j."]=['".$path."/".$file[name]."', '".$width."', '".$height."', '".$size."', '".$file[name]."', '".$author."', '".$copyright."', '".$description."', '".$j."']\n";

    Posted 9 months ago #
  5. StratMK
    Member

    I got that working now is there a way of stoping it displaying the .jpg?

    Thanks again
    Martin

    Posted 9 months ago #
  6. Try this instead:

    $newfilename = preg_replace("/\.jpg$/i", "", $file[name]);
    echo "$galleryName";echo"[".$j."]=['".$path."/".$file[name]."', '".$width."', '".$height."', '".$size."', '".$newfilename."', '".$author."', '".$copyright."', '".$description."', '".$j."']\n";
    Posted 9 months ago #
  7. StratMK
    Member

    Thanks

    That works perfectly

    Great work Keep it up

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.