Login wellcom message

Joomla template especially designed for news or magazine website with amazing content display flexibility.
GK User
Thu Sep 27, 2012 10:53 pm
Hi, after login on login button I get message: YOUR ACCOUNT.
How is possible to get on that buttom aftel login wellcom message with name/user name instead 'your account' ?

Thanks.
User avatar
Junior Boarder

teitbite
Fri Sep 28, 2012 11:03 am
Hi

Please show me Your site.
User avatar
Moderator

GK User
Fri Sep 28, 2012 6:31 pm
On picture is illustration. Now, after login on button is text: YOUR ACCOUNT.

I wish after login on button wellcom text with name.

account.jpg
User avatar
Junior Boarder

teitbite
Sun Sep 30, 2012 12:51 pm
Hi

I've meant to see Your site because I need to check what template version are You using. Also I'm not sure if You are using The News template at all. This buttons looks more like The World News II template. Am I right ?
User avatar
Moderator

GK User
Mon Oct 01, 2012 7:05 pm
You can check link http://www.kvalis.com
User avatar
Junior Boarder

teitbite
Tue Oct 02, 2012 11:34 am
Hi

Ok. Just as expected You have asked this question in wrong template forum. The News is completly different than The World News II.

Please do as follow:

1. Edit file /layout/blocks/logo.php

2. Find line:

Code: Select all
$btn_login_text = ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT');


3. Replace it with:

Code: Select all
$btn_login_text = ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : 'Hi ' . $user->get('name');
User avatar
Moderator

GK User
Wed Oct 03, 2012 6:12 am
OK, my mistake. Next time I'll be on right forum.
Now, thanks a lot for your suggestion. All works fine.

Two questions more:
1. Why all text (welcome and name) is converted to upper case? I think is bettor to put original case.
2. How is possible to put welcome message from language file (like in standard login module), not as fix text?

Regards

P.S.
can you move this post to right forum?
User avatar
Junior Boarder

teitbite
Wed Oct 03, 2012 6:26 pm
Hi

1. Add this code to remove uppercase style:

Code: Select all
#gkButtons a {
    text-transform: none;
}


2. The line I've asked You to make should be replaced to:

Code: Select all
$btn_login_text = ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_WELCOME') . $user->get('name');


than sentence TPL_GK_WELCOME should be added to all language version files with proper translations.
User avatar
Moderator

GK User
Wed Oct 03, 2012 9:27 pm
Hi,

All works fine.

Thanks.
User avatar
Junior Boarder

teitbite
Thu Oct 04, 2012 4:13 pm
Hi

NIce to hear it :) Let me know if You will have more questions.
User avatar
Moderator

GK User
Fri Oct 05, 2012 12:27 am
Now I haven't any question about template. All excellent.

Regards.
User avatar
Junior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.