Page 1 of 1
"Currently logged in as: USERNAME" in breadcrumbs
Posted: Sat Feb 09, 2008 4:03 am
by sweaverit
I'm using Frontend User, and in the breadcrumbs that show on every page, I would like it to say:
Currently logged in as: USERNAME (logout / change preferences)
I've tried pasting the code in the logout form template to the breadcrumbs section of the main template, and it didn't work. I know I'm missing something.
I have looked everywhere and I have not been able to find this topic. Please forgive me if I have mistakenly overlooked it. -_-
Any help you can provide is greatly appreciated! Also, if my codes are needed just please let me know.
Thanks.
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Wed Feb 13, 2008 5:36 pm
by GraemeS
instead breadcrumbs would be more something with a little custome content part or similar style - think i done something similar on
www.hallowhouse.com in top right once logged in that changes to that
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Thu Feb 14, 2008 7:27 pm
by Pierre M.
Hello, here is a try with FEU+CC :
{if $ccuser->loggedin()}
Currently logged in as: {$customcontent_loginname}
{else}
Not logged in.
{/if}
Pierre M.
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Fri Feb 15, 2008 1:25 am
by sweaverit
Pierre M. wrote:
Hello, here is a try with FEU+CC :
{if $ccuser->loggedin()}
Currently logged in as: {$customcontent_loginname}
{else}
Not logged in.
{/if}
Pierre M.
That worked to display the "Not logged in." when they aren't logged in. But the username isn't showing up.
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Fri Feb 15, 2008 1:26 am
by sweaverit
GraemeS wrote:
instead breadcrumbs would be more something with a little custome content part or similar style - think i done something similar on
www.hallowhouse.com in top right once logged in that changes to that
How did you do this?
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Fri Feb 15, 2008 4:49 pm
by nivekiam
You need to install the custom content module as well. You don't state that it's installed or not.
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Fri Feb 15, 2008 7:41 pm
by sweaverit
My apologies. Yes, Custom Content is installed along with Front End User.
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Tue Feb 19, 2008 10:55 am
by GraemeS
{cms_module module=CustomContent}
{if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
welcome {$customcontent_loginname}
To View your menu system click here
{else}
You are not currently logged in.
Please Log in to access you user area
{/if}
that is mine which isnt the best way i guess but works for me
hope this helps anyone who needs it
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Tue Feb 19, 2008 9:41 pm
by GraemeS
{$customcontent_loginname} can also be replaced with {$username} and seems to sometimes work too
Re: "Currently logged in as: USERNAME" in breadcrumbs
Posted: Fri Feb 22, 2008 9:39 pm
by GraemeS
did forget to mention mine is setup to work along with my own site template so your div styles etc willl need to be different,