text welcome visitor left above in the template

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 Apr 18, 2014 8:01 am
Reply with quote
Report this post
Left above the menu,

"Welcome visitor you can log in or create an account"

how can I depublish that?

regards
User avatar
Expert Boarder

GK User
Fri Apr 18, 2014 6:26 pm
Reply with quote
Report this post
Hello,

You can set the login and register urls int he template settings to the blank strings or just remove the following fragment from the layouts/default.php file:

Code: Select all
<?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; ?>
User avatar
Administrator

GK User
Mon Apr 21, 2014 11:28 pm
Reply with quote
Report this post
Hello,

What do i have to delete to only leave "Welcome visitor you can log in" and delete "or create an account"

Thanks!
User avatar
Expert Boarder

GK User
Tue Apr 22, 2014 7:58 am
Reply with quote
Report this post
@carloscid - then you have to remove only this fragment:

Code: Select all
<?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; ?>
User avatar
Administrator

GK User
Tue Apr 22, 2014 8:13 pm
Reply with quote
Report this post
Thank you!
User avatar
Expert Boarder


cron