rejetto forum

limit uploads

0 Members and 1 Guest are viewing this topic.

Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I would like to limit uploads on main page and be able to create another page for new uploads.
Can I do it with hfs 2.2 template?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
limit uploads on the main page? what kind of limit?


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
Yes on the main page
Like limiting 20 downloads per page.
after the twenty limit it adds a new page.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
downloads? you started saying uploads. What's the right one?


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I'm sorry I don't mean to confuse you.
Set the amount of downloads per page.
when it reaches that limit, the next upload created
will start a new page.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
try to be more specific, i don't understand what you need.
i don't see why downloads should create pages.
a screen shot may help.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I am trying to make a site like a torrent site. So what I'm trying to do is limit the amount of files per page. Is there a way to set a limit on files?


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
 It seems to me that it is explained in the wiki.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile

Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
Quote
What wiki is it listed under?
Full of instructive reading
http://www.rejetto.com/wiki/index.php?title=HFS:_URL_parameters

Be exactly interested more in
Code: [Select]
offset=nn
List files from the offset nn(0 being the first file)
limit=nn
Limit the listing with nn items
page=mm,nn 
List files from the page mm with nn items

And to go farther
http://www.rejetto.com/forum/index.php?topic=1939.msg1010138#msg1010138