{SOLVED} FEU/Costum Content login issue
Posted: Thu Oct 22, 2009 11:08 am
After I have gone through all possible threats for 1 week, now I do not know any more further.
Source situation:
Custom Content, FrontEndUsers installed:
- Home-Site:
Here I place 10 news-teasers of All categories indicated from the news module..
- Login-Site
Here users can login from a definied username which I created on the FEU-Module.
I placed following code in the extra-template of the login-site:
After that I confirmed the login with that code on the login-site:
When I go to that Login - CMSMS identifies me on the Login page - everything is okay
Problem:
If I go back on the HOME SIDE I paste this code to see if I'm logged in:
That fails. The System says I'm not logged in. Possible cause: Front End User doesn't hand over the Login to the other sides.
Yes, the cachable flag is deactivated on both sites.
My plan is to show all categories as teasers on the homesite with the {news} tag - but if you go to the restricted sites which I coded on the news-detail-template only members (who indicated themselves on the login-site) can open it. Otherwise a error message will called.
Code for the news-detail-template will be like this...
Of course it says, I'm not logged in if I do that now - So we are again with the problem: FEU does not transfer the Login. Where is my mistake of thought?
Source situation:
Custom Content, FrontEndUsers installed:
- Home-Site:
Here I place 10 news-teasers of All categories indicated from the news module..
- Login-Site
Here users can login from a definied username which I created on the FEU-Module.
I placed following code in the extra-template of the login-site:
Code: Select all
{cms_module module='CustomContent'}
{* User eingeloggt? *}
{if $customcontent_loggedin > 0}
{content} <br />
<hr class="accessibility" />
{else}
<h2>Anmeldung zum Mitgliederbereich</h2>
{cms_module module=FrontEndUsers form='login'}
{/if}
Code: Select all
Angemeldet als: {$customcontent_loginname} / {$customcontent_loggedin}
Problem:
If I go back on the HOME SIDE I paste this code to see if I'm logged in:
Code: Select all
Angemeldet als: {$customcontent_loginname} / {$customcontent_loggedin}
Yes, the cachable flag is deactivated on both sites.
My plan is to show all categories as teasers on the homesite with the {news} tag - but if you go to the restricted sites which I coded on the news-detail-template only members (who indicated themselves on the login-site) can open it. Otherwise a error message will called.
Code for the news-detail-template will be like this...
Code: Select all
{cms_module module="FrontendUsers" form="silent"}
{cms_module module="CustomContent"}
{$customcontent_loginname} / {$customcontent_loggedin}<br>
{if $entry->category==Private Kategorie"}
{if $customcontent_loggedin}
<h2>You're logged in! </h2>
{else}
<h2>please log in!</h2>
{/if}
{else}
{if $entry->postdate}
<div id="NewsPostDetailDate">
{$entry->postdate|cms_date_format:"%A, %d. %m. %Y um %H:%M"}
</div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title}</h3>
... etc ...