[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 »

No problem :) Let me know if you find any problems or bugs.
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 »

Jeroen I still have problem
I Fill the date in the correct way, I Reinstalled the mod but the problem still appear
It's Probably a problem with the phpbb version?

So I Changed the code in this way
In mcp_post.php

Code: Select all

			 $from_oldtime = $user->format_date($post_info['post_time']);
			 
			        $month = request_var('month', 0);
         			$day = request_var('day', 0);
         			$year = request_var('year', 0);
        		 	$hour = request_var('hour', 0);
         			$minute = request_var('minute', 0);
         			$second = 0;
         			
      $hour = $hour - ($user->timezone + $user->dst);
      $day = $day - 2;
      $month = $month + 5;
And Now It work correctly
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 »

I still don't know how that problem could have occured on your board, but glad to hear you got it working now. Let's see if more people are having troubles with this.
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 »

Another problem -.-
I've notice that my fix work only with month between 1 an 09
at the month 10 the day= day +1
month 11 day=day+2
month 12 day=day+2

Jeroen There's a way to use te if construct to solve any case?
for example

if($month == 10) then ...
if($month == 11) then...

Help me :)
hywel
Registered User
Posts: 51
Joined: Mon Jul 12, 2010 12:53 pm

Re: [RC] Change Post Time

Post by hywel »

Jeroen B wrote:Let's see if more people are having troubles with this.
I'm in the exact position where Goku ssj3 is, date is slightly wrong on a board with time set in Italy.
What info can I share to help you on this issue?
Thanks for your time.
Cheers
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [RC] Change Post Time

Post by darkonia »

same by me :ugeek:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
forg
Registered User
Posts: 37
Joined: Fri Nov 17, 2006 5:37 pm
Location: Italy

Re: [RC] Change Post Time

Post by forg »

In 5 hour I've solved the problem :?

The problem is this:

Code: Select all

$hour = $hour - ($user->timezone + $user->dst);
I've commented it with double slash

Code: Select all

//$hour = $hour - ($user->timezone + $user->dst);
and now it's work.

Excuse for my bad english....
Excuse for my terrible english.. :-D
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 »

@ people who didn't got this MOD working, can you try to apply the changes which forg told us above? Let me know if this worked for you guys. I still need to look into it.
Jeroen • My modifications
hywel
Registered User
Posts: 51
Joined: Mon Jul 12, 2010 12:53 pm

Re: [RC] Change Post Time

Post by hywel »

It did work for me when changing time to 1st December (it changed to exact time), partially worked when changing time to 1st August (it changed to extact time +1 hour).
Basically, workaround works great.
Please ask if you need more info, and thanks again for the mod.
Cheers
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [RC] Change Post Time

Post by darkonia »

after a few edits the mod works for me.
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
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 »

darkonia wrote:after a few edits the mod works for me.
Which edits exactly?
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 »

hywel wrote:It did work for me when changing time to 1st December (it changed to exact time), partially worked when changing time to 1st August (it changed to extact time +1 hour).
Did you also mind the Summer Time/DST setting? That may cause the 1 hour difference.
Jeroen • My modifications
ottolapsi
Registered User
Posts: 156
Joined: Thu Mar 25, 2010 11:23 pm

Re: [RC] Change Post Time

Post by ottolapsi »

Where should I put/what to do with the language files to get them work? 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 »

When you open the install_mod.xml file with your browser, you'll notice that you have to do some edits in the /language/ files. You can edit those lines to your language.
Jeroen • My modifications
Dr.Kappas
Registered User
Posts: 2
Joined: Sun Jan 02, 2011 6:36 pm

Re: [RC] Change Post Time

Post by Dr.Kappas »

Very nice mod, but i need changes for a Subsilver2 based style
Thanks...
Sorry for my bad English...

Return to “[3.0.x] Abandoned MODs”