News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Please Help: Use SMF member table for my custom site

Started by crhayes, October 23, 2008, 10:41:46 PM

Previous topic - Next topic

crhayes

I am planning on creating a custom CMS and using the SMF member table for registration (that way I have one member table being used for both the site and the forum). I will be adding some of my own custom fields to the table.

However, I am wondering how I can create my own custom login/registration pages and save this data in the database. I could probably look through the SMF code and figure it out, but I was wondering if there was any way of using hooks to do this (as I don't completely understand them yet).

青山 素子

The hooks can be kinda tricky to get at first, but look at our bridges to see them in action. That should give you a good feel for how they function and give you the push to get started. Also, you are welcome to use the code from a bridge in your own efforts, but please remember to respect our license (which means no distributing of our code, if you do distribute your work).
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


palofdru

  Note: this post will not display until it's been approved by a moderator.
Quote from: crhayes on October 23, 2008, 10:41:46 PM
I am planning on creating a custom CMS and using the SMF member table for registration (that way I have one member table being used for both the site and the forum). I will be adding some of my own custom fields to the table.

However, I am wondering how I can create my own custom login/registration pages and save this data in the database. I could probably look through the SMF code and figure it out, but I was wondering if there was any way of using hooks to do this (as I don't completely understand them yet).

you can bypass using hooks alltogether, by using the SSI.php functions, much easier to get started.

Use the custom profile fields MOD (and search the mod library for "registration") to implement the additional functionality w/o getting into too much coding.
My best suggestion to you is that you do whatever you feel like doing, for whatever reason you choose to make, without any required explanation nor justification. You probably will, so hop to it!

boo hoo!

Advertisement: