Post number in viewtopic

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Suggested Hosts
Post Reply
arb
Registered User
Posts: 14
Joined: Tue Jun 15, 2010 2:45 pm

Post number in viewtopic

Post by arb » Wed Nov 05, 2014 7:28 pm

"Post number in viewtopic", shows the posts count in that particular topic.
Previously in a mod viewtopic.php?t=1690935
Can you develop a new extension for phpbb 3.1 version?

Holger
Registered User
Posts: 1756
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Post number in viewtopic

Post by Holger » Thu Nov 06, 2014 2:05 pm

+1

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: Post number in viewtopic

Post by VOLKERMORD » Thu Nov 06, 2014 3:56 pm

+100
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

TWEagle
Registered User
Posts: 284
Joined: Sat Dec 10, 2005 2:50 pm
Contact:

Re: Post number in viewtopic

Post by TWEagle » Thu Nov 06, 2014 6:23 pm

+1
Image

Komanche
Registered User
Posts: 248
Joined: Thu Aug 02, 2007 10:49 am
Location: Czech Republic

Re: Post number in viewtopic

Post by Komanche » Mon Feb 23, 2015 1:37 pm

+1

User avatar
david63
Registered User
Posts: 16527
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Post number in viewtopic

Post by david63 » Mon Feb 23, 2015 1:54 pm

This is something that I looked at several months ago and as an extension it is probably not possible.

On the face of it it would seem to be a simple thing to do but there are complications that even the mod in the OP does not cater for.

Firstly you have to consider "soft deleted" posts - do you count them or not? If you count them and they are not displayed to users then it looks strange. If you don't count them (which I believe to be the correct approach) then you have to have some way to look forward when there are multiple pages.

The next major hurdle is how do you handle the numbering when a user views the posts in the reverse order - with a basic numbering system the post numbers will be reversed.

The only way around these two problems is to write the post number into the database but that then creates its own set of problems - such as maintaining the number integrity when posts are merged or deleted and the job of adding post numbers to an existing database.

If anyone can suggest a simple process to achieve this I would be more than interested to hear it.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3897
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Post number in viewtopic

Post by kasimi » Mon Feb 23, 2015 2:26 pm

I have an extension ready for this, doing some finals tests these days. It calculates the numbers on the fly, meaning they are not stored in the database. Removing a post in the middle of a topic will shift all following post numbers. Personally I can live with this restriction, so other admins might too. :)
david63 wrote:Firstly you have to consider "soft deleted" posts
In my extension there's an option in the ACP settings to skip any non approved posts (i.e. not approved and soft-deleted posts) so that an admin can decide for himself which way makes more sense on his board.
david63 wrote:handle the numbering when a user views the posts in the reverse order
This is also taken care of. However, It requires an additional SQL query to fetch the number of non-approved posts on previous pages, provided skipping them is enabled.

It will also show the post numbers in the topic review when composing a reply as well as in the MCP topic review page. Furthermore, there's an option to switch to displaying post IDs instead of numbers.

The extension will be posted once 3.1.4-RC1 is out.

User avatar
david63
Registered User
Posts: 16527
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Post number in viewtopic

Post by david63 » Mon Feb 23, 2015 2:44 pm

I will look forward to it
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
tamarin
Registered User
Posts: 118
Joined: Tue Feb 03, 2015 9:02 pm
Location: Germany
Name: Ed

Re: Post number in viewtopic

Post by tamarin » Thu Mar 05, 2015 7:19 pm

Here and here.

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3897
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Post number in viewtopic

Post by kasimi » Tue May 05, 2015 1:01 pm

First beta is now posted: viewtopic.php?f=456&t=2314116

Post Reply

Return to “Extension Requests”