FEUSER and CUSTOM CONTENT: PLEASE HELP!

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
thall

FEUSER and CUSTOM CONTENT: PLEASE HELP!

Post 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

calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Post 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}
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.
thall

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Post by thall »

Thanks for the quick reply. I'll try it.
thall

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Post 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
Sport
New Member
New Member
Posts: 8
Joined: Thu Feb 25, 2010 6:13 pm

Re: FEUSER and CUSTOM CONTENT: PLEASE HELP!

Post 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.
Locked

Return to “CMSMS Core”