[solved] Building aTutorial for FEU/SelfRegistration/CompanyDirectory
Posted: Tue Oct 07, 2008 2:33 am
It seems many people post questions on how to use CompanyDirectory with FEU/SelfRegister so site members can edit their own company listing. There isn't a complete tutorial post on how to do this, so I am trying to write a tutorial that takes you from A to Z all the steps to do it.
In order to do that I have to get my own working, and I could use some help on one thing.
Having setup FEU/CC/SelfRegister and CompanyDirectory, how do we create a new CompanyDirectory record for the newly registered user automatically? I was thinking of using the username from FEU as the company_id in {CompanyDirectory}.
The question is, will this create a new entry, if the company_id doesn't exist?
{CompanyDirectory action='fe_edit' companyid=$ccuser->property('username')}
If not, is there a simple way to create a new CompanyDirectory record for a new SelfRegistered user, automatically - with no administrator interaction?
In order to do that I have to get my own working, and I could use some help on one thing.
Having setup FEU/CC/SelfRegister and CompanyDirectory, how do we create a new CompanyDirectory record for the newly registered user automatically? I was thinking of using the username from FEU as the company_id in {CompanyDirectory}.
The question is, will this create a new entry, if the company_id doesn't exist?
{CompanyDirectory action='fe_edit' companyid=$ccuser->property('username')}
If not, is there a simple way to create a new CompanyDirectory record for a new SelfRegistered user, automatically - with no administrator interaction?