Newbie needs help with setting up a members area using custom content
Posted: Mon Mar 26, 2007 7:28 pm
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
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