Display another Button next to Login Button

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
Wed Sep 04, 2013 6:46 pm
Reply with quote
Report this post
Hello,
I am trying to display another button, next to the Login-Button, but I am unable to find out how.
I used the same module position login, as the Login-Button does, but it doesn't show up.

Please advise.
My site url: http://www.fairfood.tv

Thanks!
Michael
User avatar
Fresh Boarder

GK User
Thu Sep 05, 2013 1:27 am
Reply with quote
Report this post
That is not a module position for other modules.

Template checks if there is anything published in module position "login", if there is then it shows the login button.

See file : templates/gk_creativity/layouts/default.php
Line: 84 to 90 which is below
Code: Select all
                <?php if($this->API->modules('login')) : ?>
                <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" class="button border"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
                        <?php endif; ?>
                </div>
                <?php endif; ?>

Add your button code after or before current button.
Code: Select all
                        <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin" class="button border"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>


See you around...
User avatar
Platinum Boarder


cron