[Solved] Could not find the FrontEndUsers module Error?

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
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

[Solved] Could not find the FrontEndUsers module Error?

Post 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
Last edited by applejack on Thu Nov 01, 2007 6:11 pm, edited 1 time in total.

Website Design & Production
http://www.applejack.co.uk
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Could not find the FrontEndUsers module Error?

Post by calguy1000 »

The code checks if the FrontEndUsers module exists, and if you're currently logged in.  I should probably change the error message.
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.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Could not find the FrontEndUsers module Error?

Post 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?

Website Design & Production
http://www.applejack.co.uk
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Could not find the FrontEndUsers module Error?

Post 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}
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.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Could not find the FrontEndUsers module Error?

Post 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}
Last edited by applejack on Fri Nov 02, 2007 1:32 pm, edited 1 time in total.

Website Design & Production
http://www.applejack.co.uk
User avatar
pbrady
Forum Members
Forum Members
Posts: 96
Joined: Sat Feb 10, 2007 4:31 pm

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

Post 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!!!
Post Reply

Return to “CMSMS Core”