Jump to content


- - - - -

IP.Board 2.3: Enhanced Joined date: X Days, Y Months and Z Days


  • Please log in to reply
5 replies to this topic

#1 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 21 January 2009 - 03:53 PM

This is the support topic for the tutorial Enhanced Joined date: X Days, Y Months and Z Days.  Please post here if you have any questions or feedback.

#2 Darch

Darch

    Member

  • Members
  • PipPipPip
  • 44 posts
  • Real Name:Darch
  • IPB Version:v2.3.x

Posted 21 January 2009 - 04:01 PM


Thanx , SOSInvision

would this tutorial work for 2.3.x versions ?


#3 DawPi

DawPi

    in search of lost time..

  • Modders
  • PipPipPipPipPipPipPipPipPip
  • 2,214 posts
  • Location:Cracow, Poland
  • Real Name:David
  • IPB Version:v3.2.x
Contributor

Posted 21 January 2009 - 04:03 PM

View Postkollerxp2002, on Jan 21 2009, 05:01 PM, said:

would this tutorial work for 2.3.x versions ?

Sure! It's only parse UNIX date.

Edited by DawPi, 21 January 2009 - 04:03 PM.

Dawid Pieron
intermedia - owner, developer and ip.board modder
Need custom mod, conversion service, any ip.board related job or support for any of my paid mods or services?
www | mail | facebook | twitter | buy licence

#4 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 21 January 2009 - 04:03 PM

View Postkollerxp2002, on Jan 21 2009, 02:01 PM, said:

would this tutorial work for 2.3.x versions ?
Sorry... posted on wrong category (2.2.x). I asked to move it to 2.3.x!

Done and tested on 2.3.6.

#5 RichardC

RichardC

    ^^ They think you are odd

  • IM Supporters
  • PipPipPipPipPipPipPipPip
  • 1,028 posts
  • Location:United Kingdom
  • Real Name:Richard
  • IPB Version:v2.3.x
Contributor

Posted 21 January 2009 - 04:18 PM

;)

do I take it you can display the joined information as both types just with a little mod to the code?
eg:

Joined: 1-April 07
1 year, 3 months
and 20 days ago

#6 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 21 January 2009 - 05:17 PM

View PostRichardC, on Jan 21 2009, 02:18 PM, said:

;)

do I take it you can display the joined information as both types just with a little mod to the code?
eg:

Joined: 1-April 07
1 year, 3 months
and 20 days ago
Try:

		$member['member_joined']   = $this->compiled_templates[ $skin_file ]->member_joined( $this->get_date( $member['joined'], 'JOINED' ) );
		$nicedate = $this->GetDateDifference( date('m/d/Y', $member['joined']), date('m/d/Y', time() ) );
		$member['member_joined']   .= "<br /> (".$nicedate['NiceString'].")";

Posted Image






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users