You are not logged in.

1

Friday, February 10th 2012, 5:14pm

Send registration information to more than one table

Hello, I am wanting to make it so that when you register on the boards, it sends some information to another table in the same database, as I am wanting to attempt to make it so that users only have to register once for my own custom made site and the boards. The site that I created uses sha1 password encription, like Woltlab's, so it shoulden't be a problem to transfer the data..

What I am wondering is, what or where do I edit the Woltlab codes to post the SQL information to the required table?

I also need as much information on how it records login's, does Woltlab use Sessions and Cookies to store the information or another method?

Netzwerg

Member

  • "Netzwerg" is male

Posts: 5,574

Location: Ruhrpott

Occupation: Student

  • Send private message

2

Friday, February 10th 2012, 5:23pm

What I am wondering is, what or where do I edit the Woltlab codes to post the SQL information to the required table?

Nowhere. you do not edit code. You can do that easily with event listeners. Set an event listener to save@RegisterForm (see Working with event listeners).

Quoted

I also need as much information on how it records login's, does Woltlab use Sessions and Cookies to store the information or another method?

Yes.


But, you should try it the other way round. Duplicating data is never a good idea. Instead, can you rewrite your login script on your own homepage in such a way, that it simply uses the database of WBB? That way you would avoid splitting the data and you would have no need to sync them (and the possible issues with syncing).
Best regards,
Sebastian Teumert

3

Friday, February 10th 2012, 5:28pm

I see, It could probably work, but I don't wan't Woltlab to be the main background of the site as I want it easy to edit. So, maybe this could be an option later on.

Thank you for the information.

4

Friday, February 10th 2012, 5:40pm

Actually... (Sorry if double posting is not allowed)
Seen as though my website runs on sessions and getting information from my own tables, how would I be able to get the session information from Woltlab to make my site work.

Also how would I change the login page to post to woltlab and stay on the main site without going onto the boards first, would i have to create the login to send and recieve the information to woltlab's user table?

Also, can I edit the Woltlab's user table to include my own tables without it crashing?

Netzwerg

Member

  • "Netzwerg" is male

Posts: 5,574

Location: Ruhrpott

Occupation: Student

  • Send private message

5

Friday, February 10th 2012, 5:43pm

Seen as though my website runs on sessions and getting information from my own tables, how would I be able to get the session information from Woltlab to make my site work.

Simply set an event listener on saved@LoginPage. Whenever a user sucessfully logs in, also create the cookies necessary for your own page. Do the same for Logout (destroy cookies). The other alternative: make your site read the WCF cookies.


Quoted

Also how would I change the login page to post to woltlab and stay on the main site without going onto the boards first, would i have to create the login to send and recieve the information to woltlab's user table?


Well, you already have a working login machanism, right? So just change the table against which it checks ;)

Quoted


Also, can I edit the Woltlab's user table to include my own tables without it crashing?

Why would you want to include them? You can alway do a LEFT JOIN in all relevant queries and get information from other tables as well...
Best regards,
Sebastian Teumert

6

Saturday, February 11th 2012, 1:33am

seems simpler than i thought, i guess i best start learning codes for event handlers.

I am guessing it's php... otherwise I dunno what to do..

Ok, thanks for your help Netzwerg