Page 1 of 1

Frontenduser: What has changed in 1.6.10? [SOLVED]

Posted: Fri Oct 30, 2009 6:16 pm
by thomahawk
There was a code I used for an earlier website project, which has installed CMS Made Simple 1.5.4 "Carolina" with Frontend User 1.6.4.

Now I put the same code in a new installed CMS Made Simple 1.6.6 "Bonde" with Frontend User 1.6.10 and it does not work! The server only gives out half of the page code, resulting in a half loaded page without CSS. The code stops precisely before the first code tag.

Filebrowser plugin is also involved but works well. I have checked using only this code, rendered all fine:
{filebrowser mainname='QM' folder='uploads/QM' showtitle="false" }

Basically Frontend User works too, I have checked this code and it worked out:
{cms_module module=FrontEndUsers returnto="$qm"}

But using the whole code results in half html output. This is the code I used:

{if $ccuser->loggedin() && $ccuser->memberof('QM-Nutzer')}

QM-HANDBUCH


{filebrowser mainname='QM' folder='uploads/QM' showtitle="false" }


{cms_module module="frontendusers" form="logout"}


{elseif $ccuser->loggedin() && $ccuser->memberof('QM-Admin')}

QM-HANDBUCH ADMINISTRATOR


{filebrowser mainname='QM' folder='uploads/QM' showtitle="false" }


{cms_module module="frontendusers" form="logout"}

{else}

QM-LOGIN

{cms_module module=FrontEndUsers returnto="$qm"}

{/if}

Re: Frontenduser: What has changed in 1.6.10?

Posted: Fri Oct 30, 2009 7:03 pm
by jmcgin51
thomahawk wrote: The code stops precisely before the first code tag.
be more specific?  Where exactly does the page stop loading?

Any error messages?
thomahawk wrote: {if $ccuser->loggedin() && $ccuser->memberof('QM-Nutzer')}
...
{elseif $ccuser->loggedin() && $ccuser->memberof('QM-Admin')}
Perhaps rename your FEU groups with underscores instead of dashes??  IIRC, PHP does not like dashes in variable names.  Not sure if Smarty cares.

Have you turned debug on?

Re: Frontenduser: What has changed in 1.6.10?

Posted: Fri Oct 30, 2009 7:11 pm
by thomahawk
Thanks for stopping by ;-)
I actually already use usernames without dashes in the new setting (='QMuser') and it makes no difference.

The page stops loading exactly before the first tag
{if $ccuser->loggedin() && $ccuser->memberof('QM-Nutzer')}

Thats where in the template is {content}
The code is in a page that begins loading at this point.

Thomas

Re: Frontenduser: What has changed in 1.6.10?

Posted: Fri Oct 30, 2009 7:34 pm
by thomahawk
I have narrowed it down to this:

{if $ccuser->loggedin}
This does work, so the page loads, but the filebrowser tag is not working, means: there is nothing shown, just empty.

{if $ccuser->loggedin()}
this does not work, the page does load only the part before this tag.

{cms_module module=FrontEndUsers returnto="$qm"}
this does show the login template


Any suggestion?
I suppose something has changed in the new version of Frontend User!!! But I dont see any note about this.

Thomas

Re: Frontenduser: What has changed in 1.6.10?

Posted: Fri Oct 30, 2009 7:51 pm
by calguy1000
I suppose something has changed in the new version of Frontend User!!! But I dont see any note about this.
Nope... nothing has changed syntax wise in FEU for a long time.

Re: Frontenduser: What has changed in 1.6.10?

Posted: Fri Oct 30, 2009 8:19 pm
by thomahawk
It seems its not the FEU templates, as the login and logout templates come when I am only using
{cms_module module=FrontEndUsers returnto="$qm"}

But something has to be changed. I use the same settings, the same templates...!

Thomas

Re: Frontenduser: What has changed in 1.6.10?

Posted: Fri Oct 30, 2009 9:46 pm
by thomahawk
I have reduced it to the essentials. But still the same Problem.

{if $ccuser->loggedin() && $ccuser->memberof('QMnutzer')}

{filebrowser mainname='QM' folder='uploads/QM' showtitle="false" }


{cms_module module="frontendusers" form="logout"}



{else}

Sie sind nicht angemeldet

{cms_module module=FrontEndUsers returnto="$qm"}

{/if}

Re: Frontenduser: What has changed in 1.6.10?

Posted: Mon Nov 30, 2009 10:41 pm
by Trawis
I have the same problam... and I can't find out solution there in the forum. When I use $ccuser->loggedin()  in a template, the site doesn't load correctly. So what about others, when you use $ccuser->loggedin() in your website with cmsms 1.6.6, is everything ok?

Re: Frontenduser: What has changed in 1.6.10?

Posted: Tue Dec 01, 2009 7:38 am
by thomahawk
Hi Trawis

In the end I had help with this. He soon found out that I simply forgot to install the custom content module. After that it worked as expected.

Thomas