rejetto forum

function with the new version

0 Members and 1 Guest are viewing this topic.

Offline bidoufr

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
Your tools is very easy to use. Thanks ;)

I would like to know if is possible to add a function in the new version.

When I display a screen with sub folders, I want to download all the files in one of sub folders.

Is it possible to write this function ?


Thanks ;)

Bidou
Toulouse - France


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Hello
what version are you using?
did you see the "folder archive" link ?


Offline bidoufr

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
I use the 2.2d version

I'm in the expert mode.

I don't find this function.

I want download all files in a directory :)

example : I've a directory DIR1, in this directory I've 20 files.
When I click on the sub directory DIR1, there are two options :
- I can see the files on the sub directory
- I can download the sub directory with all files.

I research this function ;)


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
« Last Edit: February 13, 2008, 10:24:08 AM by mars »


Offline bidoufr

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
Merci pour l'info ;)

Mais le but du jeu était d'avoir sur l'interface un bouton qui te permettes de le faire cette operation sans la saisir dans la barre d'adresse de ton browser.



Offline bidoufr

  • Occasional poster
  • *
    • Posts: 4
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
With the default template of HFS 2.2 you can enter the subfolder, then click on "folder archive" on the very bottom/right of the page.

To keep the default template but to have this change of your own, you can
right click on the root/home
advanced
diff template
a dialog will popup
Enter this text
Code: [Select]
[folder]
<tr><td>%new% %protected% <a href="%item-url%"><img src="/~img_folder" /> <b>%item-name%</b></a>%comment%<td align=center><i>folder</i><td align=right>%item-modified%<td align=right>%item-dl-count%

and edit it at your wish, by adding an html link to the archive, that is
Code: [Select]
<a href='%item-url%/~folder.tar'>Download this subfolder</a>


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
comme le dit si bien rejetto , dans ta section folder tu places un lien  comme ceci

<a href='%item-url%/~folder.tar'>Download this subfolder</a>

ou y ajouter un bouton

<button onclick="window.location='%item-url%/~folder.tar';">Download this subfolder</button>
Attention car ici les guillements et les apostrophes ont une fontion bien présice et doivent rester dans vet odre.

au final:

[folder]
<tr>
  <td>%new% %protected%<a href="%item-url%"><img src="/~img_folder" /> <b>%item-name%</b></a>%comment%<p><button onclick="window.location='%item-url%/~folder.tar';">Download this subfolder</button>
  <td align=center><i>folder</i>
  <td align=right>%item-modified%<td align=right>%item-dl-count%