|
Joined: Jun 2006
Posts: 67
journeyman
|
journeyman
Joined: Jun 2006
Posts: 67 |
Can you please bring back separate fields for First Name and Last Name. It make it easier to integrate other programs user may build around UBB that require it.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
We had seperate fields for first and last names?
IMO, it's a waste of time... You can use a php function like explode or preg_split to seperate it into two values defined by the space (" ") which would split the value into an array which you could use to "read in" to other applications...
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
What if a name contains more than one space?
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
IMO, it's a waste of time... "Nobody will ever need more than 640Kb RAM!" -- Bill Gates, 1981.And somehow somebody who made Lotus Notes thinks a middle name of 6 characters is more then sufficient. Saying that you can simply search the one and only space might be true in your world and the names people have there, but it's not in ours here. Double firstnames, double middlenames en double lastnames, not so uncommon in the Netherlands. There is no way hosee you can write software that can split up a dutch name in it's different parts. If you really try, you might get a 99% ok score. Even the human eye can't always tell from looking at it what's what.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
^^ both make good points! yah, i just thought of it.. names like 'van Cruijff' or.. 'van der hoovel' edit.. i guess Cruijff has no VAN .. but you get my drift
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
yah, i just thought of it.. names like 'van Cruijff' or.. 'van der hoovel' Yep... But those are doable. "van de", "van der" etc are the middlenames that are pretty standard. But Hans Frits Franken can be Hans Frits, with last name Franken, or it's Hans with last name Frits Franken. edit.. i guess Cruijff has no VAN .. but you get my drift He drives a normal car
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
lol... touche`
|
|
|
|
Joined: Jun 2006
Posts: 196
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 196 |
It's too bad we didn't build 5 custom fields so that users could add fields they felt necessary
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
forgot the </sarc> tag
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
What if a name contains more than one space? it'd split it into as many fields as there are spaces; so 3 names would be an array with 3 names... Fields are quite scaleable, theres no need to have a ton of fields when you can just split criteria into an array and read that into your script... You can do a lot with array's, so it's not like it's not something that could be customized... In fact, you can use the 5 custom boxes for first and last names if you wanted to as is... Or you could use the name column and split the data as sugguested.
|
|
|
|
Joined: Jun 2006
Posts: 67
journeyman
|
journeyman
Joined: Jun 2006
Posts: 67 |
How would users go back to populate these custom field when users already entered names in the one Field for name.
Just seems strange to go to 1 field for name when programs are becoming so integrated and need First and Last name as a seperate field.
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Or you could use the name column and split the data as sugguested. As said, that's not possible. As for the 5 custom fields, loosing 3 of them just to store a name.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I fail to see how it wouldn't be possible... But, if you insist :/
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
You cannot simple divide up a name into first name, middle name and last name based on spaces.
Sure, you can get the individual words, but there's no way in telling which is which in all cases. A real life example is posted earlier in this topic (Hans Frits Franken).
So, yes. I insist.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Sure there is, calculate how many are there, assume the last is the last name, then take the rest as first through middle; bam, closest possible method to assume valid content...
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Sure there is, calculate how many are there, assume the last is the last name, then take the rest as first through middle; bam, closest possible method to assume valid content... Assume is the keyword here. There is no way to tell if the that name in the middle is the middlename, part of the first name or part of the last name. So, yes. I still insist.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Ok, give a user a ton of input boxes, read them all into one db field, seperate fields with |**| and strip that when you read it in... One input box, multiple names
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Ok, give a user a ton of input boxes, read them all into one db field, seperate fields with |**| and strip that when you read it in... One input box, multiple names There's an invention called seperate database fields which can do the same in an easier way Anyway, point is proven that the suggestion by the topicstart is not a "IMO, it's a waste of time..." kind of suggestion.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
You should have heard CC yelling at us before he left groupee on why you don't need hundreds of db cells when you can use one for things; but to each their own I suppose.
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
ok, agreed. But besides how you would implement it, a name storage that seperates first, middle and last name is a valid request.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Ruben),
1,248
guests, and
268
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|