rejetto forum

Lightbox Photo Viewer

0 Members and 1 Guest are viewing this topic.

Offline randyrod

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
I have been looking for a way to view my photo collection (on PC) through my ipad. Today i thought of using HFS to serve up the photos to the ipad's browser. I used Top-up Javascript (http://gettopup.com/) in the template. I added this line in the head:

Code: [Select]
<script type="text/javascript" src="http://gettopup.com/releases/latest/top_up-min.js"></script>
and i added this line in the sections (on top of the [files] section):

Code: [Select]
[file.jpg]
<tr><td>%new% %protected% <a href="%item-url%" toptions="shaded = 1, overlayClose = 1, group = 1"><img src="/~img_file" /> %item-name%</a>%comment%<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%

It works great on firefox and ipad safari. Just a couple of things that would be nice to have would be swipe capability and thumbnails in the lightbox. Would anybody be able to suggest any scripts to use that have these functions? Come to think of it, has anybody made anything like this? I hope some of you would enjoy this functionality. I'd appreciate any feedback.

Cheers!
-Randy
« Last Edit: July 21, 2013, 10:29:37 AM by randyrod »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it's best to not use the tpl file, because you will not stay up to date with template improvements.

To get the same result without problems: right click on the home/root, go to "diff template", and paste the code above (or below)

Code: [Select]
[file.jpg]
<tr><td>%new% %protected% <a href="%item-url%" toptions="shaded = 1, overlayClose = 1, group = 1"><img src="/~img_file" /> %item-name%</a>%comment%<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%