[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

Re: [RC] Change Post Time

Post by Jeroen B »

If you're using AutoMOD to install this MOD, you don't need to manually upload the install file. AutoMOD should do it for you automatically. But I think that you should clear your boards cache and refresh the templates in your ACP.

Let me know if that solved your problem.
Jeroen • My modifications

K73SK
Registered User
Posts: 28
Joined: Sat Aug 14, 2010 5:39 am

Re: [RC] Change Post Time

Post by K73SK »

I uninstalled the mod (had to force it since it said it couldn't find certain lines for some reason) and re-installed it. Here's what happens after it says it was successful:
Your MOD has been installed! Here you can view some of the results from the installation. Please note any errors, and seek support at phpBB.com

AutoMOD is sending a compressed file to your computer. Because of the AutoMOD configuration, files cannot be written to your site automatically. You will need to extract the file and upload the files to your server manually, using an FTP client or similar method. If you did not receive this file automatically, click here.
I only extracted the install.php file, not the rest. So I replaced all of them this time and installed the mod again. Still nothing showing up... I'm about to give up on phpBB altogether since it gives me so many problems.

K73SK
Registered User
Posts: 28
Joined: Sat Aug 14, 2010 5:39 am

Re: [RC] Change Post Time

Post by K73SK »

ah hah! I was looking in the wrong place, I found it and got it to work, lol. I didn't know I had to look inside the Moderator Control Panel...

Thanks!

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 »

No problem, glad to hear you've got it working ;)
Jeroen • My modifications

Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: [RC] Change Post Time

Post by Richazey »

Just an update from me, been using it since the 1/2/2011 and my site has over 30k posts and not had one issue and I use GMT, the clocks go forward later in the month so will let you know if that causes any issues.

User avatar
secret_affection
Registered User
Posts: 84
Joined: Wed Jan 19, 2011 9:02 pm

Re: [RC] Change Post Time

Post by secret_affection »

phpBB 3.0.8

Its working only if I set Admin(UCP) Time Zone in to UTC Western European.

It was not working when Admin(UCP) time zone set in to local time.

Is there any way to keep this mode working while Admin (UCP) time zone set to local time?

Thanks.

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [RC] Change Post Time

Post by Jessica »

the times are completely messed up. If I put in 3 16 2011 5:04 I do not get that. I get something COMPLETELY different.

I typed in 7-23-2009, 19:32 and got March 15, 2011 3:32 pm
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

andrewilley
Registered User
Posts: 114
Joined: Fri Sep 12, 2008 7:28 pm
Location: Birmingham UK
Contact:

Re: [RC] Change Post Time

Post by andrewilley »

I'm getting the same problem with dates and times getting messed up from the values I've entered - I managed to set one posting in a special test forum to Janaury 2012! It seemed to be working OK on my test server too. :(

My board (running 3.0.8) is set to a default time of GMT-5 (i.e. USA Eastern) and my own admin user setting is currently set to GMT (London) with daylight saving set to on.

I'm going to try commenting out the DST adjustment line that others have had luck with. Let me know if I can help with any debugging info.

Andre
--- Admin of www.portorleans.org

andrewilley
Registered User
Posts: 114
Joined: Fri Sep 12, 2008 7:28 pm
Location: Birmingham UK
Contact:

Re: [RC] Change Post Time

Post by andrewilley »

andrewilley wrote:I'm going to try commenting out the DST adjustment line that others have had luck with. Let me know if I can help with any debugging info.
In mcp_post.php I commented out:

Code: Select all

$hour = $hour - ($user->timezone + $user->dst);
It works fine now. I know the hourly offset that I need to enter to make it work 100% for me, but I'll probably just hard-code the time anyway so it automatically comes out as midday GMT (as I don't really need to adjust the time for what I'm doing, only the date).

[... Some testing laer ...]

So, out of interest, I output the three values which would have been used in the above code to a file, and they were (for 12:00 midday):

Code: Select all

$hour = 12
$user->timezone = 0
$user->dst = 3600
So the problem is that you are expecting the offsets to be given in hours, but they are both being returned in seconds (I tried using other user timezone settings too - e.g. the 'timezone' value returned for US Eastern was -18000 for example).

So I tried using:

Code: Select all

$hour = $hour - (($user->timezone + $user->dst)/3600);
While that worked for the date, the offset of the time in the posting was 6 hours ahead of what I set (e.g. I set it for 12:00 noon and the post-time then showed as 6pm). I guess somewhere you also need to take account of the board's local time variance too (in my case 5 hours different from my local time) and maybe adjust the DST value in the other direction? Over to you for the details anyway, the main glitch was the need to divide by 3600.

The only people for whom the mod should currently be working correctly are those on GMT and not currently using DST, in which case both of the returned values will be zero and the code will work.

Andre
--- Admin of www.portorleans.org

User avatar
bacon tacon
Registered User
Posts: 253
Joined: Sun Oct 27, 2002 8:17 pm
Contact:

Re: [RC] Change Post Time

Post by bacon tacon »

I'm seeing the same issue as jesschen.

phpBB 3.0.9, Admin Control Panel set to UTC (GMT), User Control Panel set to DST off.

Timestamp 1111433019 = 21 March 2005 7:23 pm but it comes out as 04 Sept 2006 1:23 am (2:23 am if local timezone set to DST).

User avatar
Terr0r
Registered User
Posts: 553
Joined: Thu May 05, 2011 3:39 pm
Location: The Netherlands
Contact:

Re: [RC] Change Post Time

Post by Terr0r »

Why would you want to change that
is it Necessary to change it
I don't thinks so
if you can't fix it with ducktape you ain't using enough
if you want to search a MOD maybe you can find it here
For my MODS and BBCodes or other things that I have made take a look here

User avatar
bacon tacon
Registered User
Posts: 253
Joined: Sun Oct 27, 2002 8:17 pm
Contact:

Re: [RC] Change Post Time

Post by bacon tacon »

I'm not sure I understand what you're saying Terr0r.
Are you doubting the use of a mod which allows admin to change the Post Time?

I can think of several instances where it would be very useful.
In my case, to ease the laborious process of restoring posts from an old database. As far as I know, there's no low-risk method of merging forum databases. With [RC] Change Post Time you can simply repost the php_posts_text and reset the poster and post time.

At least I could if I could get it to work.

User avatar
edbo1
Registered User
Posts: 105
Joined: Fri Jul 23, 2010 2:41 am

Re: [RC] Change Post Time

Post by edbo1 »

Is there a way to PRE POST a post? Like PRE DATE for the future. I found a BETA mod that will do that but ouch on the database. BIG OUCH. Your's seems to be kinder on the DB.

I know what I am saying is not what your MOD is intended to do. I guess if you make your post and edit it right away, it would could pre date it (yes/no??) but am unsure. Pre Dating would be so nice.

Thanks for all the work!!
:P
Ed

User avatar
bacon tacon
Registered User
Posts: 253
Joined: Sun Oct 27, 2002 8:17 pm
Contact:

Re: [RC] Change Post Time

Post by bacon tacon »

For clarification purposes Edbo, I think you're asking about post dating posts not pre dating them ("post" means "after", "pre" means "before"). Sorry, I'm not in a position to test this. As mentioned, I can't get the mod to work correctly.

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26132
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [RC] Change Post Time

Post by Paul »

This topic has been marked as [ABD] - Abandoned as the mod author has not been active recently. If the MOD author wishes to continue development, please PM anyone on the MOD Team to request this topic be unlocked.

Thank you,
The phpBB Modifications Team
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Locked

Return to “[3.0.x] Abandoned MODs”