"Currently logged in as: USERNAME" in breadcrumbs

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
sweaverit
Forum Members
Forum Members
Posts: 36
Joined: Sun Nov 25, 2007 4:03 am

"Currently logged in as: USERNAME" in breadcrumbs

Post 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.
Last edited by sweaverit on Sat Feb 09, 2008 4:14 am, edited 1 time in total.
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post 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
Pierre M.

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post 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.
sweaverit
Forum Members
Forum Members
Posts: 36
Joined: Sun Nov 25, 2007 4:03 am

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post 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.
sweaverit
Forum Members
Forum Members
Posts: 36
Joined: Sun Nov 25, 2007 4:03 am

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post 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?
nivekiam

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post by nivekiam »

You need to install the custom content module as well.  You don't state that it's installed or not.
sweaverit
Forum Members
Forum Members
Posts: 36
Joined: Sun Nov 25, 2007 4:03 am

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post by sweaverit »

My apologies.  Yes, Custom Content is installed along with Front End User.
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post 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
Last edited by GraemeS on Tue Feb 19, 2008 10:57 am, edited 1 time in total.
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post by GraemeS »

{$customcontent_loginname} can also be replaced with {$username} and seems to sometimes work too
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: "Currently logged in as: USERNAME" in breadcrumbs

Post 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,
Locked

Return to “[locked] Installation, Setup and Upgrade”