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: 09-11-2000 Last Update: Never Installs: 0
 
No support by the author.

Is there a hack if this is possible at all that you could sign up a user on two boards on two different servers?

so for instance when I sign up for this board I'm gonna b registered on another board as well?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-11-2000, 04:06 PM
Guest
 
Posts: n/a
Default

If you have access to both databases you could easily duplicate the new user code so that it made the inserts to both db's at the same time. You would need to handle the case of the username/email possibly already existing in one of the db's but not the other.
Reply With Quote
  #3  
Old 09-11-2000, 04:10 PM
Guest
 
Posts: n/a
Default

that's what I was thinking too, but if I have the same members on both it won't happen, since when you reg for one your automaticaly reg for the other, and I would import the old users to the new board anyways!

Do you know how to do this?
Any help will be really appreciated!
Reply With Quote
  #4  
Old 09-11-2000, 04:13 PM
Guest
 
Posts: n/a
Default

Yes I do but must ask the question : if both db's have the same user database why not just reference one database?
Reply With Quote
  #5  
Old 09-11-2000, 04:16 PM
Guest
 
Posts: n/a
Default

well I mean if you have two boards not from the same person, like you want that all your users sign up for another board on another server on another database (even because you can't have more than one vbb on the same db) to sign up for your friend's board as well, and your friend is starting so his board had no users
Reply With Quote
  #6  
Old 09-11-2000, 04:22 PM
Guest
 
Posts: n/a
Default

I'm sorry I think I know what you mean know, but how would I reference one database frmo another board? Where would I have to change?
Reply With Quote
  #7  
Old 09-11-2000, 04:29 PM
Guest
 
Posts: n/a
Default

So first you would need to export your users table (the one with the users) and import it into your friend's user table. You know would have the same users. (You would do this using phpMyAdmin easily)

From here I assume you both make the hacks so that a new user at either board would be entered into the other boards database also.

You would need to give your database info to your friend and he would need yours. The hack would be a minor one to member.php.

You also would need to update a user's info on both boards if/when they choose to change their profile (homepage/password/ICQ/etc)

Again this would be a minor change to member.php.

Remember trying to maintain synchronized data on separate databases is not a fun task. What happens if a user regs at your server but your friend's server is down or inaccessible at that moment? You are now out of sync. You could write even more code too make sure a queue is maintained so that the database's can be synched but the hack then becomes tedious. What happens when the user's userids get out of sync? Userid is an auto-increment field and can easily get out of whack. User A regs at your board and user B regs at your friends board at the exact same moment and they both get userid 40. User A then get 41 on your friends board and User B gets 41 on your board. You now see they are different. vB operates off of the $bbuserid so it would be important for them to match. I hope I have scared you enough to not try this. I would suggest you just make (or ask) for a hack that would modify only one of your boards (yours or your friends) to use the other boards user database. You would have no synchronization problems with that outcome.
Reply With Quote
  #8  
Old 09-11-2000, 04:33 PM
Guest
 
Posts: n/a
Default

yes you have scared me enough
So is it possible to have not sharing a database, but to register for another board? if it doesn't sync t wouldn;t be such a problem, because the user would still be reged on one board, but not another

Thanks for you help, and I'm sorry if I'm not understanding what you r trying to say
but if I did, is ther a safe way to do this? Waht would you recommend?
Reply With Quote
  #9  
Old 09-11-2000, 04:34 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by conan
I'm sorry I think I know what you mean know, but how would I reference one database frmo another board? Where would I have to change?
You would edit config.php. Duplicate the connection settings but change them to match the server that is going to hold the user table and assign the connection a different name other than $DB_site (perhaps $DB_user)

Say your forum is the one we are going to use for the user table. We change nothing on yours. You give your friend your database settings, he does what I said above. He then has to edit every php file that uses the user table and change the lines that insert/select/update/delete the user table from $DB_site to $DB_user

Would this be sufficient for what you want?

Your database would also need to have permission to allow your friend's server to connect. It may already allow connections from anyone but you would have to ask your admin, or just try and see if it works.

You then lock your friend into having to make these changes every time he upgrades.
Reply With Quote
  #10  
Old 09-11-2000, 04:38 PM
Guest
 
Posts: n/a
Default

That would be great, thansk a lot for you time, and fast replies!
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 11:00 PM.


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.07448 seconds
  • Memory Usage 2,262KB
  • 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)bbcode_quote
  • (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