Different date() syntax for poster joined date

Discussion forum for MOD Writers regarding MOD Development.
Locked
Neon_
Registered User
Posts: 79
Joined: Wed Jul 26, 2006 2:50 am

Different date() syntax for poster joined date

Post by Neon_ » Fri Aug 17, 2007 6:49 pm

How might I go about changing the date syntax for the join date of each poster on topic view only to disregard any user or board preferances and display the date in "M j, Y" syntax instead?

So for example, it would say that I joined Jul 26, 2006 on this page, but if you viewed it anywhere else, such as in my profile it would still display as normal?
Image

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: Different date() syntax for poster joined date

Post by m157y » Fri Aug 17, 2007 7:26 pm

[OPEN]
viewtopic.php
[FIND]

Code: Select all

				'joined'		=> $user->format_date($row['user_regdate']),
[REPLACE WITH]

Code: Select all

				//replaced by m157y's tip for change joined date format
				//'joined'		=> $user->format_date($row['user_regdate']),
				'joined'		=> $user->format_date($row['user_regdate'], 'M j, Y', true),
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

Neon_
Registered User
Posts: 79
Joined: Wed Jul 26, 2006 2:50 am

Re: Different date() syntax for poster joined date

Post by Neon_ » Fri Aug 17, 2007 7:59 pm

Thanks a lot.
Image

Locked

Return to “[3.0.x] MOD Writers Discussion”