Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2002, 07:36 PM
interrealm interrealm is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm working on integrating the vB into my site and was wondering what tables would be effected by adding members to the user table from outside of vb?

To make sure this is clear, I have a script from a seperate webpage that will add a new user to the user table that vB uses. Will doing this outside of vB cause problems or should I also be intserting data into other tables at the same time.
Reply With Quote
  #2  
Old 01-03-2002, 10:13 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to insert the record into the `user` table and also another record into the `userfield` table (this is important).
Reply With Quote
  #3  
Old 01-03-2002, 11:39 AM
interrealm interrealm is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about the date/time fields. While I was looking.. i notce they arn't standard date/time fields, but instead are int set. What format do these use? or can i leave those blank?
Reply With Quote
  #4  
Old 01-03-2002, 11:55 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For date fields that are INT(10) you use PHP's UNIX timestamp (see http://www.us2.php.net/manual/en/function.time.php).
Reply With Quote
  #5  
Old 01-03-2002, 01:18 PM
interrealm interrealm is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok... thats going to make it pretty hard to do via cold fusion which is what the majority of the rest of my site is made in I think. Would it be ok to simply insert an existing value, say I sign up on Jan 5, 2002 and take the value used for that login and use it to inserto into the required fields? I know that the "signup" date might be wrong but i'm not too concerned about that.. since whenever they come back to the sight and log in they will update other values correctly.

Does anyone have a "signup script" built in PHP that would work from outside of vB? I'd like to be able to add extra fields like "address, city, state, zip" and a few others that I'll be using through out my site.
Reply With Quote
  #6  
Old 01-03-2002, 01:26 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure ColdFusion doesn't support UNIX Timestamp? I doubt it...
Reply With Quote
  #7  
Old 01-03-2002, 01:32 PM
interrealm interrealm is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good news is there is a tag for CF that supports Unix TS conversion.

Now my last question for now... Will it effect vB if i add fields to the user table? such as address and whatnot? if i give them a unique prefix on each field name like XXXadd, XXXzip and so on that way i twon't effect future possible additions by the vB developers.? Should I add these to the "userfield" table instead?
Reply With Quote
  #8  
Old 01-03-2002, 01:45 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should probably prefix the fields you add like you said, just to be on the safe side.
But I would recommend adding them as profile fields, from the Admin CP. You can set them to be only editable by admins, or hidden from regular users, which is enough unless you need more things to them.
Reply With Quote
  #9  
Old 01-03-2002, 01:52 PM
interrealm interrealm is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool.. thanks for the help.

Once i get it done I'll post it here if ya want... it might be handy to add a "non-php hack" section for things like this.

Like i said.. once i get this completed I can post the info if desired.
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:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04296 seconds
  • Memory Usage 2,235KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete