login module position in Creativity

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Jul 02, 2013 11:52 pm
Please help me with this issue:
I want to plase costom html (just a bit of plain text) on login position (at front page Creativity template) instead of LogIn module which i don't need.

Can it be done?
How shold I do it?
Thanks.
User avatar
Fresh Boarder

teitbite
Wed Jul 03, 2013 3:18 am
Hi

In this template login position is displayed inside popup, so Login text is a simple button triggering the popup. So to make it work as You want, You need to first replace button with a module position. To do this edit file /layout/default.php and in lines 78 - 84 where You have code like:

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 above or below this line:

Code: Select all
        <jdoc:include type="modules" name="custom_position" style="raw" />


than unpublish login module and use new position called "custom_position" for Your new module.
User avatar
Moderator

GK User
Wed Jul 03, 2013 12:07 pm
Thanks a lot it worked great!
But one more guestion had apeared: where I should isert code to make padding: 25px 5px 5px 0; (it's padding rigtht?) like in #gkLogo.text because now Logo text and my custom text are not in one horizontal line?
User avatar
Fresh Boarder

teitbite
Thu Jul 04, 2013 12:38 pm
Hi

Can I please see Your site now to check what code needs to be changed.
User avatar
Moderator

GK User
Thu Jul 04, 2013 11:06 pm
User avatar
Fresh Boarder

teitbite
Sat Jul 06, 2013 12:12 am
Hi

Please try add this to css:

Code: Select all
#gkTop .custom {
float: right;
}


than You can use margin-top: 5px; and play with the value to make it show in right place.
User avatar
Moderator

GK User
Sat Jul 06, 2013 8:08 pm
Worked just fine. Thank you wery much!
User avatar
Fresh Boarder

teitbite
Sat Jul 06, 2013 11:20 pm
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron