Welcome visitor text

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
Sun Jan 05, 2014 10:27 am
Reply with quote
Report this post
How to change text below (left to logo) into my language? I cannot see that anywhere ...
"Welcome visitor you can log in or create an account".

Thank you.
User avatar
Fresh Boarder

GK User
Sun Jan 05, 2014 10:55 am
Reply with quote
Report this post
Hello,

You can change this text in the template language file in this fragment:

Code: Select all
TPL_GK_LANG_USERAREA="Welcome "
TPL_GK_LANG_USERAREA_VISITOR="visitor"
TPL_GK_LANG_LOGIN_PRE=" you can "
TPL_GK_LANG_LOGIN="log in"
TPL_GK_LANG_LOGOUT="check your account"
TPL_GK_LANG_REGISTER_PRE=" or create an "
TPL_GK_LANG_REGISTER="account"
TPL_GK_LANG_EMPTY_CART="Your Shopping Cart is empty!"
User avatar
Administrator

GK User
Mon Feb 03, 2014 3:56 pm
Reply with quote
Report this post
where is this code? in which file?
User avatar
Fresh Boarder

GK User
Mon Feb 03, 2014 4:08 pm
Reply with quote
Report this post
This file should be located in language/en-GB/en-GB.tpl_gk_instyle.ini file
User avatar
Administrator

GK User
Mon Feb 03, 2014 4:15 pm
Reply with quote
Report this post
Thanks a lot!
User avatar
Fresh Boarder

GK User
Tue Apr 15, 2014 12:45 pm
Reply with quote
Report this post
Hello, I would like to know how to remove this: "Welcome visitor you can log in or create an account"
Thank you.
User avatar
Junior Boarder

GK User
Tue Apr 15, 2014 4:26 pm
Reply with quote
Report this post
@dissenybcn - in the layouts/default.php file you have to remove the following fragment:

Code: Select all
 <div id="gkTopNav">
               <?php if(
                  $this->API->get('login_url', '') != '' ||
                  ($this->API->get('reg_url', '') != '' && $userID == 0)
               ) : ?>
               <div id="gkUserArea">
                     <?php echo JText::_('TPL_GK_LANG_USERAREA'); ?>
                     <?php if($userID == 0) : ?>
                        <?php echo JText::_('TPL_GK_LANG_USERAREA_VISITOR'); ?>
                     <?php else : ?>
                        <strong><?php echo $user->get('username'); ?></strong>
                     <?php endif; ?>

                  <?php echo JText::_('TPL_GK_LANG_LOGIN_PRE'); ?>

                   <?php if($this->API->get('login_url', 'index.php?option=com_users&view=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; ?>
                  
                   <?php if($this->API->get('reg_url', 'index.php?option=com_users&view=registration') != '' && $userID == 0) : ?>
                      <?php echo JText::_('TPL_GK_LANG_REGISTER_PRE'); ?>
                      <a href="<?php echo $this->API->get('reg_url', 'index.php?option=com_users&view=registration'); ?>"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
                   <?php endif; ?>
                </div>
                <?php endif; ?>
               
                <?php if($this->API->modules('topnav')) : ?>
                <div id="gkTopMenu">
                   <jdoc:include type="modules" name="topnav" style="<?php echo $this->module_styles['topnav']; ?>"  modnum="<?php echo $this->API->modules('topnav'); ?>" modcol="3" />
                </div>
                <?php endif; ?>
                 </div>
User avatar
Administrator

GK User
Sat Jul 04, 2015 10:56 pm
Reply with quote
Report this post
Hi

I dont see such a file in the directory - has this changed?
layouts/default.php
User avatar
Fresh Boarder

GK User
Sun Jul 05, 2015 8:47 am
Reply with quote
Report this post
@zee09 - did you searched inside the template directory? I mean templates/gk_instyle/layouts/default.php ?
User avatar
Administrator


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