Changing text after login

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Jan 04, 2013 11:29 am
Reply with quote
Report this post
Hi,
I wish on top right corner invitation message after login, not text 'MY ACCOUNT'.
Situation is sowed on picture. Meaning is:
a) before login
b) after login
c) my wish user name or name. Functionality can be same as now (show message for lotout).

Thank you in advance.
Regards.

login01.png
User avatar
Junior Boarder

Konrad M
Fri Jan 04, 2013 12:22 pm
Reply with quote
Report this post
Hi,
please try go to layouts/default.php and find:
Code: Select all
<div id="gkUserArea">                
                <?php if($this->API->modules('login')) : ?>
                <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
                <?php endif; ?>

and change it to:
Code: Select all
<div id="gkUserArea">                
                <?php if($this->API->modules('login')) : ?>
                <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::sprintf('MOD_LOGIN_HINAME', $user->get('username'));  ?></a>
                <?php endif; ?>
User avatar

GK User
Fri Jan 04, 2013 1:27 pm
Reply with quote
Report this post
After changing source, and loging I get next text:

MOD_LOGIN_HINAME

Regards.
User avatar
Junior Boarder

Konrad M
Fri Jan 04, 2013 1:33 pm
Reply with quote
Report this post
Ok, in my code please change
Code: Select all
MOD_LOGIN_HINAME

to
Code: Select all
GK_LOGIN_HINAME

then please go to language/en-GB/en-GB.tpl_gk_publisher.ini and add at the bottom:
Code: Select all
GK_LOGIN_HINAME = 'Hi, "
User avatar

GK User
Fri Jan 04, 2013 1:55 pm
Reply with quote
Report this post
Something is wrong. After changing default.php and add new line in language file I get on screen before loging next message:

TPL_GK_LANG_LOGIN TPL_GK_LANG_REGISTER

and after login:

GK_LOGIN_HINAME

In default.php now is code:

Code: Select all
<div id="gkUserArea">               
                    <?php if($this->API->modules('login')) : ?>
                    <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::sprintf('GK_LOGIN_HINAME', $user->get('username'));  ?></a>
<?php endif; ?>
User avatar
Junior Boarder

Konrad M
Fri Jan 04, 2013 1:57 pm
Reply with quote
Report this post
Please send me Private Message with access to your joomla backend and ftp.
User avatar

GK User
Fri Jan 04, 2013 4:18 pm
Reply with quote
Report this post
I think, add to laguage file GK_LOGIN_HINAME = 'Hi, " make next message:
TPL_GK_LANG_LOGIN TPL_GK_LANG_REGISTER

P.S.
I sent access data to PM.
Regards.
User avatar
Junior Boarder