Page 1 of 1

[Solved] Could not find the FrontEndUsers module Error?

Posted: Wed Oct 31, 2007 8:31 pm
by applejack
I am getting the error Could not find the FrontEndUsers module when this is called using the Company Directory module with an action of fe_edit. If I do a simple call to FEU using {cms_module module=FrontEndUsers} it works as it should so it seems like there is possibly an error in Company Directory connecting with FEU.

Any ideas anyone?

I am using CMSMS v1.2
FEU 1.2.2
Custom Content 1.4.9
Company Directory 1.1

Re: Could not find the FrontEndUsers module Error?

Posted: Thu Nov 01, 2007 5:15 pm
by calguy1000
The code checks if the FrontEndUsers module exists, and if you're currently logged in.  I should probably change the error message.

Re: Could not find the FrontEndUsers module Error?

Posted: Thu Nov 01, 2007 5:48 pm
by applejack
Hi Calguy1000

OK so I have to be logged in first.

Can you let me know the answer to my other post re the Company Directory module as I am unsure as how this all supposed to work together.

I need the functionality of the Company Directory module to be able to create multiple categories and assign more than one category to a Company. Then on the front end to anyone, be able to show the list of categories which then link to a list of companies assigned to that category i.e. summary and then of course the detailed page.

The companies details will be set up initially by the site administrator but after that their needs to be the facility for the companies to be able to edit their own info. Can this be done using these various modules? I do not see how a company record can be assigned to a FEU unless one creates a username and password as part of each companies record and then also set them up in FEU using the same username and password. Or can a company record be assigned to a FEU and if so how?

Re: Could not find the FrontEndUsers module Error?

Posted: Thu Nov 01, 2007 5:58 pm
by calguy1000
I need the functionality of the Company Directory module to be able to create multiple categories and assign more than one category to a Company. Then on the front end to anyone, be able to show the list of categories which then link to a list of companies assigned to that category i.e. summary and then of course the detailed page.
Sure, the 'categorylist' parameter is in the help for the CompanyDirectory module.

The companies details will be set up initially by the site administrator but after that their needs to be the facility for the companies to be able to edit their own info. Can this be done using these various modules? I do not see how a company record can be assigned to a FEU unless one creates a username and password as part of each companies record and then also set them up in FEU using the same username and password. Or can a company record be assigned to a FEU and if so how?
The way I did this was to create a hidden property in FrontEndUsers, the administrator then fills in that property with a related company_id.  then you can use the CustomContent property method to get the company id out, and supply that to the CompanyDirectory fe_edit form.

i.e: 

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('company_editors)}
{CompanyDirectory action='fe_edit' companyid=$ccuser->property('company_id')}
{/if}

Re: Could not find the FrontEndUsers module Error?

Posted: Thu Nov 01, 2007 6:10 pm
by applejack
Hi Calguy

Ok now that makes sense. Thanks for all your help.

P.S. For anyone else there is a typo error in the code above a missing ' should be

{if $ccuser->loggedin() && $ccuser->memberof('company_editors')}
{CompanyDirectory action='fe_edit' companyid=$ccuser->property('company_id')}
{/if}

Re: [Solved] Could not find the FrontEndUsers module Error?

Posted: Fri Jan 11, 2008 4:51 pm
by pbrady
Hi,

I am running with the following config:

System:
=======
Debian Linux (Etch 4.x)  2.6.18-5-686 #1
PHP 4.4.4
MySQL 5.0.32
Apache 2.2.3

Modules Listed in this post:
=======
FEU 1.3.1
CompanyDirectory 1.1.1
CGExtensions 1.3

Hmmm....this is exactly what I needed to find. One additional question to add however.

Is it possible to have frontend users modify any record instead of just being restricted to one (as determined by company_id) ??

So, instead of this:

{if $ccuser->loggedin() && $ccuser->memberof('company_editors')}
{CompanyDirectory action='fe_edit' companyid=$ccuser->property('company_id')}
{/if}

You might see something like this:

{if $ccuser->loggedin() && $ccuser->memberof('company_editors')}
{CompanyDirectory action='fe_edit' companyid=$ccuser->property('some_wildcard_char_here')}
{/if}

I looked on the smarty web site and here but am still learning and not sure how or if adding a wildcard here is possible. Does anyone know?

Thanks in advance!!!