[solved] FrontEndUsers and CustomContent question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

[solved] FrontEndUsers and CustomContent question

Post 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
Last edited by cnymike on Fri Nov 09, 2007 10:29 pm, edited 1 time in total.
alby

Re: FrontEndUsers and CustomContent question

Post 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
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: FrontEndUsers and CustomContent question

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FrontEndUsers and CustomContent question

Post 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}
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.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: FrontEndUsers and CustomContent question

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FrontEndUsers and CustomContent question

Post by calguy1000 »

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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FrontEndUsers and CustomContent question

Post by calguy1000 »

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.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: FrontEndUsers and CustomContent question

Post 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?
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: FrontEndUsers and CustomContent question

Post 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.
Last edited by cnymike on Fri Nov 09, 2007 9:55 pm, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: FrontEndUsers and CustomContent question

Post by cnymike »

Calguy, I think I've mostly got things sorted out now so I'll mark this as solved. Thanks.
Post Reply

Return to “CMSMS Core”