Feel free to modify the code to your hearts content but for me it's, as is.
Modification Name: phpBB users Overall posts
Author: zac2613
Modification Description: Keep users happy by allowing Overall post count to be kept after their topic/posts, have been removed/deleted.
Modification Version: 1.0.4
Board Version: 3.0.14
Future Additions: None, It kinda does what it's intended to do.
Supported Styles: Prosilver - Subsilver
Note's:
When installed for the first time, posts and (Overall posts where visible) will have the same value, when a user makes a new thread/post both values increment by 1, however, when a users post gets removed/deleted, phpBB posts count subtracts by 1 and Overall posts count stays untouched, resynchronizing post counts or pruning does not affect this Mod.
Enabling the Mod
Board configuration --> Board features --> Enable users Overall posts.
If the Mod is disabled, it still adds to the users Overall post count it's just not visible to the users.
Moderator approval
If moderator approval is in use & a user makes a post that has been approved but decides to edit a post whilst still under moderator approval & the moderator decides not to approve the edited post, the user post is deleted but would still keep the Overall post that was given when the post was approved.
Extra coding would need to be implemented for this to work correctly, but hey! there's nothing accurate about this Mod's use & I can live with it, if you can't there's always room for you to improve upon.
Overall posts shows below posts in view topic - view members profile - Acp users profile.
Permissions
Forum permissions will need to be checked & set for the overall post increment to work correctly.
Also, you may have forums that don't allow post count increment, if so, users overall post count needs to be set the same.
How to stop post count going up in certain forums.
If needed, admin may change the users Overall post count via Acp --> General --> Manage user --> User --> Select from dropdown --> Profile, or whichever method used to get to the Acp users profile page.
Note: This has been set for Full admin only but can be altered via admin roles.
Clickable Screenshots:
Prosilver View topic
Prosilver View profile
Acp view users profile
AutoMOD Compatible
Warning
Running the Mod's install file located it the root of your forum & selecting uninstall will result it the previously known users Overall post count information being removed... You've been warned.
This Mod has been packed for phpBB 3.0.12/13-PL1
Download: Overall Post Mod
This Mod has been packed for phpBB 3.0.14
Download: Overall Post Mod
Edit: 04/07/2014 1.0.1
- Initial Release.
- Altered code edits.
- Had a clean up.
- Altered code edits.
- Added Force to rename/remove install file.
- Added if enabled in adm/styles/acp_user_profile.html, which was not in previous versions.
- Removed unneeded config entry.
- Just updated for most recent phpBB version.