121
HTML & templates / Apparently sorting by hits is supported in 2.1...
« on: February 02, 2007, 04:49:35 AM »
Here's the problem.
I have been editing the ToG and i want to put in sorting by hits because i read that this is now supported in 2.1, and it is also in the context menus of HFS to set as a default. Now what i want to know is why <a href="%encoded-folder%?sort=h">Hits</a></th> does not work? is this the right code, if not what is the letter used for sorting by hits.
If i have it correct. Go to my server and you will see that it is not working for some reason
[files]
<table class=table width="100%" cellspacing=0 cellpadding=0>
<tr>
<th style="border:0px;"><a href="%encoded-folder%?sort=n">File</a></th>
<th><a href="%encoded-folder%?sort=s" id=th>Size</a></th>
<th><a href="%encoded-folder%?sort=t">Age</a></th>
<th><a href="%encoded-folder%?sort=h">Hits</a></th>
</tr>
%list%
</table>
Correct Code:
[files]
<table class=table width="100%" cellspacing=0 cellpadding=0>
<tr>
<th style="border:0px;"><a href="%encoded-folder%?sort=n">File</a></th>
<th><a href="%encoded-folder%?sort=s" id=th>Size</a></th>
<th><a href="%encoded-folder%?sort=t">Age</a></th>
<th><a href="%encoded-folder%?sort=d">Hits</a></th>
</tr>
%list%
</table>
or:
[files]
<table class=table width="100%" cellspacing=0 cellpadding=0>
<tr>
<th style="border:0px;"><a href="?sort=n">File</a></th>
<th><a href="?sort=s" id=th>Size</a></th>
<th><a href="?sort=t">Age</a></th>
<th><a href="?sort=d">Hits</a></th>
</tr>
%list%
</table>
Whatever you prefer.
Cheers.
I have been editing the ToG and i want to put in sorting by hits because i read that this is now supported in 2.1, and it is also in the context menus of HFS to set as a default. Now what i want to know is why <a href="%encoded-folder%?sort=h">Hits</a></th> does not work? is this the right code, if not what is the letter used for sorting by hits.
If i have it correct. Go to my server and you will see that it is not working for some reason
[files]
<table class=table width="100%" cellspacing=0 cellpadding=0>
<tr>
<th style="border:0px;"><a href="%encoded-folder%?sort=n">File</a></th>
<th><a href="%encoded-folder%?sort=s" id=th>Size</a></th>
<th><a href="%encoded-folder%?sort=t">Age</a></th>
<th><a href="%encoded-folder%?sort=h">Hits</a></th>
</tr>
%list%
</table>
Correct Code:
[files]
<table class=table width="100%" cellspacing=0 cellpadding=0>
<tr>
<th style="border:0px;"><a href="%encoded-folder%?sort=n">File</a></th>
<th><a href="%encoded-folder%?sort=s" id=th>Size</a></th>
<th><a href="%encoded-folder%?sort=t">Age</a></th>
<th><a href="%encoded-folder%?sort=d">Hits</a></th>
</tr>
%list%
</table>
or:
[files]
<table class=table width="100%" cellspacing=0 cellpadding=0>
<tr>
<th style="border:0px;"><a href="?sort=n">File</a></th>
<th><a href="?sort=s" id=th>Size</a></th>
<th><a href="?sort=t">Age</a></th>
<th><a href="?sort=d">Hits</a></th>
</tr>
%list%
</table>
Whatever you prefer.
Cheers.