News:

Wondering if this will always be free?  See why free is better.

Main Menu

Registration hack

Started by Lionmane, March 25, 2007, 01:09:43 PM

Previous topic - Next topic

Lionmane


SMF Version: 1.1.2

Hi!

I'm trying to change the registration process so that it creates a seperate table for members in a seperate database.

Essentially, I was just wanting to take the "ID_MEMBER", "memberName" and "ID_GROUP" fields and write them to my own database for my own nefarious purposes.

What are the variable name(s) that contain the data for these fields in the Register.php script?

For instance, if I wanted to do this:
INSERT INTO Nefarious_Members_Table (ID_MEMBER, memberName, ID_GROUP) VALUES ('$??', '$??', '$??');

Thanks!

mw

heavyccasey


karlbenson

can i ask what you are wanting to do with the information.
It may be that you may be better able to simply query the information i nthe database.
Especially since membername mayy change and  also idGroup,idPostGroup and additionalGroups.

Lionmane


I have a queue setup for each member.  This involves doing my own updating to the member's info and I don't want to mess with the SMF tables.  Hence, my own table and preferrably my own database.

I can just use the ID_MEMBER field for queries.  The extra info was overkill.

Where would I add the code to update my member table?  I tried adding it to the end of the Register.php script right before the die() function, but it had no effect.

I called my connection script and it seemed to connect (ie: no errors):
require_once ('../../../ssl/connect_E2E_Members_table.php');

Am I able to connect to a new database while in the Register.php script without crashing it?

mw

Lionmane

#4

Eureka!  I found where to put my code!  At the very end of the Register2() function!

Wow...  Took me a while...  But that's ok!  It sure feels good!

mw

Advertisement: