{SOLVED} FEU/Costum Content login issue

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ptvprod
Forum Members
Forum Members
Posts: 16
Joined: Tue Jan 20, 2009 5:32 am
Location: cologne, germany

{SOLVED} FEU/Costum Content login issue

Post 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?
Last edited by ptvprod on Fri Oct 23, 2009 3:13 pm, edited 1 time in total.
Ich bin kein Profi und auch nur ein Hobbyphpler aber lerne gerne dazu...:-)
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

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

Post by jmcgin51 »

{$customcontent_loginname} / {$customcontent_loggedin}
This syntax is deprecated and should not be used.  Use $ccuser->username, $ccuser->loggedin(), etc.
ptvprod
Forum Members
Forum Members
Posts: 16
Joined: Tue Jan 20, 2009 5:32 am
Location: cologne, germany

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

Post by ptvprod »

Oh - how easy - thank you very much!
Ich bin kein Profi und auch nur ein Hobbyphpler aber lerne gerne dazu...:-)
woodruff
New Member
New Member
Posts: 3
Joined: Tue Dec 08, 2009 10:27 pm

Re: {SOLVED} FEU/Costum Content login issue

Post 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()
Post Reply

Return to “Modules/Add-Ons”