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
FEUSER and CUSTOM CONTENT: PLEASE HELP!
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!
1) Look at the preferences in the FrontendUsers module
2) try this content, the comment tag syntax is deprecated:
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}
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: FEUSER and CUSTOM CONTENT: PLEASE HELP!
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
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!
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.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
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.