[solved] FrontEndUsers and CustomContent question
[solved] FrontEndUsers and CustomContent question
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
Michael
Last edited by cnymike on Fri Nov 09, 2007 10:29 pm, edited 1 time in total.
-
alby
Re: FrontEndUsers and CustomContent question
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}
Re: FrontEndUsers and CustomContent question
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...
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.
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}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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: FrontEndUsers and CustomContent question
{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}
{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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: FrontEndUsers and CustomContent question
Calguy,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}
The first example you gave gives me this error...
The second example you gave gives me this result...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
I don't want the Welcome Parent stuff on the private page, all I want is a Sign Out link.Welcome Parent John Smith - 555-1212 Jane Jones - 555-1213 Jack Johnson - 555-1214
Welcome Parent
Sign out
So I'm still baffled.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: FrontEndUsers and CustomContent question
oops, sorry: form=silent, not mode=silent
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: FrontEndUsers and CustomContent question
The other choice would be to simply remove the 'Welcome ....' stuff from the FrontEndUsers logout template.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: FrontEndUsers and CustomContent question
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
OK, I changed it , now i get...calguy1000 wrote: The other choice would be to simply remove the 'Welcome ....' stuff from the FrontEndUsers logout template.
Why is everything duplicated?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
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.
Last edited by cnymike on Fri Nov 09, 2007 9:55 pm, edited 1 time in total.
Re: FrontEndUsers and CustomContent question
Calguy, I think I've mostly got things sorted out now so I'll mark this as solved. Thanks.

