Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
This is the thread we will begin profile field mapping for UBB Version 6. It will make modifications that use the profile fields much more standardized, assist borg in his "vinkulum" modification, make trouble-shooting more efficient, and avoid most of the problems we had in our last upgrade.

This will probably be the order we need to go in to begin with this:

1. Map the current profile fields in V6 - the easiest part and should be done in the next day or so. - done 02/04

2. Decide if we should use the custom profile fields for standard modifications or allow the user to use them. In other words, most of the work is already done with the 4 custom profile fields already written in, should we use these now? Most likely, yes.

3. Assign profile fields to modifications on a first-come, first served basis, unless by vote of majority we think one deserves precedence over another. We should also leave room for Infopop's further development by starting with several blank profile fields after the current list.

4. Organize development to where a developer working on a new modification "applies" for a profile field and it is assigned based on the above.

Here is the start of the mapping for v6 profile fields. Profile numbers start with "0" for user name and progress from there.

0 - user name
1 - password
2 - email address
3 - homepage
4 - permissions
5 - occupation
6 - location
7 - post count
8 - status
9 - interests
10 - register date
11 - email address viewable
12 - signature
13 - ICQ
14 - allow mass email
15 - publically displayed name
16 - custom field 1
17 - custom field 2
18 - custom field 3
19 - custom field 4
20 - member picture
21 - default topics viewed
22 - AIM
23 - publically displayed name of last user to update this profile|^|member number of last user to update this profile|^|update date
24 - profile locked
25 - publically display user rating
26 - approved registration
27 - PMs enabled
28 - PM notify enabled
29 - PMs locked ("no" means locked)

55 - Birthday (Jordo) smile

We'll update this post as we go to keep everyone on the same page. Its success is up to you, this should make it much easier to keep track of where we are in terms of the profile fields and make development go faster.

I welcome and encourage your input.


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
i havent look @ the coding yet but i see you have and i was wondering....how are profile #'s called for...like $thisprofile[#] i think its a diffrent way?

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Nope, Ted's still using an array for the user profiles. He should be using a hash. *L*


UBB.classic: Love it or hate it, it was mine.
Joined: Oct 2000
Posts: 117
Member
Member
Offline
Joined: Oct 2000
Posts: 117
This sounds like a great idea Allen!

I guess the avatars seem to be the first out of the blocks. Do you guys think we should use cf1 for it? I think so.

Custom user text should probably be next. I vote CF2 for that one.

If I get time tonight, I'll try to find out what those profile fields with the question marks cover. Most likely, Do you agree with the price increase? I think I broke the "no" on mine. wink


Duke

"Life is tough, it's tougher if you're stupid."
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
CC - that'd be a good mega hack. Converting the profile fields to use a hash. smile

Sponsored Links
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Here are the fields you didn't get:

24 - profile locked
26 - approved registration
27 - PMs enabled
28 - PM notify enabled
29 - PMs locked ("no" means locked)

And a correction:

23 - publically displayed name of last user to update this profile|^|member number of last user to update this profile|^|update date

[ February 04, 2001: Message edited by: Leshrac ]

Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
yo costom user text would be easy......like all u do is use one of the costom input fields as a user text and then make it so that if a user has that field filled in show it......and vise-versa!

Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Regarding profile field assignments, I'm still a big supporter of having the hacks use independently assignable profile field locations. It's just a simple matter of modifying the way profiles are written to, like I did with the Karma hack. This way, the people installing the hacks can assign whatever free fields they have, and thus prevent the profiles from becoming 50 lines long just because someone installed a hack that uses field 49, but didn't install any of the others. Or, better yet, you could have all the hacks read off of a template member file that contained the field definitions for all the profile fields currently used on a particular board. When a hack was installed, it would read that file, find the first free field, and then write to the template and claim it. If Infopop decided to use more profile fields, an upgrade script could be written to use the template file to convert all the member files to the new format and then update the template accordingly. I would be more than happy to work with some other knowledgable members of the UBB hacking community (and Infopop) to write some library files for using a template system such as this, as I really think it would make things a lot easier for people across the board.

Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
OK, I've written up a couple early library files for the system I proposed. One file contains routines for installing and removing profile fields, the other contains common routines for reading from and writing to profiles using named fields (based on the installation) and for determining the maximum allowable fields. They're both heavily commented and cleanly written, Strict compatible, and should be easy to understand. If any serious code hackers are interested in taking a look at them and helping with this project, please e-mail me.

Joined: Feb 2000
Posts: 57
Member
Member
Offline
Joined: Feb 2000
Posts: 57
Thanks a lot, that is really helpfull. Earlier yesterday when I was trying to add something to the profiles...I was using trial and error to figure what slot went with what...if I had your map then it would have been a lot faster. smile

Btw, I love the fact that infopop gave us some extra fields to customize.

Sponsored Links
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Just bumping this back up for some more attention. If anyone is working on hacks that add or mess around with profile fields, let me know and I can give you a beta copy of the library files I've written up for doing so. They seem to work pretty flawlessly so far, and make adding and using new fields a lot easier.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I would like a copy Leshrac, when you get a chance. I may add a couple of fields like the yahoo messenger and MSN messenger. I sent a pm to borg to check this thread out, he may not have checked his pm's recently.


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 20
I would also like a copy of the lib files if you get the chance.

Joined: Feb 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 5
hi !
where can i find this hack ?

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Hey Leshrac, I'm interested...I really want the custom status part of my hack to have its own profile field instead of using custom field number 4. Please, send the stuff to [email protected] . Thanks in advance.


-DT
Joined: Jan 2001
Posts: 184
Member
Member
Offline
Joined: Jan 2001
Posts: 184
Quote
quote:
Count me in. I am very concerned that hacks I add vs. other hacks will interfere, and also if adding new profile fields, will this break other software. Can you put my mind at ease and explain how InfoPop would like hackers to deal with profile fields other than the 4 custom fields? I wanna be responsible and make sure I do it right.

Also, I'll need to know the total char limit of a custom field already built into the profile?

-jim

Joined: Feb 2001
Posts: 27
Rob Offline
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 27
I would like a copy

Email - [email protected]

Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Jim - I talked to navaho when I first started writing these, and he though they were a good idea and probably the best way to handle it. The libraries allow you to install, uninstall, and interface with additional fields without interfering with any other installed hacks. The user just has to have the libraries installed themselves and do a one-time setup as described in the readme. In the event that Infopop adds more fields to the profile, the template used by the libraries would make it very easy to write an upgrade script that converted all the profiles to the new format.

Quote
quote:
I'm afraid I don't understand, could you please clarify what information you're looking for?

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
He wants a max character count for each field.. as I explained over at SK, other than username(25), password(8?), email(40?), and the yes/no fields, there shouldn't be a limit to the outside world.


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 3
Hi Leshrac,

I'd like a copy of the your Beta library smile

Please send it to me at gus@oriented.org

Cheers!

Joined: Jan 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 3
Hi Leshrac,

Thank you for sending me the libraries.

This note is for those of you who have Beta 8.1, like me: I'm missing mem_fields.cgi -- eek -- this trips the process of adding a new member. Obviously I have to read more before hacking my scripts. I'll post again if/when I find it where this correciton should be made.

Cheers! tipsy

Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Gussie - You need to write up a short script that will execute the create_template subroutine in ubb_member_interface2.cgi. Remember that these libraries are intended to be used by developers for inclusion in their hacks, not as independent scripts. This is why I didn't include an install script, as there's no reason to use these libraries on an unhacked board.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
up from the depths....:)

FYI - IP has now reserved the first 50 profile fields for 6.1+. You might begin considering adjusting your modifications if they fall under that number.

Jordo has requested field #55 for use in the calendar for birthdays...


- Allen wavey
- What Drives You?

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
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)