Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2001
Posts: 184
Member
Member
Offline
Joined: Jan 2001
Posts: 184
Question posed to all UBB code hackers in advance of UBB6 release (this does not apply to any betas):

Many of us plan on using some of the custom fields in the member profile for our hacks. I plan on using the 4th field, to be specific. However, many of us may end up using the same fields. So, I would like to propose, informally and fully subject to debate and/or ridicule, a "standard" we could all follow to store data in that field. An informal "agreement" among UBB code hackers.

Here is my suggestion, and bear in mind I hope you all know I am not trying to run things but merely propose this to get ideas and suggestions and start some of you thinking about it when UBB6 is out of beta.

[field:"data1","data2"...]

Example:

[foobar:"hello"][test:"goodbye","world"]

Here are my thoughts:

1) encase all stored data in [] brackets
2) use comma deliminated "data" for data
3) spaces will be ignored outside of []
4) terminate line with newlines char
5) this standard would apply to all 4
custom profile fields

Additional comments:

Well, if you didn't know, a newlines character is the only character that distinguishes one profile line from another.
If we follow this format, we can create hacks that can store and retrieve data safely, not have to be in any particular order, and also we can share data between hacks if we so desire. Such as a memberlist hack using data from who's online, or vice versa.

This also means we can share the same field without corrupting each other's data, and the only criteria when writing data to the profile line is to follow the standard and ensure a newlines is on the end.

We can even work on a common routine which could be placed in ubb_lib.pl which allows which custom line is to be examined, then parse the data into an array very similar to the way ReadParse() examines the environment or command line. Example: ReadCustomProfile(4) and the info is pushed into an array. And of course we could make another routine to write data.

Standardization is scary, but if done properly, means we can all hack freely and really make UBB6 even more special than it really is with our hacks. But hacks that WORK TOGETHER. Or, at least, work with each other.

All thoughts, ideas, opinions, good/bad/otherwise welcomed. This is only for UBB6 final release so I'm merely starting conversation now, informally.

-jim

Sponsored Links
Entire Thread
Subject Posted By Posted
UBB6 future hacking standards - an open conversation for all UBB code hackers hate98 03/09/2001 10:48 PM
Re: UBB6 future hacking standards - an open conversation for all UBB code hackers AllenAyres 03/09/2001 11:07 PM
Re: UBB6 future hacking standards - an open conversation for all UBB code hackers hate98 03/09/2001 11:19 PM
Re: UBB6 future hacking standards - an open conversation for all UBB code hackers Charles Capps 03/09/2001 11:55 PM
Re: UBB6 future hacking standards - an open conversation for all UBB code hackers Leshrac 03/10/2001 12:03 AM
Re: UBB6 future hacking standards - an open conversation for all UBB code hackers hate98 03/10/2001 12:21 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)