themaLeecher
http://leecher.themasoftware.com/forum/

Multi-pages: Allow custom increment.
http://leecher.themasoftware.com/forum/viewtopic.php?f=3&t=6216
Page 1 of 1

Author:  Wurstmu [ March 19th, 2016, 11:38 pm ]
Post subject:  Multi-pages: Allow custom increment.

Hello,

when using multi-pages increment is hard-coded to 1. At least for phpBB a custom increment is needed, because other pages than first page are referenced by a post count:

http://forum.test.com/viewforum.php?f=2&start=25

The bold figure depends on site configuration so it needs a custom increment (or it could even be fetched from URL for known site types).

In the above example "Page from:" = 2 and "Page to:" = 3 and custom increment of 25 will result in calling the URLs:

http://forum.test.com/viewforum.php?f=2&start=25 and

http://forum.test.com/viewforum.php?f=2&start=50.

Wurstmu

Author:  Freddy [ March 19th, 2016, 11:57 pm ]
Post subject:  Re: Multi-pages: Allow custom increment

Hi,

yes, would need to think something out for this.

Just to be clear, the "Topics" leeching also has option to enter custom pages, but it's automatically converted to "start=25" , "start=50" for phpBB (and other types which use this type of pages) based on "Messages per page" value which you enter.

Author:  Wurstmu [ March 20th, 2016, 1:43 pm ]
Post subject:  Re: Multi-pages: Allow custom increment

Aaaaaaah, that sounds as the thing I was looking for, will check it out, thanks! If you don't hear from me within the next 2 days, forget my suggestion :-)

Wurstmu

Author:  Freddy [ March 20th, 2016, 2:26 pm ]
Post subject:  Re: Multi-pages: Allow custom increment

This suggestion is fine. What you described for "Multi-pages" is not possible at the moment.

What I wrote above is only for topics (mega-threads) leeching.

Author:  Wurstmu [ March 20th, 2016, 11:50 pm ]
Post subject:  Re: Multi-pages: Allow custom increment

Ha, I just figured that out when trying it out - alright, please accept it as a suggestion. For now I can easily work around it, so it's not urgent for me.

Wurstmu

Author:  Freddy [ March 26th, 2016, 10:36 am ]
Post subject:  Re: Multi-pages: Allow custom increment.

2.26
  • Added new field "Increment" for "Multi-Pages" leeching:
    • By default 1 (which was always before). Pages increased as normal from "Page from" to "Page to": 1, 2, 3, 4, etc.
    • If entered value is more than 1, it's increased as "(currentPage - 1) * increment". For example if entered 25, page numbers would be: 0, 25, 50, 75, etc.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/