Directory listing with upload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • arnage
    replied
    To change the JavaScript image preview to PHP can be done this way,
    at the top define default value of new thumb so that can be easily changed:

    PHP Code:
    $resizethumb 50
    ... than 269. and 270. lines change like this:

    PHP Code:
    $filesrc 'dlf/i.php?f='.$files[$i].'&resize='.$resizethumb;
    $thumb '<img src="'.$filesrc.'" width="" height="" alt="'.$files[$i].'"/>'
    ... 284. line place the $thumb somewhere or change to something like this:

    PHP Code:
    echo ''.$thumb.' <a href="'.$fileurl.'" class="'.$class.'"><img src="dlf/'.$icon.'" alt="'.$files[$i].'"/>'
    ... open dlf/i.php and 21. line change to:

    PHP Code:
    $width = isset($_GET['resize']) ? abs(intval($_GET['resize'])) : 50
    and ofcourse remove js from head tag.
    Btw in this way edited script DTD can be changed from Basic to Mobile and it will remain vaild markup.
    Last edited by arnage; 23.11.11, 15:05.

    Leave a comment:


  • arnage
    replied
    Nope, i gave the original script, edited script with corrected bugs, and that's enough from me. ;)

    Leave a comment:


  • mayurss786
    replied
    can you give a demo ........... thnxx

    Leave a comment:


  • arnage
    replied
    Thanks but i just edited the script.
    And now i had upload slightly edited archive so who wants can download it again.

    Leave a comment:


  • softwarefreak
    replied
    Originally posted by arnage View Post
    This is my edit of this script, if someone have any suggestion please post.
    Thanks bro,there's so much to learn from u

    Leave a comment:


  • arnage
    replied
    This is my edit of this script, if someone have any suggestion please post.
    Attached Files
    Last edited by arnage; 20.11.11, 14:31. Reason: Reupload

    Leave a comment:


  • thewayur
    replied
    thats too much great script, it will be more good if it categorize according to media type

    Leave a comment:


  • akela
    replied
    you can use php function to display jar files preview. this file are in sea script, combine those jar files in your scripts.

    Leave a comment:


  • subzero
    replied
    Originally posted by Nepsalone View Post
    any idea how to show jar thumbnail?
    Start working son only one way is to screen shot the jar game or app no other way sorry to tell you

    Leave a comment:


  • iBeyond
    replied
    Originally posted by Nepsalone View Post
    any idea how to show jar thumbnail?
    maybe You'll have to pear a "Java Emulator" @ your hosting server.. (it's very complicated)

    manually uploading screenshoots is the only option.
    Cuz jar files are zip archives & far different from Image Or Video files so ffmpeg will not work
    Last edited by iBeyond; 24.07.11, 15:51.

    Leave a comment:


  • Nepsalone
    replied
    any idea how to show jar thumbnail?

    Leave a comment:


  • subzero
    replied
    @ joban111

    Search on my profile for the code to show video image with php

    Leave a comment:


  • arnage
    replied
    I really don't know for video, haven't upload it. Like i said, its just for some personal purposes for me, no videos.
    Im sharing it most because its nice coded.
    Last edited by arnage; 24.07.11, 14:08.

    Leave a comment:


  • joban111
    replied
    Originally posted by arnage View Post
    Very nice directory list script with sorting files, prew images and upload function wich can be set on or off. I use this for some personal purposes.
    does itt display thumb for videos as well?

    Leave a comment:


  • arnage
    started a topic Directory listing with upload

    Directory listing with upload

    Very nice directory list script with sorting files, prew images and upload function wich can be set on or off. I use this for some personal purposes.
    Attached Files
Working...
X