Page 1 of 1

hook into frontend users module?

Posted: Wed Oct 11, 2006 2:40 pm
by jerryg
Hello,

I am trying to import 500 users into the FEUsers module. HOw do I include the CMSMS and FEUsers functions into my own PHP script? Or is there a better way?

TIA, Jerry

Re: hook into frontend users module?

Posted: Wed Oct 11, 2006 3:00 pm
by calguy1000
You can do this in a user defined tag.

Btw, look in FrontEndUsers/FrontEndUsers.api.php to see the functions that are available.

Code: Select all

global $gCms;
$feusers = $gCms->modules['FrontEndUsers']['object'];
if( $feusers != NULL )
{
   ....
}

Re: hook into frontend users module?

Posted: Wed Oct 11, 2006 5:29 pm
by jerryg
Thanks, that works great. I just include the include.php before like so:

Code: Select all

include_once('include.php');
global $gCms;
$feusers = $gCms->modules['FrontEndUsers']['object'];
$feusers->SetUserPropertyFull('name','Jerry',1);