Frontenduser and customcontent confusion

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.
Locked
zeld66

Frontenduser and customcontent confusion

Post by zeld66 »

Dear all

I am a new user to cmms and have the basics of cmms up and running, which I hasten to add is brilliant after using xoops Cmms is so simple.  I wish to create a members only area and have installed the latest versions of frontenduser, customcontent and selfregistration.   

I have created the permissions, groups and users.  I can place the login for frontenduser and registration form etc into my template however as my knowledge and understanding of exactly how cmms is limited I am struggling with how to create pages for "groups" ie where to place the "code" in a template so this template can be used for Members Only area content.


I seem to get the page showing as a member and public. I have searched the forum and have tried the recommendations, however I guess I am asking for step by step instructions so I can grasp how it works for these member pages. 

Any assistance would be greatly appreciated.

Kind Regards
Zeld66
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontenduser and customcontent confusion

Post by calguy1000 »

Well, if you want the private pages to only show up in a menu when the users are logged in I suggest you organize your pages in such a way that you can use two menus:

The first for the public information

The second for the private information.

Then, using custom content in your template and/or in your page like this

{cms_module module=CustomContent}



Welcome, you are entitled to see private information

You are not entitled to see the private information


You'll have to put all of your private pages under a section header, and mark that section header as "not shown in menu"
and fool with the private menu manager tags till you get the effect you need.

Hope this helps
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.
chipus

Re: Frontenduser and customcontent confusion

Post by chipus »

hi calguy,

i am confusing with the Frontenduser too.

When i click on "Forgot password", nothing happen. What should i do to use it?

Furthermore, i want to change to another language. What i did is create another language file in the lang folder, However, it doesn't work.

Could u help me ?

Thx very much
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontenduser and customcontent confusion

Post by calguy1000 »

hmmm, which version of feusers are you using?

and to change to a different language, I think there's a setting in the config.php file
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.
zeld66

Re: Frontenduser and customcontent confusion

Post by zeld66 »

Dear Calguy1000

Thank you for your prompt response.  I have posted below what I have in my Restricted Template I now have a restricted Members area but my content is not showing up.  This is what I have put in  my restricted template which I am using to create my restricted pages with:


   

     
     
         {title}

{cms_module module=CustomContent}
   
{cms_module module=FrontEndUsers}
       
{content}

You don't have authorization to see this content





         

I know I am missing something as I now get the logon box , but when I login as a member I still cannot view the restricted information and still get "you don't have authorization to see this content". 



Any help would be greatly appreciated.

Regards
Zeld66
zeld66

Re: Frontenduser and customcontent confusion

Post by zeld66 »

Dear Calguy1000

I FIXED it..... I had  'Basic' not Basic.  Now.... another question if you would be so kind. I have taken out the frontenduser tag so I don't keep getting the login box  in my restricted page and have placed this is on the side in content2.  However when they log in it is fine they can access the restricted pages, however there is no where now for Members to log out or change their settings etc.  Would this be because in "content2" I have {cms_module module='FrontEndUsers' form='login'} this and should take out the Form=login

Could you perhaps suggest the right way to set up logins and Members loggin out.

Thanks

Zeld66
zeld66

Re: Frontenduser and customcontent confusion

Post by zeld66 »

Dear Calguy 1000

Thank you again for all your help.  I love CMMS so easy to use.  I again fixed the above problem I removed the name"login" from the frontenduser path.

Now I will attemp the menu for the restricted area.

Thanks again

Zeld66
zeld66

Re: Frontenduser and customcontent confusion

Post by zeld66 »

Oops

Back again.  I just read chipus' post and checked my forgotten password.  I to have nothing happen and I am using fronteduser 1{1}.0.4  which I assumed was the latest.  I only downloaded it 2 days ago.

Any assistance would be great.  Sorry for all the questions.

Zeld66
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontenduser and customcontent confusion

Post by calguy1000 »

Yep, if you take out the form='login' things should work.

If you don't specify a form, and use the default, then (looking at the code at the moment) then the system will display the Login form if the user isn't logged in, and the Logout/Change Settings link if the user is logged in.

It's designed this way so you can have a little bit more control over things. but in the default situation {cms_module module=FrontEndUsers} is sufficient.

Now to check the "change settings link not working thing" I could've sworn I just tested that.
zeld66 wrote: Dear Calguy1000

I FIXED it..... I had  'Basic' not Basic.  Now.... another question if you would be so kind. I have taken out the frontenduser tag so I don't keep getting the login box  in my restricted page and have placed this is on the side in content2.  However when they log in it is fine they can access the restricted pages, however there is no where now for Members to log out or change their settings etc.  Would this be because in "content2" I have {cms_module module='FrontEndUsers' form='login'} this and should take out the Form=login

Could you perhaps suggest the right way to set up logins and Members loggin out.

Thanks

Zeld66
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.
zeld66

Re: Frontenduser and customcontent confusion

Post by zeld66 »

Dear Calguy1000

Thank you again for all your assistance.  I have just checked the two templates with frontenduser on.  One the password works the other does not.  Obviously I have done something although I just replaced the code (below) on the template that does not work with the template code that does work and it still isn't working. 

The one that does work has the following code:


Welcome to the site

You must log in or register to view this page
     
     


The other template is my restricted only template used for members and has the following code:  The forgotton password does not work here.


div id="content2">
         Members Login
        {cms_module module=FrontEndUsers}     


Is there a conflict in the template somehere that could cause this.

If you could highlight where I have gone wrong I would appreciate it greatly.

Regards
Zeld66
zeld66

Re: Frontenduser and customcontent confusion

Post by zeld66 »

Dear Calguy1000

Thinking about my situation with the forgotten password, would the forgotten password page that comes up be unable to be shown because the template is restricted to Members only and they have to be logged in.  This would explain the reason for it not showing up.  It makes sense to me.  If you agree please disregard the above post as I will work around this issue. I think once I get the menu for members up and running this shouldn't be an issue because to see the restricted template they will already be logged in.

Sorry for any inconvience I may have caused.

Thanks again
Zeld66
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontenduser and customcontent confusion

Post by calguy1000 »

yeah, that would do it :) 

The forgoet password form replaces {content} when it's brought up, and if that's inside a customcontent if statement, then that code will be removed before being sent to the browser if the user isn't logged in.

So yeah, that'd do it. 

I tested the normal case yesterday, and it worked fine.
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.
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Re: Frontenduser and customcontent confusion

Post by Darwin Web Design »

Hello, I have the same confusion as earlier in this post on how to show the password protected pages in the menu (only if logged in).

I can understand the instructions by Calguy to some extent:
Well, if you want the private pages to only show up in a menu when the users are logged in I suggest you organize your pages in such a way that you can use two menus:

The first for the public information

The second for the private information.

Then, using custom content in your template and/or in your page like this

{cms_module module=CustomContent}



Welcome, you are entitled to see private information

You are not entitled to see the private information


You'll have to put all of your private pages under a section header, and mark that section header as "not shown in menu"
and fool with the private menu manager tags till you get the effect you need.
The bit I don't understand is how to "fool with the private menu manager tags" - is this possible for a non-techie person to do or does it involve some insider knowlege in coding etc.  If Calguy - or anyone could explain further, I'd me very grateful, thanks.  Otherwise if this is not possible for the inexperienced, I'm open to other suggestions.

Thanks  ???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontenduser and customcontent confusion

Post by calguy1000 »

The bit I don't understand is how to "fool with the private menu manager tags" - is this possible for a non-techie person to do or does it involve some insider knowlege in coding etc.  If Calguy - or anyone could explain further, I'd me very grateful, thanks.  Otherwise if this is not possible for the inexperienced, I'm open to other suggestions.

Thanks  ???
What I meant is that with the {cms_module module=menumanager template="something"} tag for the private pages you'll pribably have to specify the start_element parameter, and possibly the show_root_siblings parameter.  As well, you'll need to style it.

The reason that there's no way to do this in a more seamless manner is that feusers is an addon, and there's no way of marking pages with a special attribute (atm, maybe for 1.1) that makes it private.

As well, customcontent allows you to display different content to different userrs, or have private content in the middle of a page if you wanted to.
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.
Locked

Return to “CMSMS Core”