Log in

View Full Version : Userfield trims leading zeros


raywjohnson
01-16-2019, 04:24 AM
Re-posting this here as the support at vbulletin.com is non-existent. I posted Oct 2018, still not response.

Initial post:

I have a userfield for storing Zip Codes. "Single Line Text Box" -- but it trims leading zeros from foreign zip code (00622 becomes 622 for Puerto Rico).

Is there a setting or simple fix?

Follow up today:

I have narrowed it down to the 'forcetext' array.

How to add the other custom fields to the ['userfield']['forcetext'] array (in core/packages/vbforum/db/mysql/querydefs.php)?

Thanks for any info or insight,

--RayJ

--------------- Added 1547688214 at 1547688214 ---------------

Update. vB.com answered. No way to fix other than hacking.

delicjous
01-17-2019, 03:14 AM
Is this still a question or any answer in your updated text?! When it is a question, I don't get it!

raywjohnson
01-17-2019, 03:52 AM
Sorry about that the forum combined my second post with the original.

The answer is: No way to fix other than hacking.

Update. vB.com answered. No way to fix other than hacking.