[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)
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

[CDB] Post Numbers

Post by kasimi »

Extension Name: Post Numbers (requires at least phpBB 3.1.4-RC1)

Author: kasimi

Description: Adds post numbers (#1, #2, #3 etc.) either at the top of each post after the mini image, or in the post subject. Takes effect in viewtopic, reply and MCP topic review. Can also display post IDs instead. Allows the administrator to enable Copy to Clipboard when clicking on the post number.

The idea of this extension is based on the 3.0 MOD Post number in viewtopic.

Screenshots:
  • Viewtopic
    Image
  • Copy to clipboard with a single left-click on the post number
    Image
  • ACP Configuration page
    Image
Download v1.0.4: https://github.com/kasimi/phpbb-ext-pos ... v1.0.4.zip

Repository: https://github.com/kasimi/phpbb-ext-postnumbers

Installation:
  1. Copy the contents of the archive to /ext/kasimi/postnumbers.
    Make sure the file /ext/kasimi/postnumbers/composer.json is present.
  2. Navigate to the ACP » Customise » Manage extensions page.
  3. Click Enable next to Post Numbers in the Disabled Extensions section.
Changelog:
  • 2015-05-05 v1.0.0 released
  • 2015-12-05 v1.0.1 released
    1. Added ACP preference to display numbers/IDs bold
    2. Added <span> to post numbers/IDs to allow further customization
      Use the following CSS in your style:

      Code: Select all

       span.post-number {
          color: red; 
      }
  • 2015-12-12 v1.0.2
    1. Fixed post numbers when displaying posts from previous x days
    2. Don't display post numbers when sorting by author or subject
    3. Lots of code cleanup
  • 2015-12-24 v1.0.3
    1. Added copy to clipboard
  • 2015-12-29 v1.0.4
    1. Added location preference to specify where post numbers should be added:
      1. Between post image and post author name (default)
      2. In post subject
Last edited by kasimi on Wed Feb 03, 2016 11:04 pm, edited 9 times in total.
Holger
Registered User
Posts: 1886
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [BETA] Post Numbers

Post by Holger »

Very nice! Thank you!
User avatar
uruguayito
Registered User
Posts: 266
Joined: Mon Dec 13, 2010 2:46 pm
Location: Montevideo - Uruguay

Re: [BETA] Post Numbers

Post by uruguayito »

works perfect for me.
thank you
I speak spanish
Sorry for my bad english
Holger
Registered User
Posts: 1886
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [BETA] Post Numbers

Post by Holger »

PR for Swedish translation sent
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 »

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

Re: [BETA] Post Numbers

Post by david63 »

I am impressed so far but there are some issues.
  • Soft deleted posts are included in the numbering - as a minimum there needs to be an option to exclude them. Not all Admins will want members to know that posts have been soft deleted.
  • Order by Author does not work.
  • Order by Subject does not work.
  • 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.
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 »

Thanks for your post.
  • 1) An option for this is already included in the ACP settings, see screenshot in first post.
  • 2 & 3) This extension only works for users who have set their Display topics ordering by to Post time. If a user has selected a different option, post numbers are not displayed. As you pointed out, different users can have different settings and since this extension calculates the numbers on the fly, it can't know the correct numbers for posts being displayed in an order other than post time.
  • 4) I didn't even know this setting existed. :) I will look into it.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [BETA] Post Numbers

Post by david63 »

kasimi wrote:An option for this is already included in the ACP settings, see screenshot in first post.
Sorry missed that
kasimi wrote: & 3) This extension only works for users who have set their Display topics ordering by to Post time. If a user has selected a different option, post numbers are not displayed. As you pointed out, different users can have different settings and since this extension calculates the numbers on the fly, it can't know the correct numbers for posts being displayed in an order other than post time.
That is the main problem with calculating on the fly
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
[email protected]
Registered User
Posts: 191
Joined: Sun Sep 15, 2013 11:49 am
Location: bb3.mobi
Name: Anvar Stybaev

Re: [BETA] Post Numbers

Post by [email protected] »

Lite version [BETA] NumPosts
[DEV/Beta] More extensions

Hopefully Google correctly translate my text// I do not support in private messages!
chfs
Registered User
Posts: 247
Joined: Mon Feb 04, 2013 10:01 am

Re: [BETA] Post Numbers

Post by chfs »

Kasimi, very very nice and super this extension!

Perfect Work, Thank You 8-)
I'm sorry for my english. :?
Movie
Registered User
Posts: 127
Joined: Sun Nov 02, 2014 2:54 pm
Location: Chicago Illinois Area.

Re: [BETA] Post Numbers

Post by Movie »

Just installed and when I try to activate it returns this error.


Something went wrong during the request and an exception was thrown. The changes made before the error occurred were reversed to the best of our abilities, but you should check the board for errors.

The migration "\kasimi\postnumbers\migrations\v1_0_0" is not fulfillable, missing migration "\phpbb\db\migration\data\v31x\v314rc1".

Return to the extension list
Any ideas?

Thanks.
View signatures turned off.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: [BETA] Post Numbers

Post by Jessica »

Great to see this turned into an extension
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: [BETA] Post Numbers

Post by Oyabun1 »

Movie wrote:Any ideas?
Seems your board hasn't been correctly updated to 3.1.4
kasimi wrote:requires at least phpBB 3.1.4-RC1
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Movie
Registered User
Posts: 127
Joined: Sun Nov 02, 2014 2:54 pm
Location: Chicago Illinois Area.

Re: [BETA] Post Numbers

Post by Movie »

Oyabun1 wrote:
Movie wrote:Any ideas?
Seems your board hasn't been correctly updated to 3.1.4
kasimi wrote:requires at least phpBB 3.1.4-RC1
Yes your right I had tried it on the 3.1.3 install rather than the 3.1.4-RC1 install, my bad THANKS for pointing this out, now its installed on the correct build it works perfectly only thing I could see wrong is the font for the number presented needs to be bigger or at the very least needs to be bold .

Thanks for the great mod.
View signatures turned off.
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 »

what is post IDs
and what is post numbers ?
Can you explain plz to understand
I don't understand what is it post numbers

Return to “Extensions in Development”