First of all, i want to say hi, cause im new to this forum
so here goes:
Hi everyone
The "Top Download Tag"
With a little java script, it's possible to create a TOP DOWNLOAD tag next to your files:
(i used a hit limit of 1 to test my script, but ofcourse this can be changed)
The code to achieve this:
<script language="javascript">
<!-- Top Download tag created by Giant Eagle
var top='%item-dl-count%';
if (top > 25)
{
document.write ("<span class=flag> TOP DOWNLOAD </span>")
}
</script>
If you'll use this code, the tag will show up after 25 people have downloaded the file.
So, if you want to change this, simply change 25 to whatever number you want.
If you use the default template, you can use this code to replace the [File] thing in your template:
[file]
<tr><td>%new%<script language="javascript">var top='%item-dl-count%'; if (top > 25) { document.write ("<span class=flag> TOP DOWNLOAD </span>") }</script><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%
That should do it..
Anyway, sorry for my bad english, cause its not my first language