YAFLogo

zXSwordXz
  • zXSwordXz
  • 62.2% (Friendly)
  • YAF Camper Topic Starter
10 years ago
I have a quick question. Right now, if a Topic have more than 3 pages, the option display 1,2,3 > ,>>. Is it possible to set the amount of pages it display by default. For example, I would like to set it so it show 1,2,3,4,5,6,7>,.>>, that is 7 pages before it give the next page and Last Page option. See attachment for print screen.

Thanks,

Anthony

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

I have a quick question. Right now, if a Topic have more than 3 pages, the option display 1,2,3 > ,>>. Is it possible to set the amount of pages it display by default. For example, I would like to set it so it show 1,2,3,4,5,6,7>,.>>, that is 7 pages before it give the next page and Last Page option. See attachment for print screen.

Thanks,

Anthony

Originally Posted by: zXSwordXz 

Not that can't be changed the number 3 is hard coded in the source code.

zXSwordXz
  • zXSwordXz
  • 62.2% (Friendly)
  • YAF Camper Topic Starter
10 years ago
Thank you for the explanation. Is it possible for you to navigate/direct me where in the source code this setting is coded? Just in case I decided to recompile the source code.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

Thank you for the explanation. Is it possible for you to navigate/direct me where in the source code this setting is coded? Just in case I decided to recompile the source code.

Originally Posted by: zXSwordXz 

Sure, in the Project YAF.Controls/Pager.cs Line 465

int iEnd = this.CurrentPageIndex + 3;