Posted by: BWG - Friday, 25 November 2022 23:57:43 |
---|
Hi, When viewing a topic the page buttons appear under the posts. Is there an option to also display above the posts or perhaps show a text box which allows you to type in the page number and go directly to it? As an example here is a link to a topic on my forum which has just been upgraded to 3.1.8. The page buttons only appear under the posts, [url]https://www.theweatheroutlook.com/twocommunity/Posts/t23182-Model-Output-thread--4th-September-12-30/page47[/url] Thanks BWG |
Posted by: tha_watcha - Saturday, 26 November 2022 12:47:25 |
---|
I added back the linked pager option here... [url]https://github.com/YAFNET/YAFNET/commit/f05371bc3cd39d3454cdd5fcd7675aeb0e004bca[/url] that means you can now add a second pager on the posts page [code=csharp]<YAF:Pager ID="PagerTop" runat="server" LinkedPager="Pager" UsePostBack="False" />[/code] |
Posted by: BWG - Sunday, 27 November 2022 13:25:51 |
---|
Thanks. That seems to work fine. 👍 I'm also putting an additional breadcrumb at the bottom on the page by adding a second PageLinks control and giving it an ID PageLinksBottom. That doesn't cause any problems as far as I can tell. [code=markup] <YAF:PageLinks ID="PageLinksBottom" runat="server" />[/code] |
Posted by: BWG - Sunday, 27 November 2022 17:07:28 |
---|
Actually I'm getting a strange intermittent problem which happens when the linked pager is present. The forum error page is displaced and I've attached the stacktrace from it in a text file. It only happens on some threads and I can't identify a pattern other than perhaps when there are more than X (50???) pages in the thread. Another odd thing is the path in the stacktrace (C:\inetpub\wwwroot\YAFNET_3_1_8_source) is not correct for my server so I don't know where it is being picked up from. [attach]2279[/attach] |
Posted by: tha_watcha - Monday, 28 November 2022 09:28:56 |
---|
I cannot reproduce it but i committed a fix to resolve the issue [url]https://github.com/YAFNET/YAFNET/commit/ab9495abd1c4daa9a6ef985120487fcc5a61ff50[/url] |
Posted by: BWG - Monday, 28 November 2022 09:41:54 |
---|
In that committ you have: [code=markup]var addControl = !(user.IsGuest && !this.PageBoardContext.IsAdmin);[/code] That does not compile and I think it should be: [code=markup]var addControl = !(user.ActiveFlags.IsGuest && !this.PageBoardContext.IsAdmin);[/code] |