We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

preferred method of programatically adding new members

Development and Programming

wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow

Hi, I know I can hand roll the sql; copying from member import or add new member, but that becomes a bit of a pain when something changes in a future version.

Ideally a function would be easiest for me but that doesn’t seem to exist.

What is the preferred way to do this?

-kevin

       
BlackHelix's avatar
BlackHelix
226 posts
17 years ago
BlackHelix's avatar BlackHelix

If you can get your information into the Post array, you CAN use a function. Here’s how:

if ( ! class_exists('Typography'))
            {
               require PATH_MOD.'mod.member'.EXT;
               require PATH_MOD.'mod.member_register'.EXT;
            }

$register_member = new Member_register;
$register_member->register_member();

You’ll have to have a series of var’s in the Post array, though. Once that is done, that function will take care of it.

hope that helps!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.