Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: JasonDD on November 16, 2009, 03:39:04 PM

Title: Registration date
Post by: JasonDD on November 16, 2009, 03:39:04 PM
Hi, is it somehow possible to add registration date to the user profile to be visible under the user when browsing posts, like in vBulletin ?
Title: Re: Registration date
Post by: JasonDD on November 17, 2009, 08:31:48 AM
Also is there an option in SMF to show the date of birth field during registration ? This one would be very useful, but I wasn't able to find it anywhere in settings.
Title: Re: Registration date
Post by: Xylar2 on November 17, 2009, 02:08:50 PM
Quote from: JasonDD on November 17, 2009, 08:31:48 AM
Also is there an option in SMF to show the date of birth field during registration ? This one would be very useful, but I wasn't able to find it anywhere in settings.

I do know you can create custom fields via Core Features. I'm not sure if it can do that though.
Title: Re: Registration date
Post by: JasonDD on November 17, 2009, 05:21:45 PM
Yep, I have custom profiles enabled, however the date of birth field is in the basic profile fields, which for some reason are not editable.
Title: Re: Registration date
Post by: Arantor on November 17, 2009, 05:35:08 PM
To answer your original question, date registered is stored for each user, and it would be possible to display. Where exactly would you want it displayed?

As for DOB it's only normally active/required if you have a minimum age set up, in Admin > Members > Registration > Settings.
Title: Re: Registration date
Post by: JasonDD on November 18, 2009, 09:57:00 AM
I would like it to be displayed on your "profile summary" displayed when you make a post, right above number of posts for example.

Btw, I've tried enabling the minimum age requirement, but the only difference was it displayed two buttons under TOS, no other field to enter your date of birth on registration form.
Title: Re: Registration date
Post by: Arantor on November 18, 2009, 11:36:13 AM
Hmm, the only way to add it there would be a modification of Display.php, Display.template.php and very possibly Load.php as well.

What version of SMF exactly are you using?

As for the DOB, hmm, I thought that enabled something more but guess not. I also don't think it's been covered how that would be done.
Title: Re: Registration date
Post by: JasonDD on November 18, 2009, 12:23:57 PM
Hm, that's a shame then, I'm running the most recent 2.0 RC2
Title: Re: Registration date
Post by: JimM on December 17, 2009, 10:29:29 PM
You might take a look at this mod and get an idea on how to make the edits for the date registered.  It was compatible with RC1-2 so you may have to experiment to find the right spot in RC2.

http://custom.simplemachines.org/mods/index.php?mod=1405

It's little more than a couple of lines to edit or at least it was in 1.1.11.