I've added the member field "phone number" to my directory.
While testing I saw in the member profile that the 0 on the beginning of the phone number has disappeared (editmembers.tpl shows the same). After editing it again and saving it, the 0 is still not there.
I removed the field and added it again (text, tried also integer), but that isn't the solution.
The problem appears only in custom fields AND the content of the field has only numbers in it.
tilma wrote: I've added the member field "phone number" to my directory.
If you actually named it that it shouldn't work at all since with a space it's an illegal name.
Anyhow, I've added a new link field 'phone' and edited a link to put 05555555 in that field. I come back to edit it again and it's still there, 05555555. So, you need to give me instructions to reproduce whatever you're doing differently.
Well, I don't think there's anything wrong with my templates, because all the data without a 0 on the beginning is saved correctly. I have no spaces in the field, the example was incorrect...
I even uploaded the original editmembers.tpl en viewprofile.tpl but the problem still exists.
While testing the fields further more, I discovered that it looks like a (how do you say that in english?) rounding problem:
2.27890 wil be saved as 2.28 06 will be saved as 6 and so on, with 2 decimals behind the comma.
This occurs in all member fields, even the username field. I uploaded the php files all over again (which is crazy because I changed anything except the cron in timedactions.php, but you try everything...)
I will send you a pm with login data to try it yourself.
Well, I was adding it as a link field instead of a member field, but I don't see how that'd really make a difference. Will check with a member field anyhow.
Comments on Disappearing "0" in the member field
Usergroup: Customer
Joined: May 17, 2005
Total Topics: 3
Total Comments: 10
I've added the member field "phone number" to my directory.
While testing I saw in the member profile that the 0 on the beginning of the phone number has disappeared (editmembers.tpl shows the same). After editing it again and saving it, the 0 is still not there.
I removed the field and added it again (text, tried also integer), but that isn't the solution.
The problem appears only in custom fields AND the content of the field has only numbers in it.
How can I solve this?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I've added the member field "phone number" to my directory.
If you actually named it that it shouldn't work at all since with a space it's an illegal name.
Anyhow, I've added a new link field 'phone' and edited a link to put 05555555 in that field. I come back to edit it again and it's still there, 05555555. So, you need to give me instructions to reproduce whatever you're doing differently.
Usergroup: Customer
Joined: May 17, 2005
Total Topics: 3
Total Comments: 10
Well, I don't think there's anything wrong with my templates, because all the data without a 0 on the beginning is saved correctly. I have no spaces in the field, the example was incorrect...
I even uploaded the original editmembers.tpl en viewprofile.tpl but the problem still exists.
While testing the fields further more, I discovered that it looks like a (how do you say that in english?) rounding problem:
2.27890 wil be saved as 2.28
06 will be saved as 6
and so on, with 2 decimals behind the comma.
This occurs in all member fields, even the username field.
I uploaded the php files all over again (which is crazy because I changed anything except the cron in timedactions.php, but you try everything...)
I will send you a pm with login data to try it yourself.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well, I was adding it as a link field instead of a member field, but I don't see how that'd really make a difference. Will check with a member field anyhow.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Figured it out, it is members-specific. In classes/members.php, replace the update function with
Will upload in a few days.
Usergroup: Customer
Joined: May 17, 2005
Total Topics: 3
Total Comments: 10
Thanks!
It's displaying the right numbers now.