News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Working with different DB's

Started by goeste, October 17, 2016, 07:32:42 AM

Previous topic - Next topic

goeste

Hello,
ich have the SMF integrated in my Homepage with Iframe, it works fine. Now i have a question:
At my homepage i have a security area. the people can register and only this people have access to the memberarea /with own database). Now, how can i realize that the SMF use the Users from my Homepage-Database also as User for the forum and the rest in his own database ?

Have anyone any idea.

Thanks in advance

Stefan

goeste

my english is not so good that i can understand all here. so please help me.
database 1 my homepage
database 2 smf

users with password from database 1
all topics and posts in database 2

can anyone give me a example for this ?

thanks in advance

best regards
stefan

Kindred

no....   there is no really good way to do what you are asking -- and many good reasons NOT to do that.


You can sync the users together using the API -- or you can shift the control of the users and permissions over to SMF and then use SMF's SSI functions to control access to the rest of your site.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

goeste

ok, so how can i sync the user of db 1 with user of db 2 ?

thanks

yaax

You need to connect two mysql tables with your users, you can connect them by additional id column or by special another table where you can store ids from both user tables.
Free SMF hosting:
http://www.ForumSide.com/

Free OpenCart shop hosting -
http://www.GetFreeShop.com/

Advertisement: