[CDB] Change Post Time

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!
Ideas Centre
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
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

[CDB] Change Post Time

Post by javiexin » Thu May 07, 2015 3:54 pm

Extension Name: Change Post Time
Author: javiexin

Extension Description:
This extension allows moderators to change the posting date and time of any single post.

This is a port of the abandoned 3.0 mod found here: viewtopic.php?p=12881195
This is a response to the following request: viewtopic.php?f=496&t=2308231

Features:
  • Permission based, uses a new permission, "Can change post date/time", that copies the configuration of "Can change poster" in the forum where it is installed.
  • Configuration is done through the MCP, post moderation page, where a new block allows the change of date and time when the post was made.
  • Takes into consideration the change to update topic and forum accordingly.
This extension is currently under development, so it might have errors or malfunctions:
DO NOT INSTALL ON LIVE BOARDS.

If you find an issue, or have questions, let us know here.

Given that there have not been any further requests for functionality, this is now frozen and submitted to the CDB for validation.

Download:
https://www.phpbb.com/customise/db/exte ... post_time/

Github Repository: https://github.com/javiexin/chgposttime

Installation:
  1. Unzip the downloaded file.
  2. Copy the whole contents of the unzipped folder in the ext directory of your phpBB board, where you should see a javiexin folder, and a chgposttime folder within it (if done correctly, you'll have the main JSON file at (your forum root)/ext/javiexin/chgposttime/composer.json).
  3. Navigate in the ACP to Customise -> Manage extensions.
  4. Look for Change Post Time under the Disabled Extensions list, and click its Enable link.
  5. You may now configure who may use this option by configuring the "Can change post date/time" permission in the Moderator permissions (both global and forum based), in the "Post actions" tab. If nothing is done here, the same people that have permission to change poster name ("Can change poster" permission) will be able to change post date and time.
  6. You are done!.
Important: Only official release versions validated by phpBB should be installed on a live forum. Pre-release (beta, RC) versions are only to be used for testing on offline/development forums.

Very Important: This extension requires 3.1.5 at least, as it is based on some non-existing events in 3.1.4.
Last edited by javiexin on Fri Jun 19, 2015 11:29 am, edited 3 times in total.

User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Thu May 07, 2015 3:54 pm

Reserved in case it is needed again.
Last edited by javiexin on Fri Jun 19, 2015 11:30 am, edited 1 time in total.

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2228
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [DEV]Change Post Time

Post by kinerity » Thu May 07, 2015 4:25 pm

Question - If I have a topic with 3 posts (A, B, and C) with dates/times (post A is 5/7/2015 @ 6:00 am, post B is 5/8/2015 @ 7pm, and post C is 5/10/2015 @ 3am) and I change post B to a date/time after post C's date/time, will the posts re-order? For example, the topic would now have post A, post C, and post B.
Kailey Truscott - Community Team

User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Thu May 07, 2015 5:31 pm

If you are showing the posts by date/time (default), then yes.

Anyhow, this is the kind of things that should be tested now, before a final release :).

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6040
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV]Change Post Time

Post by Raul [ThE KuKa] » Thu May 07, 2015 7:01 pm

Excellent work, my most sincere congratulations and keep up the extension.

Nice work javiexin. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


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



User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Thu May 07, 2015 7:16 pm

Raul [ThE KuKa] wrote:Excellent work, my most sincere congratulations and keep up the extension.

Nice work javiexin. ;)
Thanks Raúl... This time, one less thing for you to do, as the ES translation is included upfront :lol:

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6040
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV]Change Post Time

Post by Raul [ThE KuKa] » Thu May 07, 2015 8:40 pm

I like that. :mrgreen:

Edit:

URL GitHub, It is incorrect in his first message of the topic. ;)
https://github.com/javiexin/chgposttime (remove one "t" in "posttime")

Correct URL GitHub: https://github.com/javiexin/chgpostime
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


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



User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Thu May 07, 2015 9:07 pm

Thanks a lot Raúl. I will have to fix the GitHub repository, but in the meantime, I have updated the first message with the correct link.

Again, thanks a lot for spotting this.
-javiexin

User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Thu May 07, 2015 10:36 pm

Raul [ThE KuKa] wrote:URL GitHub, It is incorrect in his first message of the topic. ;)
https://github.com/javiexin/chgposttime (remove one "t" in "posttime")
...
javiexin wrote:I will have to fix the GitHub repository, ...
Fixed, the correct name is now in use (with two "t"):
https://github.com/javiexin/chgposttime

First post is correct.
-javiexin


Miri4ever
Registered User
Posts: 409
Joined: Sat Mar 07, 2015 11:18 am

Re: [DEV]Change Post Time

Post by Miri4ever » Sun May 10, 2015 11:04 am

Really would need this exentsion to fix up a lot of modified posting dates, after editing last posts got today date and not the one posted. I got the ext installed and activated at 3.1.4 so far with updated 3.1.5 files but don't know if they work, because my update to 3.1.5 runs inside an endless update database process and still not finalize the last step of the update, returing always to the step before.

How have you people managed to get 3.1.5 installed ?? My files are all 3.1.5 but my database seems still to be 3.1.4.
Homepage: Terra Oceanica

User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Sun May 10, 2015 11:19 am

Miri4ever wrote:How have you people managed to get 3.1.5 installed ?? My files are all 3.1.5 but my database seems still to be 3.1.4.
This is impossible, as 3.1.5 does not exist...

What I said is required for this extension to work is:
- A normal 3.1.4 phpbb installation
- Apply a patch to TWO files: includes/mcp/mcp_post.php and styles/prosilver/template/mcp_post.html as per the second post in this thread (the third file changed is a documentation file, not required).

That's it...

Having said that, this is NOT for massive changes, but for single post changes. If you have to do a lot of changes, then maybe this is not the right way, as this requires changing one at a time...

-javiexin

User avatar
ac_roma
Registered User
Posts: 297
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [DEV]Change Post Time

Post by ac_roma » Sun May 10, 2015 2:44 pm

good mod

thanks


User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV]Change Post Time

Post by javiexin » Sat May 23, 2015 8:52 pm

Thanks a lot, will merge on next release.

Locked

Return to “Extensions in Development”