[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!
Suggested Hosts
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
Extension Customisations
Extension Customisations
Posts: 1896
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

[CDB] Post Numbers

Post by kasimi » Tue May 05, 2015 12:57 pm

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: 1579
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [BETA] Post Numbers

Post by Holger » Tue May 05, 2015 1:13 pm

Very nice! Thank you!
Are you looking for a phpBB Expert? Find a phpBB Expert!
Are you a phpBB Expert? Post your resume!
http://www.phpbbexperts.com

User avatar
uruguayito
Registered User
Posts: 263
Joined: Mon Dec 13, 2010 2:46 pm
Location: Montevideo - Uruguay

Re: [BETA] Post Numbers

Post by uruguayito » Tue May 05, 2015 1:21 pm

works perfect for me.
thank you
I speak spanish
Sorry for my bad english

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

Re: [BETA] Post Numbers

Post by Holger » Tue May 05, 2015 1:21 pm

PR for Swedish translation sent
Are you looking for a phpBB Expert? Find a phpBB Expert!
Are you a phpBB Expert? Post your resume!
http://www.phpbbexperts.com

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

Re: [BETA] Post Numbers

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

Merged, thank you.

User avatar
david63
Jr. Extension Validator
Posts: 12655
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [BETA] Post Numbers

Post by david63 » Tue May 05, 2015 3:21 pm

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!
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 or as they will be ignored

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

Re: [BETA] Post Numbers

Post by kasimi » Tue May 05, 2015 4:49 pm

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
Jr. Extension Validator
Posts: 12655
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [BETA] Post Numbers

Post by david63 » Tue May 05, 2015 5:51 pm

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!
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 or as they will be ignored

User avatar
Anv@r.all
Registered User
Posts: 191
Joined: Sun Sep 15, 2013 11:49 am
Location: stepnyak.kz
Name: Anvar Stybaev
Contact:

Re: [BETA] Post Numbers

Post by Anv@r.all » Wed May 06, 2015 5:26 am

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: 223
Joined: Mon Feb 04, 2013 10:01 am

Re: [BETA] Post Numbers

Post by chfs » Wed May 06, 2015 7:03 am

Kasimi, very very nice and super this extension!

Perfect Work, Thank You 8-)
I'm sorry for my english. :?

Movie
Registered User
Posts: 125
Joined: Sun Nov 02, 2014 2:54 pm
Location: Chicago Illinois Area.

Re: [BETA] Post Numbers

Post by Movie » Sun May 17, 2015 4:01 am

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: 4340
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [BETA] Post Numbers

Post by Jessica » Sun May 17, 2015 4:59 am

Great to see this turned into an extension
Please do not PM me for support unless it is absolutely necessary
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: 23164
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: [BETA] Post Numbers

Post by Oyabun1 » Sun May 17, 2015 5:02 am

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: 125
Joined: Sun Nov 02, 2014 2:54 pm
Location: Chicago Illinois Area.

Re: [BETA] Post Numbers

Post by Movie » Sun May 17, 2015 9:44 pm

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: 740
Joined: Wed Jan 17, 2007 7:51 am
Location: ROY
Name: Basil Taha Alhitary
Contact:

Re: [BETA] Post Numbers

Post by alhitary » Sat May 23, 2015 8:09 pm

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

Locked

Return to “Extensions in Development”

Who is online

Users browsing this forum: rxu, Steve, Татьяна5 and 29 guests