rejetto forum

folder archives

rejetto · 27 · 11383

0 Members and 1 Guest are viewing this topic.

Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
Ok people :D
I wanna this link to be displayed only in a folder (without root). How can I make it with JavaScript?


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
Code: [Select]
<script type="text/javascript" language="javascript">
if ("%folder%" != "/") {
document.write ("<a href=\"%folder%~folder.tar\">Download Archive</a>");
}
</script>

or 1 line code

Code: [Select]
<script type="text/javascript" language="javascript">document.write("%folder%" != "/" ? "<a href=\"%folder%~folder.tar\">Download Archive</a>" : "");</script>


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
Thank you Giant Eagle!
Rejetto, hfs will be good if works with rar archives :D
« Last Edit: May 08, 2007, 07:49:50 PM by Alons0 »


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
Why? What's wrong with .tar? There won't be any compression so it doesn't matter. And WinRAR can extract .tar, too.
.rar would be more interesting if the process could be reversed, like uploading an archive and have HFS decompact it.


MarkV
http://worldipv6launch.org - The world is different now.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Why? What's wrong with .tar? There won't be any compression so it doesn't matter. And WinRAR can extract .tar, too.
.rar would be more interesting if the process could be reversed, like uploading an archive and have HFS decompact it.

lol you contradicted yourself, hfs will never decompact, just create and extract, but that is a very good idea, maybe we can let people upload '.tar' archives and have an option for hfs to automatically extract them all into the upload folder or something... would be handy for uploading into image galleries etc...  '.tar' is fine, there is no need to make rejetto create other archive types if this gives us the functionality needed to do the job. All we need now though is a way to restrict who can download as archives, and what folders can be archived.


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
decompact vs. extract

English isn't my first language, I think I used a wrong word then...
http://worldipv6launch.org - The world is different now.


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
If hfs can extract a .TAR file, then creating folders remotely will finally be a fact. ^^ hurray!


jack_2000

  • Guest
I like the idea of uploading a tar then hfs could expand it to a folder.
Maybe an option(checkbox)?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
yes, it was already suggested but i forgot to put it in the to-do-list


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
if someting like extract will be included in hfs it should be a option. Normally i think admin will look at the contents of a tar, zip or rar, before expanding content. With automatic extact the filesystem can get very 'sick'  :D
your computer has no brain - use your own !



Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
why extract a .tar ? We can have an option which authorizes the view and the download of the contents of a file .tar (as zips files under windows)

For that, Hfs can create a file .tar as being a temp virtual folder to which we can apply  the ~folder.tar for the download

« Last Edit: December 18, 2007, 02:37:30 AM by mars »