Page 1 of 3 123 LastLast
Results 1 to 20 of 43

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: UPDATED: PDF/CHM/DOC/XLS/photo viewer (original script by -V-O-Y-A-G-E-R-)

  1. #1
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Default PDF/DOC/XLS/JPG/GIF/PNG Viewer (Based on Safari+Lighttpd)
    Here is latest version of the script originally posted by -V-O-Y-A-G-E-R-.

    Check the original post for instruction guide (http://www.modmyi.com/forums/showthread.php?t=52021)

    To use this improved version, just follow the instructions in the above thread, then replace the old files with the updated files attached below (Extract the ".dirlist" folder to "/private/var/root/Sites/").

    ==================
    History
    ==================

    Version 1.5.1 (Apr 19, 2008)
    * fixed a bug where folders/files with spaces in their name cannot be hyperlinked (sorry about this)

    Version 1.5 (Apr 19, 2008)
    + added support for ".htm", ".html" and ".php" files
    + added experimental support for ".mp3" and ".mp4" files

    Version 1.32 (Apr 5, 2008)
    * fixed a bug where folders containing the "+" character fails to open
    * fixed a bug where changing the orientation of Safari messes up the font size

    Version 1.31 (Apr 3, 2008)
    + added icon for ".jpeg" files (in addition to ".jpg" files)
    * added a space between icon and filename
    * ignored the case of the file extension (".JpG", ".JPG", ".jpg" are the same)

    Version 1.3 (Mar 31, 2008)
    + added icon for txt files
    * increased thumbnail size and removed the filenames for photos (coz filenames are generally not important for photos)
    * fixed a minor bug about hyperlinks
    * renamed apple-touch-icon.png to favicon.png

    Version 1.2 (Mar 30, 2008)
    + icons support - for PDF/DOC/XLS/folder, icons are shown; for JPG/GIF/PNG, picture preview are shown.

    Version 1.1 (Mar 27, 2008)
    * the original script fails to enter directory/file which contains the "#" character in directory name or filename
    * when the length of file/dir is too long, the ">" at the right of the line get overlapped. now it's fixed.
    + the original script only shows 127.0.0.1 as the root folder name. i've added a constant in the script that allows the user to customize the name. i preset it as "Library"
    + web clip icon support. just put an icon named "apple-touch-icon.png" in the ".dirlist" folder (or use the one i attached). and try to add the web page to the home screen
    + the page auto scroll to hide the address bar of safari (only if the length of the list of files reached a full screen of safari)
    Attached Thumbnails Attached Thumbnails -img_0003.jpg   -img_0001.jpg  
    Last edited by kane.lai; 2008-04-19 at 06:53 PM.

  2. The Following 5 Users Say Thank You to kane.lai For This Useful Post:

    -V-O-Y-A-G-E-R- (2008-03-28), Aithes90 (2008-08-12), benne (2008-03-28), krisbfunk (2009-03-24), zacklyn (2008-03-31)

  3. #2
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    Just extract the ".dirlist" folder to "/private/var/root/Sites/"
    Attached Files Attached Files
    Last edited by kane.lai; 2008-04-19 at 07:03 PM.

  4. The Following User Says Thank You to kane.lai For This Useful Post:

    benne (2008-03-28)

  5. #3
    I've updated my first post in the thread you mentioned adding your modded dirlist files and asked repo maintainers to also update script credits too

  6. The Following 2 Users Say Thank You to -V-O-Y-A-G-E-R- For This Useful Post:

    jus10roley (2008-04-11), krisbfunk (2009-03-24)

  7. #4
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    oh voyager, thank you again for your original script. it's very useful~nice to cooperate with u

  8. #5
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    to -V-O-Y-A-G-E-R-:
    I've updated again the script (see my updated post in this thread for download and change log)
    You may update your original post and the installer repo again with this updated script (ver 1.2)

  9. #6
    Post updated.
    poetic_folly notified

    Do you mind changing "apple-touch-icon.png" into "favicon.png", to go along with web standards?

  10. #7
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    version 1.3 now

    probably someone could draw a beautiful default favicon for us to put in the package??
    maybe it'd be better to have a picture of a drawer/bookshelf/others??
    Last edited by kane.lai; 2008-04-01 at 04:40 AM. Reason: Automerged Doublepost

  11. The Following 2 Users Say Thank You to kane.lai For This Useful Post:

    -V-O-Y-A-G-E-R- (2008-04-03), zacklyn (2008-04-01)

  12. #8
    I noticed that if extension is in CAPS LOCK, the icon doesn't show. Is it a bug or just me?
    Could you also make a space between icon and a filename. It's tight a bit right now

    Off to update package.

  13. #9
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    updated~

  14. The Following User Says Thank You to kane.lai For This Useful Post:

    -V-O-Y-A-G-E-R- (2008-04-03)

  15. #10
    Neat!

    What kind of icon you mentioned? As favicon or for showing next to Library title?

  16. #11
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    haha..what the JPEG icon meant should be thumbnail, but not icon. that means, now JPG, JPEG, GIF, PNG are recognized as photos

  17. #12
    I still don't understand

  18. #13
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    "What kind of icon you mentioned? As favicon or for showing next to Library title?" <- you ask the "icon" i mentioned in the change log or in the post i asked for people to make icon??

  19. #14
    Is there a way to disable the Image icon previews?

    I just uploaded my DCIM folder from my camera to the Sites folder and locked up my phone trying to browse my photos folder. It displayed the image list, and then started parsing the icon thumbnails and then the progress spinner in the tool bar stopped spinning. Had to home button+power button to restart

    I have about 30 photos in this directory and they're only about 1024x768 resolution. I've used this method before without fail in the previous versions.

    Thanks!

  20. #15
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    I am investigating on this. Will come soon.

  21. #16
    Thank you for all your efforts!

    I just tried the new version, and although it looks fantastic, it crashes my safari if there are <20 pictures in my photos folder.

    Is there a section in the CSS I can edit to set "img { display: none }" for the thumbnail previews? Its the only thing crashing my iPhone, other than that this works great.
    Last edited by x999x; 2008-04-05 at 02:34 AM.

  22. #17
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    version 1.32 is out
    now with two builds
    one with photos preview, one without

    until a better solution is out
    Last edited by kane.lai; 2008-04-05 at 09:18 AM.

  23. The Following User Says Thank You to kane.lai For This Useful Post:

    itsajeepthing03 (2008-04-07)

  24. #18
    Where can I find 1.32?

  25. #19
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    always check my second post in this thread for updated versions

  26. #20
    Quote Originally Posted by kane.lai View Post
    always check my second post in this thread for updated versions
    Thanks for the update, things are back to normal and its working like a charm. I wish I knew why Safari crashes with the icon preview on for folders with many jpegs, perhaps its just a limitation in the App or the hardware.

    One thing to note, I'm on a mac and I could not see the .dirlist file inside the updated zip file you posted. By default mac hides folders with a "." at the start of their name, unfortunately. In any case I just used the "go" feature to navigate to the folder directly and copied the updated php and css over.

    Works perfectly, thanks again!

Page 1 of 3 123 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •