hook into frontend users module?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jerryg
New Member
New Member
Posts: 3
Joined: Sun Feb 26, 2006 7:33 pm

hook into frontend users module?

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: hook into frontend users module?

Post 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 )
{
   ....
}
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.
jerryg
New Member
New Member
Posts: 3
Joined: Sun Feb 26, 2006 7:33 pm

Re: hook into frontend users module?

Post 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);
Post Reply

Return to “CMSMS Core”