Page 1 of 1

FEUSER and CUSTOM CONTENT: PLEASE HELP!

Posted: Fri Sep 21, 2007 2:40 pm
by thall
I am trying to create a page on our website that is only visible to out distributors. I installed the FEUSER and CUSTOM CONTENT modules. I created a group called Distrubitor and added one user to test. When a user click on the link to access the Distributor page I want them to be prompted to enter their username and password. I entered the following code and when I enter the username and password it take me to the home page. I want it to go the page I created. What am I doing wrong?


{cms_module module=CustomContent}



{content}



Sorry, you need to be logged in to see this page


Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Posted: Fri Sep 21, 2007 2:59 pm
by calguy1000
1) Look at the preferences in the FrontendUsers module

2) try this content, the comment tag syntax is deprecated:

Code: Select all

{if $ccuser->memberof('Distributor')}
 this is text that will be displayed to logged in members of this group
{else}
 You must login to view this data
{/if}

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Posted: Fri Sep 21, 2007 4:21 pm
by thall
Thanks for the quick reply. I'll try it.

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Posted: Fri Sep 21, 2007 4:25 pm
by thall
I deleted the code I had orginally and added what you suggested and got the following error message:

string(151) "Smarty error: [in preview:cmspreview0MPBVp line 90]: syntax error: unidentified token ';memberof('Distributor')' (Smarty_Compiler.class.php, line 1396)"
Parse error: syntax error, unexpected '&' in /home/water/public_html/tmp/templates_c/%%E8^E8E^E8E92DF9%%preview%3Acmspreview0MPBVp.php on line 104

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Posted: Sun Sep 26, 2010 11:56 pm
by Sport
thall wrote: I deleted the code I had orginally and added what you suggested and got the following error message:

string(151) "Smarty error: [in preview:cmspreview0MPBVp line 90]: syntax error: unidentified token ';memberof('Distributor')' (Smarty_Compiler.class.php, line 1396)"
Parse error: syntax error, unexpected '&' in /home/water/public_html/tmp/templates_c/%%E8^E8E^E8E92DF9%%preview%3Acmspreview0MPBVp.php on line 104
It looks like you are using the WYSIWIG for modifying your content.  If you look at the code you posted, there is a ';' before memberof('Distributor').  Remove that and also verify that after $ccuser is '->' not the HTML code that creates the symbols.

I realize this is an old thread, but I had trouble with the same thing when I went back the next time to modify this, so it is valuable information for FEU beginners.