[ABD] Change Post Time

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

[ABD] Change Post Time

Post by Jeroen B » Mon Oct 18, 2010 9:19 am

Modification Name: Change Post Time
Author: Pietje15

Modification Description:
This MOD enables moderators/administrators to change the post time/date of a post/topic.

Modification Version: 1.0.1

Features:
  • Abillity to change the post time and date in the post details section of the moderator control panel.
  • Adds a permission for changing post time
  • Adds a log to the moderator log after changing the post time.
Modification Download: download

Image

Image

Image

Languages:
  • en
  • nl
Supported styles:
  • prosilver
Planned features:
  • New permission for changing post time (added)
  • Adding log to moderator control panel after changing time (added)
Original code was written by A_Jelly_Doughnut a few years ago.
He doesn't maintain it anymore so I've changed some code and will maintain it.
Last edited by Jeroen B on Mon Nov 08, 2010 6:15 pm, edited 8 times in total.
Jeroen • My modifications

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [BETA] Change Post Time

Post by Jeroen B » Mon Oct 18, 2010 10:58 am

I have added a download link in the first post now :)
Let me know if you find any bugs.
Jeroen • My modifications

Cassie396
Registered User
Posts: 87
Joined: Sun Dec 07, 2003 3:59 am

Re: [BETA] Change Post Time

Post by Cassie396 » Mon Oct 18, 2010 6:25 pm

I have installed this on my forum (and even a different skin) and it is working wonderfully!

I haven't run across any bugs yet... thank you for the quick response!

;)

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Change Post Time

Post by 4_seven » Mon Oct 18, 2010 8:39 pm

big thx to Pietje15. this is a must-have for every board :geek:
Current Mods | Mod Base | php(BB) programming | No help via PM

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [BETA] Change Post Time

Post by Jeroen B » Mon Oct 18, 2010 9:47 pm

Thanks both :)
I've nearly finished a new version, which adds a new permission and adds a log to the moderator log which tells you that the post time has been changed from the old time to the new time.
Jeroen • My modifications

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [RC] Change Post Time

Post by Jeroen B » Thu Oct 21, 2010 4:19 pm

I have now updated this MOD. I have added:
  • Permission for changing post time
  • Add a log in the moderator log after the post time has been edited
Download link in the first post. Let me know if you've got any questions :)
Jeroen • My modifications

hrenod
Registered User
Posts: 1
Joined: Sun Nov 07, 2010 6:48 pm

Re: [RC] Change Post Time

Post by hrenod » Sun Nov 07, 2010 7:03 pm

to get it working on my installation:

changed includes/mcp/mcp_post.php:

Code: Select all

-$hour = $hour - ($user->timezone + $user->dst);
+$hour = $hour - $user->dst / 3600;
changed includes/mcp/mcp_post.php after "case 'chgposttime':"

Code: Select all

-	if (!$auth->acl_get('m_chgposter', $post_info['forum_id']))
+	if (!$auth->acl_get('m_chgposttime', $post_info['forum_id']))

Code: Select all

	'S_CAN_CHGPOSTER' => $auth->acl_get('m_chgposter', $post_info['forum_id']),
+	'S_CAN_CHGPOSTTIME' => $auth->acl_get('m_chgposttime', $post_info['forum_id']),
changed styles/prosilver/template/mcp_post.html:

Code: Select all

-<form method="post" id="mcp_chgposter" action="{U_POST_ACTION}">
+<form method="post" id="mcp_chgposttime" action="{U_POST_ACTION}">
also moved <!-- IF S_CAN_CHGPOSTTIME --> section above <!-- IF S_CAN_CHGPOSTER -->. Originaly it was inside the last one.

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [RC] Change Post Time

Post by Jeroen B » Mon Nov 08, 2010 3:31 pm

Thanks for your work, but a new version is already in the MOD DB queue for some weeks.
I forgot to update this topic, version 1.0.1 is already available for some weeks.

In that version everything is fixed, also some of the things you mentioned.
Jeroen • My modifications

Goku ssj3
Registered User
Posts: 43
Joined: Tue Dec 02, 2008 1:14 pm

Re: [RC] Change Post Time

Post by Goku ssj3 » Tue Nov 09, 2010 12:50 pm

the time work for me
but the date no, Month and day are casual, year correct

In my case if I put as Day 8 the post date change in 8+2 = 10
if i put 10 it change 10 + 2

And for the month if i put 10 the month change to 10 - 6

why?

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [RC] Change Post Time

Post by Jeroen B » Tue Nov 09, 2010 4:17 pm

That's weird, which timezone have you set in your profile and which timezone have you set in the ACP?
Jeroen • My modifications

Goku ssj3
Registered User
Posts: 43
Joined: Tue Dec 02, 2008 1:14 pm

Re: [RC] Change Post Time

Post by Goku ssj3 » Wed Nov 10, 2010 10:37 am

[UTC + 1] Central Europe, Italy
also in my profile :)
I'm italian, which modification i have to do?

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [RC] Change Post Time

Post by Jeroen B » Wed Nov 10, 2010 5:13 pm

I'm in the same timezone as you and I've tested it again, and I'm not having any troubles.
Are you sure you fill in the fields in the right way?

Make sure you fill it in like this, let's say we want to change the time to december 18th, 20:00:
12-18-2010
20:00

(Month - Day - Year)
Let me know if you're still having trouble with this.
Jeroen • My modifications

Melian01
Registered User
Posts: 42
Joined: Thu Jan 25, 2007 1:03 am
Contact:

Re: [RC] Change Post Time

Post by Melian01 » Thu Nov 11, 2010 10:05 am

Hi, I've got a question: when you change the time of a post does the post move inside the topic (go up or down) or does it stay at it's current place?

Jeroen B
Registered User
Posts: 1222
Joined: Wed Jul 02, 2008 6:23 pm
Location: The Netherlands
Name: Jeroen

Re: [RC] Change Post Time

Post by Jeroen B » Thu Nov 11, 2010 10:22 am

Melian01 wrote:Hi, I've got a question: when you change the time of a post does the post move inside the topic (go up or down) or does it stay at it's current place?
Yes, it will change the position of the post/topic :)
That's also why this MOD will come in handy sometimes.
Jeroen • My modifications

Melian01
Registered User
Posts: 42
Joined: Thu Jan 25, 2007 1:03 am
Contact:

Re: [RC] Change Post Time

Post by Melian01 » Thu Nov 11, 2010 10:25 am

Thanks for the quick reply, that's the mod i need then :D.

Locked

Return to “[3.0.x] Abandoned MODs”