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
hook into frontend users module?
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: hook into frontend users module?
You can do this in a user defined tag.
Btw, look in FrontEndUsers/FrontEndUsers.api.php to see the functions that are available.
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 )
{
....
}Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: hook into frontend users module?
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);
