[CDB] Post Numbers

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Movie
Registered User
Posts: 127
Joined: Sun Nov 02, 2014 2:54 pm
Location: Chicago Illinois Area.

Re: [BETA] Post Numbers

Post by Movie »

alhitary wrote:what is post IDs
and what is post numbers ?
Can you explain plz to understand
I don't understand what is it post numbers
The author already post screen captures at the beginning of this topic if you have not been to phpbb college your probably never going to figure it out, if their was a option for me to attach a picture I would mark up his screen captures where anybody could understand then post them up for the whole world to see.

Sorry I can not be more help I am not sure I can describe it but I can show you.
View signatures turned off.
Holger
Registered User
Posts: 1886
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [BETA] Post Numbers

Post by Holger »

Post IDs are continously counted +1 when a post is saved in the DB.
If you have 10,000 posts, then the last posts ID is 10000 (see the URL of the post).

The post number is the posts number within a topic.
So the first post within a topic is post number 1, and if I write the first reply in a topic the post number is 2 (but it can still be post ID 10000).
User avatar
alhitary
Registered User
Posts: 868
Joined: Wed Jan 17, 2007 7:51 am
Location: ROY
Name: Bassel Taha

Re: [BETA] Post Numbers

Post by alhitary »

Holger wrote:Post IDs are continously counted +1 when a post is saved in the DB.
If you have 10,000 posts, then the last posts ID is 10000 (see the URL of the post).

The post number is the posts number within a topic.
So the first post within a topic is post number 1, and if I write the first reply in a topic the post number is 2 (but it can still be post ID 10000).
Thanks
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [BETA] Post Numbers

Post by kasimi »

Thanks for the languages!
Movie wrote:the font for the number presented needs to be bigger or at the very least needs to be bold
See new v1.0.1 in the first post. :)
pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [BETA] Post Numbers

Post by pantherfan »

Thanks for this.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [BETA] Post Numbers

Post by kasimi »

You're very welcome. :)
david63 wrote:
  • If an option for previous days other than all days is selected then only the posts that are displayed are numbered. Not all users will necessarily have the same option set and if anyone is referring to a post by number then that number needs to be the same for all users.
I'm still indecisive how to solve this. The easiest way from an implementation point of view would be to only display post numbers if both
  1. posts are sorted by post_time and
  2. the 'Display posts from previous' is set to 'All days'
In all other cases there would be no post numbers. If this prevents more confusion than it causes, I don't know. Any feedback or other ideas?
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11137
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [BETA] Post Numbers

Post by Raul [ThE KuKa] »

I send "PR" Spanish translation. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [BETA] Post Numbers

Post by david63 »

kasimi wrote:You're very welcome. :)
david63 wrote:
  • If an option for previous days other than all days is selected then only the posts that are displayed are numbered. Not all users will necessarily have the same option set and if anyone is referring to a post by number then that number needs to be the same for all users.
I'm still indecisive how to solve this. The easiest way from an implementation point of view would be to only display post numbers if both
  1. posts are sorted by post_time and
  2. the 'Display posts from previous' is set to 'All days'
In all other cases there would be no post numbers. If this prevents more confusion than it causes, I don't know. Any feedback or other ideas?
To be honest, and after deliberating on this for some time now, I do not believe that it is possible to allocate post numbers "on the fly". Yes it will work in a "normal" envirionment but with the other options that are available within phpBB then I cannot see any way forward with this - I abandoned any attempt at this a long time ago.

I am not keen on the idea of only showing the post number in certain circumstances and omitting it in others as that too could get confusing.

As I see it the post number needs to be held in the database along with the post but that then involves a massive overhead of maintenance when posts are moved or deleted. The only other option is to show the post id as a reference, but that may be confusing to some members.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [BETA] Post Numbers

Post by kasimi »

david63 wrote:I am not keen on the idea of only showing the post number in certain circumstances and omitting it in others as that too could get confusing.
I don't think it's such a bad idea to display post numbers only in above mentioned circumstances, especially since these circumstances apply to the general use case, while posts not being sorted by post_time or posts from certain days being skipped do not.

Let's assume for a moment the post numbers are stored in the database and the user sorts posts by anything other than post_time. All the post numbers would be mixed up, wouldn't they be? It would still be confusing.

I understand what you mean, the fact that it's impossible to cover all cases is somewhat discouraging, but I'd like to have a solution that works for the majority of users nonetheless.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [BETA] Post Numbers

Post by david63 »

kasimi wrote:Let's assume for a moment the post numbers are stored in the database and the user sorts posts by anything other than post_time. All the post numbers would be mixed up, wouldn't they be? It would still be confusing.
But that would not matter as the post number would still be correct. The whole premise of post numbers is that they relate to a specific post within a topic and no matter how the posts are displayed that post number remains the same.

I fully agree that the vast majority of users will display the posts in an order that will allow this to work.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [BETA] Post Numbers

Post by kasimi »

david63 wrote:But that would not matter as the post number would still be correct.
True. The question is rather whether mixed up post numbers are still useful.
david63 wrote:If an option for previous days other than all days is selected then only the posts that are displayed are numbered.
This is now supported in v1.0.2. When displaying posts from previous x days, the numbers match those that are assigned when displaying all posts.

Moreover, post numbers are only displayed if posts are sorted by time. Sorting by author or subject will result in post numbers not being displayed. Note that when displaying post IDs instead of numbers, these restrictions don't apply: post IDs are always displayed.

See first post for download link.
User avatar
Theriddler1
Registered User
Posts: 451
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶

Re: [BETA] Post Numbers

Post by Theriddler1 »

Thanks great work but i mis something withing this extension other than the the mod Post number in viewtopic
https://www.phpbb.com/customise/db/mod/ ... viewtopic/
Additionally, clicking on that number will popup a window with the direct link to that post
I would love to see that feature back in this extension.
Theriddler - Former Moderator @ phpBB.nl | phpBBservice.nl Team-member
Image My Extensions | buy me a beer Image
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: [BETA] Post Numbers

Post by kasimi »

Thanks for your feedback.

What purpose does the popup serve? If you need the post link, can't you use your browser's context menu to copy it? A popup for that feels inconvenient.
User avatar
null2
Registered User
Posts: 520
Joined: Wed Jan 20, 2010 11:03 am

Re: [BETA] Post Numbers

Post by null2 »

Portuguese-Brazil translation: https://www.sendspace.com/file/6gavin
Sorry for my bad english. I'm from USA.

Return to “Extensions in Development”