Advertisement:

Author Topic: How to show registration date in User Profile?  (Read 245 times)

Germar

  • Newbie
  • *
  • Posts: 19
How to show registration date in User Profile?
« on: June 03, 2019, 11:57:38 am »
Hi,
I want to show the registration date (dt_reg_date) in the user profile, to show to other members.
Is there someone how to do this?
« Last Edit: June 03, 2019, 12:19:21 pm by Germar »

p206ab

  • Sr. Member
  • ****
  • Posts: 343
Re: How to show registration date in User Profile?
« Reply #1 on: June 03, 2019, 02:00:23 pm »
There is a helper functionosc_user_regdate() you can use. So make a variable $something=osc_user_regdate();  and echo $something in a format that suits you (dd.mm.yy?)

Germar

  • Newbie
  • *
  • Posts: 19
Re: How to show registration date in User Profile?
« Reply #2 on: June 03, 2019, 03:06:02 pm »
There is a helper functionosc_user_regdate() you can use. So make a variable $something=osc_user_regdate();  and echo $something in a format that suits you (dd.mm.yy?)

Thanks for your input.
I implemeted it and it worked! Thanks again
« Last Edit: June 03, 2019, 03:49:57 pm by Germar »

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: How to show registration date in User Profile?
« Reply #3 on: June 03, 2019, 03:59:48 pm »
Hi,
I want to show the registration date (dt_reg_date) in the user profile, to show to other members.
Is there someone how to do this?

The following is the basic code that works on 'Bender'

Code: [Select]
<?php echo __('Registered on''bender'); ?> <?php echo osc_format_date(osc_user_field('dt_reg_date')); ?>
Cheers!