Page 1 of 1

{SOLVED} FEU/Costum Content login issue

Posted: Thu Oct 22, 2009 11:08 am
by ptvprod
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:

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}
After that I confirmed the login with that code on the login-site:

Code: Select all

Angemeldet als: {$customcontent_loginname} / {$customcontent_loggedin}
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:

Code: Select all

Angemeldet als: {$customcontent_loginname} / {$customcontent_loggedin}
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...

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

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?

Re: FEU/Costum Content login issue - doesn't transfer the logindata to other sides

Posted: Fri Oct 23, 2009 12:54 pm
by jmcgin51
{$customcontent_loginname} / {$customcontent_loggedin}
This syntax is deprecated and should not be used.  Use $ccuser->username, $ccuser->loggedin(), etc.

Re: FEU/Costum Content login issue - doesn't transfer the logindata to other sides

Posted: Fri Oct 23, 2009 2:48 pm
by ptvprod
Oh - how easy - thank you very much!

Re: {SOLVED} FEU/Costum Content login issue

Posted: Tue Dec 08, 2009 10:39 pm
by woodruff
Wow ! hours of searching for this !

They seem not only deprecated but completly out ! I just installed last version (FEU 1.6.11 & CustomContent 1.5.3) and variables like $customcontent_loginname don't work at all, altouth they appear in the help of the module.

Please note that this is $ccuser->username()