Page 1 of 1

Newbie needs help with setting up a members area using custom content

Posted: Mon Mar 26, 2007 7:28 pm
by nozza
Hi, I am new to CMSMS, so far I have found it really easy to work with and I am really happy with it until that is I needed to try and setup a page on my site for members only to get access to files. Thats where the difficulties began!

I soon realised from browsing through the modules and stuff that I needed Frontend Users and Custom Content so i can choose what content can be shown to what groups but I cant get it to work! I have installed both of the modules and I have setup my form with name, email, adddress and phone number.
I have added a couple of users so I can test it out and I have created a new page and tried adding this code to the page:
{cms_module module=FrontEndUsers} {cms_module module=CustomContent} {if $customcontent_loggedin} You are authorized to see this text {else} You are not authorized yet, you need to log in {/if}

but what happens is it displays the login box and you can login but it still says You are not authorized yet, you need to log in whether I login or not, it wont give me the message: You are authorized to see this text. I hve looked around for tutorials and found one or two bits but I have been unable to get those to work correctly either.

I only have one user group as thats all I need, I just basically need a page with content on that only members are allowed to see on not the guests

Can anyone help me please?
Thanks,
Ryan

Re: Newbie needs help with setting up a members area using custom content

Posted: Tue Mar 27, 2007 1:46 pm
by calguy1000
Make sure your page is marked as 'not cachable',and that you're running the latest version of CustomContent and CMS Made Simple.

Re: Newbie needs help with setting up a members area using custom content

Posted: Thu Mar 29, 2007 12:25 pm
by b0n3m4n
nozza wrote: I have added a couple of users so I can test it out and I have created a new page and tried adding this code to the page:
{cms_module module=FrontEndUsers} {cms_module module=CustomContent} {if $customcontent_loggedin} You are authorized to see this text {else}  You are not authorized yet, you need to log in  {/if}
If I'm not mistaken, the code works like this:

{cms_module module=CustomContent}                         

  You are authorized to see this text 
 
  You are not authorized yet, you need to log in 


Good luck!