Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (isaac), 68 guests, and 365 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Gizmo
Gizmo
Portland, OR; USA
Posts: 16,918
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 14
Morgan 13
isaac 11
Ruben 10
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
Joined: Feb 2009
Posts: 56
Heidelberg - Germany
Stephan Offline OP
journeyman
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
Joined: Feb 2009
Posts: 56
Heidelberg - Germany
Stephan Offline OP
journeyman
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
Joined: Apr 2007
Posts: 4,313
SoCal, USA
SD Offline
Carpal Tunnel
SD  Offline
Carpal Tunnel
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
Joined: Jun 2006
Posts: 16,918
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,918
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
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
R
Rick Offline
Former Developer
Rick  Offline
Former Developer
R
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
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
R
Rick Offline
Former Developer
Rick  Offline
Former Developer
R
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
https http
by sundance. 05/22/18 05:46 PM
Want to Delete All Old Private Messages
by BellaOnline. 05/19/18 02:00 AM
How to remove Shout Chat
by Outdoorking. 05/17/18 08:37 AM
I am trying to put a banner ad on email template.
by sundance. 05/14/18 01:59 PM
Pruning Members Best Practices
by Shawn Grim. 05/10/18 05:36 PM
Forum Statistics
Forums36
Topics35,114
Posts191,269
Members12,075
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)