Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 10-08-2000
Last Update: Never
Installs: 0
No support by the author.
On our old board we had added a field to allow people to add their City, State. Then we had it display in their post. We found alot of people like seeing where members were from. We are a Mustang site and this option was a nice addition. Since the change alot of people have been inquiring about it.
Is is dangerous to add a field to the table? I could do this easily with phpMyAdmin. Then I could just work the code to give the blank in the user profile field and call the field in the thread display.
Is this possible without screwing up the DB?
Thanks for any input.
MRaburn
StangNet.com
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Add as many fields as you want, it won't harm a thing. I've add several fields myself to use the users table as a hub for other applications, and I haven't run into any problems to date.
Yup - as many as you want. Over at http://www.vbulletin.org (the only vB hacking site. [hehe]) we've tied the hack database into the vB and added approximately 17 fields to the forum table.
As long as you know the code to grab the info from the db, you'll be fine.
Im going to add about 20 fields the the users profile.
Copy the member.php file, rename it, make it call new templates with all the data I want pulled in a nice arrangement. Then they would have to login and edit their profile just like anyone else.
hmmmm....
Basically when they join, I am going to have to have all the fields ready to be filled in and let it be optional... because if I dont then if they 'edit' their member profile, if those blanks that are like their car, etc... will MySQL write blanks to the fields if thet are not their to be filled in??
I guess what I am trying to say... if they edit their profile on the board with a normal link, and it only shows the normal fields, and the 'new' ones arent called, will the DB write blanks to those fields not shown or leave them intact?? I know it sounds confusing... just wanting them to have a way to edit just their user info with one link and then another 'new' link to fill in all of their car info..
Mike - if you specify the fields as NOT NULL, then MySQL will just write the default value you set for that field (0, 1, empty - whatever). I suggest you set NOT NULL anyway - it'll make if a slight bit faster.
John - Not noticably. As long as you don't search through the fields you added, very little should happen. However, the more fields you want to pull, the slower the query will become (especially with BLOBs)