Page 1 of 4

[ABD] Change Post Time

Posted: Mon Oct 18, 2010 9:19 am
by Jeroen B
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.

Re: [BETA] Change Post Time

Posted: Mon Oct 18, 2010 10:58 am
by Jeroen B
I have added a download link in the first post now :)
Let me know if you find any bugs.

Re: [BETA] Change Post Time

Posted: Mon Oct 18, 2010 6:25 pm
by Cassie396
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!

;)

Re: [BETA] Change Post Time

Posted: Mon Oct 18, 2010 8:39 pm
by 4_seven
big thx to Pietje15. this is a must-have for every board :geek:

Re: [BETA] Change Post Time

Posted: Mon Oct 18, 2010 9:47 pm
by Jeroen B
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.

Re: [RC] Change Post Time

Posted: Thu Oct 21, 2010 4:19 pm
by Jeroen B
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 :)

Re: [RC] Change Post Time

Posted: Sun Nov 07, 2010 7:03 pm
by hrenod
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.

Re: [RC] Change Post Time

Posted: Mon Nov 08, 2010 3:31 pm
by Jeroen B
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.

Re: [RC] Change Post Time

Posted: Tue Nov 09, 2010 12:50 pm
by Goku ssj3
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?

Re: [RC] Change Post Time

Posted: Tue Nov 09, 2010 4:17 pm
by Jeroen B
That's weird, which timezone have you set in your profile and which timezone have you set in the ACP?

Re: [RC] Change Post Time

Posted: Wed Nov 10, 2010 10:37 am
by Goku ssj3
[UTC + 1] Central Europe, Italy
also in my profile :)
I'm italian, which modification i have to do?

Re: [RC] Change Post Time

Posted: Wed Nov 10, 2010 5:13 pm
by Jeroen B
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.

Re: [RC] Change Post Time

Posted: Thu Nov 11, 2010 10:05 am
by Melian01
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?

Re: [RC] Change Post Time

Posted: Thu Nov 11, 2010 10:22 am
by Jeroen B
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.

Re: [RC] Change Post Time

Posted: Thu Nov 11, 2010 10:25 am
by Melian01
Thanks for the quick reply, that's the mod i need then :D.