broken layout with { if $ccuser->loggedin() }
Posted: Fri Feb 18, 2011 6:09 pm
Hi
I am running CMSMS 1.9.3 on PHP Version 5.3.5. I have everything set up and working but am running into problems using the frontenduser() module. I have it all set up so that the user logs in and is redirected to a content page, but I want to make the content page invisible to the none logged in users. Currently on the page I have
{ if $ccuser->loggedin() }
show content or do a redirect
{else}
<p>This is a private area.</p>
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$current-volunteer-login"}
{/if}
placed in the content area (I also have WYSIWYG disabled). Trouble is it seems that the { if $ccuser->loggedin() } command is breaking the layout. The page is loading, but not displaying the login box or the appropriate content and it looks like the style sheet is not working, so only a partial page. If I take out all the smarty commands, but leave the {cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$current-volunteer-login"} it works. Any ideas? Am I making sense? I have tried to look everywhere for the answer, so please forgive me if I have made a simple error.
I am running CMSMS 1.9.3 on PHP Version 5.3.5. I have everything set up and working but am running into problems using the frontenduser() module. I have it all set up so that the user logs in and is redirected to a content page, but I want to make the content page invisible to the none logged in users. Currently on the page I have
{ if $ccuser->loggedin() }
show content or do a redirect
{else}
<p>This is a private area.</p>
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$current-volunteer-login"}
{/if}
placed in the content area (I also have WYSIWYG disabled). Trouble is it seems that the { if $ccuser->loggedin() } command is breaking the layout. The page is loading, but not displaying the login box or the appropriate content and it looks like the style sheet is not working, so only a partial page. If I take out all the smarty commands, but leave the {cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$current-volunteer-login"} it works. Any ideas? Am I making sense? I have tried to look everywhere for the answer, so please forgive me if I have made a simple error.