rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: vbn on May 19, 2010, 12:47:28 AM

Title: Where are Hits stored ?
Post by: vbn on May 19, 2010, 12:47:28 AM
Hello Everyone !

I am wondering where are the Hits count being stores for all the files by HFS ? I am in need of a Top 50/100 Downloads across multiple subfolders.

I have just started using HFS few days back on my EU server. Refer - http://www.vbnfiles.com/
Usage Refer - http://forum.xda-developers.com/showthread.php?t=654870

I host Windows Mobile ROMs cooked by Chefs at xda-developers and they really crave to see the top 50 or 100 downloads.

Appreciate any help.

Cheers !
Title: Re: Where are Hits stored ?
Post by: maverick on May 19, 2010, 01:59:54 AM
I am wondering where are the Hits count being stores for all the files by HFS ?

Hits are stored in the hfs.ini file.
Title: Re: Where are Hits stored ?
Post by: vbn on May 19, 2010, 02:03:58 AM
I am running the latest beta... cant find hfs.ini in the folder from where hfs is running ?  ???
Title: Re: Where are Hits stored ?
Post by: SilentPliz on May 19, 2010, 12:25:55 PM
I am running the latest beta... cant find hfs.ini in the folder from where hfs is running ?  ???

Don't save options in the registry.
Save options in a file.

Menu > Save options > To file...
Title: Re: Where are Hits stored ?
Post by: vbn on May 20, 2010, 10:03:42 AM
Well I tried that and got the ini file also but it does not have any Hits values.....I need to know from where does HFS read the Hits values when showing on webpage...I need to read these values directly from my software ...no thru HFS

Thanks
Title: Re: Where are Hits stored ?
Post by: KooolaNL on May 22, 2010, 06:03:50 PM
weird template u are using

on the default template i can see my hits fine
Title: Re: Where are Hits stored ?
Post by: maverick on May 22, 2010, 11:44:18 PM
Well I tried that and got the ini file also but it does not have any Hits values.....I need to know from where does HFS read the Hits values when showing on webpage...I need to read these values directly from my software ...no thru HFS

I just had a look at your site.  The only place 'hits' aren't shown are for folders.  For file hits 'are' shown.  If you load the default template you will see the hits for both files and folders.  When you tried to modify the default template to look like it looks like now you made a mistake somewhere which affected folder hits.  You also don't need comments for folders.

Look through your template at about lines 540-541.  You should see the following:

[+folder]
<td class='nosize'>folder<td>%item-modified%<td>%item-dl-count%

If you don't see those lines exactly as shown above, add them. 

I don't know what you mean when you say "I need to read these values directly from my software ...no thru HFS" ???  What is your software ???  If you are running a server like HFS where do you think those values would come from other than the server. :)
Title: Re: Where are Hits stored ?
Post by: vbn on May 23, 2010, 01:04:18 AM
@KooolaNL : Its a modified template from the default one. Dont have problems 'seing' the hits.

@maverick : The folder hits not showing are by design. I removed them from template...not required for me. As far reading from other software, what I mean is where is the value being stored by HFS itself. For example, File1 - Hits 100 ... now where is HFS storing this value ... in a file / in registry / etc .... I have my own Windows automation software and need to read this value directly from the actual point of storage. Hope I make some sense now :)
Title: Re: Where are Hits stored ?
Post by: maverick on May 23, 2010, 05:49:40 AM
As far as I know all of that information is stored in hfs.ini.  If you notice a part of that ini is encrypted and that's where that info you are looking for might be hiding.  If that is the case you probably won't have access to it.  From time to time rejetto drops by and will respond if he has new information share.
Title: Re: Where are Hits stored ?
Post by: vbn on May 23, 2010, 05:51:52 AM
Yeah...quite possible...thanks for helping out though...
Title: Re: Where are Hits stored ?
Post by: rejetto on May 29, 2010, 05:54:15 PM
the hits are stored in the VFS file
Title: Re: Where are Hits stored ?
Post by: maverick on May 29, 2010, 06:59:19 PM
the hits are stored in the VFS file
ahh... that makes sense.  The 'hits-total' in the hfs.ini must be just the global hits with individual file hits stored in the vfs.