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
Newbie needs help with setting up a members area using custom content Topic is solved
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Newbie needs help with setting up a members area using custom content
Make sure your page is marked as 'not cachable',and that you're running the latest version of CustomContent and CMS Made Simple.
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.
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.
Re: Newbie needs help with setting up a members area using custom content
If I'm not mistaken, the code works like this: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}
{cms_module module=CustomContent}
You are authorized to see this text
You are not authorized yet, you need to log in
Good luck!
Last edited by b0n3m4n on Thu Mar 29, 2007 12:32 pm, edited 1 time in total.