there is no username near logout button

Moderator: crythias

Locked
sallami
Znuny newbie
Posts: 12
Joined: 17 Feb 2015, 14:31
Znuny Version: 4.0.0

there is no username near logout button

Post by sallami »

Hi,

I setup a new OTRS4, I am not able to see "You are logged in as <<user_name>>" as the pic shows.
In OTRS3 it works fine. I checked the header.tt and I can see there is a script. So I think it should be something wrong in the SysConfig.
any help please ?

Image
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: there is no username near logout button

Post by jojo »

this text is only available as mouse over on the Logout Button but will not displayed any more in the screen directly
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sallami
Znuny newbie
Posts: 12
Joined: 17 Feb 2015, 14:31
Znuny Version: 4.0.0

Re: there is no username near logout button

Post by sallami »

reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: there is no username near logout button

Post by reneeb »

I assume this screenshot shows OTRS4 beta ...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: there is no username near logout button

Post by jojo »

this is a 3.x screenshot
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sallami
Znuny newbie
Posts: 12
Joined: 17 Feb 2015, 14:31
Znuny Version: 4.0.0

Re: there is no username near logout button

Post by sallami »

But in the header.tt I can see :

Code: Select all

 <a class="LogoutButton" id="LogoutButton" href="[% Env("Baselink") %]Action=Logout;[% Env("ChallengeTokenParam") | html %]" title="[% Translate("Logout") | html %] ([% Translate("You are logged in as") | html %] [% Env("UserFullname") | html %])">
                    [% Translate("Logout") | html %] ([% Translate("You are logged in as") | html %] [% Env("UserFullname") | html %])
                    <i class="fa fa-power-off"></i>
                </a>
So it should be there.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: there is no username near logout button

Post by reneeb »

No, the CSS says

Code: Select all

#ToolBar a {
    height: 20px;
    width: 24px;
    text-indent: -9999px;
    position: relative;
    display: block;
}
so the text is shifted out of the visible area. If you want to see it, you could change this setting (<OTRS_HOME>/var/httpd/htdocs/skins/Agent/default/css/Core.Header.css)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
cryptoroot
Znuny newbie
Posts: 26
Joined: 10 Jul 2014, 19:58
Znuny Version: 4.0.3
Real Name: Jorge Rojas
Company: Instituto Costarricense de Electricidad
Location: Costa Rica

Re: there is no username near logout button

Post by cryptoroot »

Anyone did the change?. I tried to modified some files (Core.Header.css and Header.tt). I see the css in OTRS 3.x contains a subsection "UserInfo", do I need to add this section in the new css of OTRS 4?. I see the section "ToolBar a" is the same in both versions.

Also looking at Header.dtl and Header.tt the new one contains Login and Logout inside Toolbar section <ul id="ToolBar">, and not contains the block LoginWithoutLink which were in Header.dtl.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: there is no username near logout button

Post by reneeb »

Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
cryptoroot
Znuny newbie
Posts: 26
Joined: 10 Jul 2014, 19:58
Znuny Version: 4.0.3
Real Name: Jorge Rojas
Company: Instituto Costarricense de Electricidad
Location: Costa Rica

Re: there is no username near logout button

Post by cryptoroot »

Thanks for the information reneed. I downloaded and tested the module, works perfect, move the 2 buttons outside the toolbar. But the other thing I need is to show the name of the agent logged. Do you know how to do that, doing the changes in the files I described in my last post?.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: there is no username near logout button

Post by reneeb »

Goto sysconfig group MoveLogoutButton, subgroup core and activate MoveLogoutButton::ShowUsername
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
cryptoroot
Znuny newbie
Posts: 26
Joined: 10 Jul 2014, 19:58
Znuny Version: 4.0.3
Real Name: Jorge Rojas
Company: Instituto Costarricense de Electricidad
Location: Costa Rica

Re: there is no username near logout button

Post by cryptoroot »

Thank you very much!, That works :-)
Locked