Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
4 registered members (Gizmo, isaac, SD, JAISP), 43 guests, and 213 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 125
Joined: June 2011
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Ruben 10
Gizmo 8
Morgan 3
Geoff 3
FREAK 2
Slaz 2
DennyP 1
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
[FIXED for 7.5.1] 7.5 Customfield #223393
03/01/09 08:15 AM
03/01/09 08:15 AM
Stephan  Offline OP
journeyman
Joined: Feb 2009
Posts: 56
Heidelberg - Germany
Problem:

Define CUSTOMFIELD as postalcode or telefonnumber
input: 06224
output: 6224


UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: 7.5 Customfield [Re: Stephan] #223449
03/02/09 01:06 PM
03/02/09 01:06 PM
Stephan  Offline OP
journeyman
Joined: Feb 2009
Posts: 56
Heidelberg - Germany
is it possible to change?

Thank Stephan


UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Re: 7.5 Customfield [Re: Stephan] #223450
03/02/09 01:07 PM
03/02/09 01:07 PM
SD  Online Coffee
Former Developer
Joined: Apr 2007
Posts: 4,313
SoCal, USA
yes

Re: 7.5 Customfield [Re: SD] #223465
03/02/09 02:14 PM
03/02/09 02:14 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
I donno, I'd say it should be a threads "feature" if users really want to prefix data with a 0... lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: 7.5 Customfield [Re: Gizmo] #223469
03/02/09 02:58 PM
03/02/09 02:58 PM
R
Rick  Offline
Former Developer
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
It should be yeah. Will need to do some tests to see why it's chomping off the leading 0, in it shouldn't be.

Re: 7.5 Customfield [Re: Rick] #223885
03/10/09 12:27 PM
03/10/09 12:27 PM
R
Rick  Offline
Former Developer
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
Found the issue. When the queries are being formatted, we only quote non-integer fields for the query. That ends up chopping off the leading 0 when added to MySQL. So, I've changed the do_placeholder_query() function so it will also quote an integer field if it begins with a 0 so that will preserve the data as it was entered.


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Email Cleanup-Is it possible?
by Ruben. 09/06/18 11:25 AM
Forum Statistics
Forums36
Topics35,139
Posts191,443
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2