Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
3 registered members (isaac, M4TT, Morgan), 55 guests, and 406 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
M4TT
M4TT
Canada, SK
Posts: 51
Joined: March 2015
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 12
M4TT 9
Ruben 8
isaac 5
mmkk 4
FREAK 3
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
[FIXED for 7.5.1] 7.5 Customfield #223393
03/01/09 07:15 AM
03/01/09 07: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 12:06 PM
03/02/09 12: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 12:07 PM
03/02/09 12: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 01:14 PM
03/02/09 01:14 PM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
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 01:58 PM
03/02/09 01: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 11:27 AM
03/10/09 11:27 AM
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
Users Unable to Upload Avatar [Not a Bug]
by M4TT. 12/13/17 08:51 AM
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
Forum Statistics
Forums36
Topics35,015
Posts190,545
Members12,046
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171217)