rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Flynsarmy on February 09, 2007, 04:27:52 PM

Title: Files List
Post by: Flynsarmy on February 09, 2007, 04:27:52 PM
Any chance we could get a [Filelist] field that would allow us to create a page containing the files list?
At the moment it's relatively useless.
Title: Re: Files List
Post by: TSG on February 09, 2007, 04:46:30 PM
The idea behind this is that maybe we can show the files, on the click of a link or button, as a list of url-links styled to the template in place of the ToG table. We are unsure how to go about this atm.

Something similar (not exactly of course) to what i've whipped up here in my image editor.

One shows the ToG as it is now.

And the other shows the ToG after the button is pressed. with a file-list of url's which also link to download the file :D

Please share your ideas on this.



[attachment deleted by admin]
Title: Re: Files List
Post by: Giant Eagle on February 11, 2007, 12:33:45 PM
.... ???

Why dont you use filelist.tpl and configure it to look like the ToG. Make a button link to (http://%host%)%folder%~files.lst and you're done :D

Or am i getting the wrong idea now?..
Title: Re: Files List
Post by: TSG on February 11, 2007, 02:56:21 PM
only problem with that is users will have to implement yet another thing to run the ToG template, i suppose this is possible tho... i have never even attempted to edit the filelist.tpl before....

Ok i have decided that editing the filelist.tpl is the best idea, but how do i get to the default filelist.tpl :P....
Title: Re: Files List
Post by: Garphy on February 11, 2007, 04:41:21 PM
this is default one:
Code: [Select]
%files%

[files]
%list%

[file]
http://%host%%encoded-folder%%item-url%<br>
Title: Re: Files List
Post by: TSG on February 11, 2007, 04:43:41 PM
Thnx for the help, i forgot to post back, Giant Eagle helped me over MSN.
Title: Re: Files List
Post by: rejetto on May 01, 2007, 03:23:44 PM
so you would like to be able to include the filelist.tpl in the main template?
Title: Re: Files List
Post by: TSG on May 01, 2007, 03:50:36 PM
man this was ages ago... i kind of remember, i think the general idea was to have a button that we could open the file list inside the template, and the links would actually function properly to download the file. This could be achieved by user sections though i think... i don't know :P i just find the file list kind of useless as a text file and think it would be better like this for my template, of course i would still provide a default file list link :) anyhoo sleep tiem
Title: Re: Files List
Post by: rejetto on May 01, 2007, 03:53:25 PM
i know it's old, better late than never. ;)
just tell me if you need the thing i said, because i didn't understand this from the reply.
Title: Re: Files List
Post by: TSG on May 01, 2007, 04:03:06 PM
ye it would be cool to have it in the main template :) so long as it achieves the ability to edit it without having a seperate file, and of course give us the ability to be able to make something identical to the image i made... i have a day off university tomorrow so i'll jump back on then, its 2am :P and i got up yesterday at 5:30am >_<
Title: Re: Files List
Post by: rejetto on May 01, 2007, 04:11:12 PM
to achieve that result, the better thing is to:
- add a <script> to the [file] section, where you have a filelist var that appends the new file, like filelist += "the new text<br>"
-  document.getElementById('innerBoxDiv').innerHTML = fileList

no page reloading
Title: Re: Files List
Post by: Giant Eagle on May 01, 2007, 04:22:09 PM
You need <script> for every single file.. makes it a bit useless tho
Title: Re: Files List
Post by: lica on January 16, 2009, 06:40:14 AM
I want invitation? :-\
Title: Re: Files List
Post by: rejetto on January 20, 2009, 05:32:10 PM
please explain better