Page 1 of 1

[solved] FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 6:48 pm
by cnymike
I've just installed FEU and CC and cannot figure out how to insert a "Sign Out" link on a private page. I've tried copying and pasting the Logout Template from FEU onto the private page, but it does not even show up in the website. So I'm kind of lost here. Ideas?

Michael

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 7:56 pm
by alby
cnymike wrote: I've just installed FEU and CC and cannot figure out how to insert a "Sign Out" link on a private page. I've tried copying and pasting the Logout Template from FEU onto the private page, but it does not even show up in the website. So I'm kind of lost here. Ideas?

Code: Select all

{if $ccuser->loggedin()}{$link_logout} : {$link_changesettings}{/if}
Alby

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:30 pm
by cnymike
Doesn't work. that's exactly the code I had in the page before I posted my problem.

The scenario is this... I created a login page with this code...
{cms_module module=FrontEndUsers}

Once a user logs in, a private page suddenly appears in the Vertical Menu with the Login page as the parent. this private page has this code currently...

Code: Select all

{if $customcontent_loggedin} Welcome {$customcontent_loginname}
John Smith - 555-1212
Jane Jones - 555-1213
Jack Johnson - 555-1214
{if $ccuser->loggedin()}{$link_logout} : {$link_changesettings}{/if}
{else}
You are not authorized to view this data
{/if}
All I want to do at this point is have a Sign Out link so that the user doesn't have to go back to the Login page to Sign Out.

the code you provided does not accomplish this. No signout link shows up on the private page when I insert the code. I don't know why.

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:34 pm
by calguy1000
{if $ccuser->LoggedIn()} Welcome {$customcontent_loginname}
{FrontEndUsers mode='silent'}
John Smith - 555-1212
Jane Jones - 555-1213
Jack Johnson - 555-1214
{$link_logout} : {$link_changesettings}
{else}
You are not authorized to view this data
{/if}

or

{if $ccuser->LoggedIn()} Welcome {$customcontent_loginname}
John Smith - 555-1212
Jane Jones - 555-1213
Jack Johnson - 555-1214
{FrontEndUsers}
{else}
You are not authorized to view this data
{/if}

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:44 pm
by cnymike
calguy1000 wrote: {if $ccuser->LoggedIn()} Welcome {$customcontent_loginname}
{FrontEndUsers mode='silent'}
John Smith - 555-1212
Jane Jones - 555-1213
Jack Johnson - 555-1214
{$link_logout} : {$link_changesettings}
{else}
You are not authorized to view this data
{/if}

or

{if $ccuser->LoggedIn()} Welcome {$customcontent_loginname}
John Smith - 555-1212
Jane Jones - 555-1213
Jack Johnson - 555-1214
{FrontEndUsers}
{else}
You are not authorized to view this data
{/if}
Calguy,

The first example you gave gives me this error...
Welcome Parent
Warning: Parameter mode is not known... dropped in /usr/www/users/xxxxxx/xxxxxx/lib/misc.functions.php on line 1281

Welcome Parent

Sign out
John Smith - 555-1212 Jane Jones - 555-1213 Jack Johnson - 555-1214 Sign out : Change My Settings
The second example you gave gives me this result...
Welcome Parent John Smith - 555-1212 Jane Jones - 555-1213 Jack Johnson - 555-1214

Welcome Parent

Sign out
I don't want the Welcome Parent stuff on the private page, all I want is a Sign Out link.

So I'm still baffled.

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:47 pm
by calguy1000
oops, sorry:  form=silent, not  mode=silent

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:48 pm
by calguy1000
The other choice would be to simply remove the 'Welcome ....' stuff from the FrontEndUsers logout template.

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:52 pm
by cnymike
Hmmm, I don't see any "Welcome..." stuff on the Logout Templage in FEU module control panel. Am I just blind or is it in an english file or something?

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 9:54 pm
by cnymike
calguy1000 wrote: The other choice would be to simply remove the 'Welcome ....' stuff from the FrontEndUsers logout template.
OK, I changed it , now i get...
Welcome Parent John Smith - 555-1212 Jane Jones - 555-1213 Jack Johnson - 555-1214 Welcome Parent John Smith - 555-1212 Jane Jones - 555-1213 Jack Johnson - 555-1214 Sign out : Change My Settings 
Why is everything duplicated?

UPDATE: Oh darn, I uploaded that into the template instead of the page. Crap. Now I don't have the correct code for the template anymore.

Re: FrontEndUsers and CustomContent question

Posted: Fri Nov 09, 2007 10:28 pm
by cnymike
Calguy, I think I've mostly got things sorted out now so I'll mark this as solved. Thanks.