1
Moonraker
Date field in extended profiles not loading properly
  • 2005/12/17 17:06

  • Moonraker

  • Just popping in

  • Posts: 4

  • Since: 2005/12/17


I have added a date field in extended profiles.
I enter the date on someone's profile by using the date picker.
The date shows as 1970/1/1 !

This is in XOOPS 2.2.3 Final running on Apache 2 loaded on WinXPpro (using XAMPP)

The database field in XXX_user_profile shows the year e.g. 2004 or 2005. This is viewed using PHPAdmin, but when I go into edit profile the field also shows the year also e.g. 2004.

Am I doing something wrong or is this a bug?

Best wishes

Adrian

2
Moonraker
Re: Date field in extended profiles not loading properly
  • 2006/1/11 11:41

  • Moonraker

  • Just popping in

  • Posts: 4

  • Since: 2005/12/17


Well, no replies in nearly a month - so must I take it that no one else has this problem?

If you have created a date field in extended profiles and it works - please let me know. And if it doesn't also tell me, please.

3
Moonraker
Re: Date field in extended profiles not loading properly
  • 2006/1/11 19:16

  • Moonraker

  • Just popping in

  • Posts: 4

  • Since: 2005/12/17


This is a bug.

see SourceForge Bug Tracker


In which the solution is described as:-

Dynamic Profile Field: Date type
When we create a date type field in dynamic profile,
modify /modules/profile/admin/user.php line 145 to
convert date string to timestamp as follows.

$user->setVar($fieldname, $fields[$i]->getValueForSave($_REQUEST[$fieldname]));

(Slightly modified as the original has some bold tags in it)

4
larceniii
Re: Date field in extended profiles not loading properly
  • 2006/4/13 1:00

  • larceniii

  • Just popping in

  • Posts: 11

  • Since: 2005/6/14


Yep It Happened to me, when a user (Moderator) Deleted himself.

I reinstalled my fourm and now every one has -2 posts, but
after the 2.2.4 Update My Fourm is re-growing again and I haven't encountered it again... hopefully...

Login

Who's Online

160 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits