Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

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.

Comments
  #2  
Old 10-09-2000, 12:02 AM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #3  
Old 10-09-2000, 12:07 AM
Guest
 
Posts: n/a
Default

Thanks for the reply....

As many as you want!?!?

I was thinking what if I could add fields for like car mods, track times, URL to pictures of their cars, time slips, etc... would this be viable??

Then create some kind of special link to go to like...

"Readers Rides" and pull the info out of the Database... this would work?

almost making it like a stand alone program but all in the same... ??

Thanks!
Mike
Reply With Quote
  #4  
Old 10-09-2000, 12:12 AM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 10-09-2000, 12:18 AM
Guest
 
Posts: n/a
Default

So basically,

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

Thanks
Mike
Reply With Quote
  #6  
Old 10-09-2000, 12:19 AM
Guest
 
Posts: n/a
Default

Wouldn't more fields make it run slower? I know with access db's having more fields makes it slower...
Reply With Quote
  #7  
Old 10-09-2000, 01:14 AM
Guest
 
Posts: n/a
Default

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)
Reply With Quote
  #8  
Old 10-09-2000, 05:16 AM
Guest
 
Posts: n/a
Default

Access shouldn't be considered a database
Reply With Quote
  #9  
Old 10-09-2000, 11:20 AM
Guest
 
Posts: n/a
Default

I am trying to use phpMyAdmin to add a field to the 'user' table.

But for some reason I do this action and it says its done, but when I go back to look, the field is not added.

What am I doing wrong?

EDIT: OK, I was trying to add a field of 'MEDIUMTEXT' and that is why it would not add, I was only trying to add 50 charec. to the field.

What is the minimum if I wanted to make it a MEDIUMTEXT Field for future reference??

Thanks!

Mike

[Edited by MRaburn on 10-09-2000 at 08:30 AM]
Reply With Quote
  #10  
Old 10-09-2000, 01:22 PM
Guest
 
Posts: n/a
Default

Don't give it a size

....or you could take a look at mysql.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12748 seconds
  • Memory Usage 2,261KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete