rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: taha on March 11, 2009, 02:28:16 AM
-
This Question in the list but i cannot find where the forum is located. i have search using search but did not have result. how to make list of top 10 download?
-
i'm sorry but this is not available at the moment in HFS
-
Then defy rejetto, one do not know any more his classics ;D
http://127.0.0.1/a/?sort=d&reverse&recursive&folders-filter=\&limit=10
With French, nothing is impossible, we have no oil, but we have ideas ;)
-
very nice, but is there a way to put the result in a small news box like the one in right hand showing speed downloads and hits .. etc
-
Heres an old post about top downloads that should be helpful.
http://www.rejetto.com/forum/index.php?topic=4064.msg1020597#msg1020597 (http://www.rejetto.com/forum/index.php?topic=4064.msg1020597#msg1020597)
Be sure to check the whole thread, theres more code at the end.
-
i mean that how to put top 10 download o my file not my folder.. and i want to make it in new table. how to explain eks...
-
this command of mars shows the top 10 files not folders
-
http://127.0.0.1/a/?sort=d&reverse&recursive&folders-filter=\&limit=10
With French, nothing is impossible, we have no oil, but we have ideas ;)
very nice idea mars.
sadly it does not work. :(
as far as i remember, the current (and only) "limit" function applies beore the sorting.
so the result won't be the top 10 downloads, but just the first 10 files in the list (sorted by downloads).
the other version of limit is in the to-do list.
as an additional comment: when this method will work in the future, it will be very heavy for the system, so it should be called once per day, and the result copy&pasted in the place we want to show.
-
it works for me in this way and i realize its the same as rejetto just mentioned
-
sadly it does not work.
as far as i remember, the current (and only) "limit" function applies beore the sorting.
are you really sure??
function Tmainfrm.getFolderPage(folder:Tfile; conn:ThttpConn; otpl:Tobject):string;
.....
// build %list% based on dir[]
numberFolders:=0; numberFiles:=0; numberLinks:=0;
totalBytes:=0;
oneAccessible:=FALSE;
fast:=TfastStringAppend.Create();
0) listing:=TfileListing.create();
hasher:=Thasher.create();
hasher.loadFrom(folder.resource);
try
1) listing.fromFolder( folder, conn, recur );
if not recur or (otpl <> filelistTpl) then
2) listing.sort(conn, diffTpl['sort by']);
for i:=0 to length(listing.dir)-1 do
begin
application.ProcessMessages();
if conn.state = HCS_DISCONNECTED then exit;
data.lastActivityTime:=now();
handleItem(listing.dir)
end;
list:=fast.reset();
finally
3) listing.free;
fast.free;
hasher.free;
end;
;) ;D
-
quite sure.
what's in your opinion the "limit" function?
it is not "listing.free"
it's inside fromfolder.
-
it works for me in this way and i realize its the same as rejetto just mentioned
works for you? double check ;)
-
i said the same as u mentioned about it
and also posted the image too
it didnt work for whole site it just shows the file on root and i have only one so it shows it , but folder with many files have no result
-
see this ...
i am not sure who is right
rejetto or mars :/
-
actually rejetto is right, but if you have the possibility to use the french version with the mode page made by me, what you will is possible by sorting and selecting the numbers of files by page with the french default template, you have to remove or rename the section [special:strings] to the english version of this template
-
ah alright, i wonder if with some new build we can add the top10 box like PhpNuke or other templates :)
-
ah alright, i wonder if with some new build we can add the top10 box like PhpNuke or other templates :)
use the attached template
-
use the attached template
You use <a href="{.get|url|sort=d|folders-filter=\|recursive.}"></a>
I use <a href="%encoded-folder%?sort=d"></a> (old school) :)
Same output results...
It displays all file contents by recursive hits. Not a top 10 list only.
-
see this ...
i am not sure who is right
rejetto or mars :/
i like your templates.. can i have you templates coding??? please... im a noob. did not know how to make it on my own.
-
sure will give it a try :)
-
i am using Rawr 0.0.7
check it in template section
-
I use <a href="%encoded-folder%?sort=d"></a> (old school) :)
Same output results...
it works while you have no other parameters.
in case, they are lost with your method.