rejetto forum
May 24, 2012, 02:16:07 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Apparently sorting by hits is supported in 2.1...  (Read 1544 times)
0 Members and 1 Guest are viewing this topic.
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« on: February 01, 2007, 10:49:35 PM »

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 Huh?

[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.
« Last Edit: May 13, 2010, 12:59:26 AM by TSG » Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #1 on: February 01, 2007, 10:52:42 PM »

see the default template
<th><a href="?sort=d">Hits</a>

you see, it's a "d"

and i advice to remove the %encoded-folder%, you should normaly not need it.
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #2 on: February 01, 2007, 10:57:10 PM »

Thanks for that, why is it the letter D btw, I find that strange lol.

OHH i just realised, UP and DOWN, haha niiice. i will make 2 buttons i think. Smiley

I am slowly correcting a lot of old methods used from the black template in the ToG to the new HFS 2.1 stuff. One day it will be perfect, its not far off i think.
Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #3 on: February 01, 2007, 11:02:53 PM »

it stands for "downloads" Smiley
later HFS begun discriminating hits and downloads:
a hit is just a request, a download is full download of the file (as far as i remember)


atm up/down is not supported by the sorting
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #4 on: February 01, 2007, 11:07:50 PM »

lol my bad, now i get it Tongue im a little slow at times >_<

How long till up/down sorting?
Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #5 on: February 01, 2007, 11:12:34 PM »

no idea atm
Logged
rejetto forum
« Reply #5 on: February 01, 2007, 11:12:34 PM »

Do you like this software? Consider even $2
 Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 23, 2012, 05:31:41 PM