rejetto forum

How to disable hits

0 Members and 1 Guest are viewing this topic.

Offline Murdock

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
I have searched but it isn,t clear for me how can i disable hits or make it only visible for admins?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13520
    • View Profile
You must manually edit the template, removing the hits part.
You'll find the command in the menu.


Offline efournes

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Wow.  I searched for a while and didn't really find an obvious answer... so here it is:

Here's an excerpt from the original template.  You need to remove the bits that I've put in bold and underlined.

-----

[files]
<div id=folderstats>%number-folders% folders,  %number-files% files - Total: %total-size%</div>
<table cellpadding=5>
<th><a href="?sort=n">Filename</a>
<th><a href="?sort=s">Filesize</a>
<th><a href="?sort=t">Filetime</a>
<th><a href="?sort=d">Hits</a>
%list%
</table>
<div id=tools>
<a href="~files.lst?recursive">File list</a>
%archive%
</div>

[archive]
<br><a href="~folder.tar?recursive">Folder archive</a>

[protected]
<img src='/~img_lock'>

[file]
<tr><td>%new% %protected% <a href="%item-url%"><img src="/~img_file" /> %item-name%</a>%comment%<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%

[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%

-----

Sorry that wasn't in "code" format--that doesn't show too well in some browsers and doesn't allow highlighting.

Explanation:  The line removed from the [files] section just removes the header from the listing, but not the actual hits display.  The pieces of the line removed in the [file] and the [folder] sections actually remove the hits counter display from the table.

Hope this helps.


Offline danno

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
After all that ... how do you remove the Hits column that remains behind?


Offline Age

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
    • Integers of K
As efournes underlined above, you should be able to remove the <td align=right>%item-dl-count% and <td align=right>%item-dl-count% from the [file] and [folder] sections.