Language switcher and Login

Professional Joomla social template with metro design and JomSocial extension support.
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
Mon Feb 16, 2015 7:39 pm
Reply with quote
Report this post
Hello,

I've already read this: https://www.gavick.com/forums/m-social/ ... cial-35636

And this is what I did:

1) created a multilanguage site with all language/plugin/module stuff

2) created a language switcher module assigned to all pages; its position is "LOGIN"

3) put in override.css (override enabled) this:

#gkLogin div.custom {float: left;}
div.mod-languages {float: left; }

But I cant' see any language switcher (I can see it if I put in i.e. on sidebar)

What did I do wrong?

I would like to have my language switcher flags near the login button

Thanks in advance for your help
User avatar
Expert Boarder

teitbite
Thu Feb 19, 2015 4:48 pm
Reply with quote
Report this post
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

teitbite
Sat Feb 21, 2015 10:21 am
Reply with quote
Report this post
hi

Please edit file /layout/default.php and find a line which looks like:

Code: Select all
                    <?php $this->layout->loadBlock('logo'); ?>


right after this line add this code:

Code: Select all
                       <div class="gkLangTop"><jdoc:include type="modules" name="lang_top" /></div>


move language sweacher to "lang_top" module position and add this code to override.css:

Code: Select all
.gkLangTop {
float: right;
}
User avatar
Moderator

GK User
Mon Feb 23, 2015 10:03 am
Reply with quote
Report this post
Hello,

thank you so much!!!

I also added some padding-top/left to align better the switcher near the login button.

Thank you for your great support! The best over the entire Internet! :-)

PS What would happen when (and if) I will update the template? Will the "<div class="gkLangTop"><jdoc:include type="modules" name="lang_top" /></div>" be lost?
User avatar
Expert Boarder

teitbite
Tue Feb 24, 2015 11:24 am
Reply with quote
Report this post
Hi

I'm afraid it will be overwritten, so please from now on make updates manually by checking the list of changed files in update section of our website and replacing Your files with mentioned. But You still need to remember to compare the code if update page will ask You to overwrite /layout/default.php , but this file is not changed often.
User avatar
Moderator


cron