how to put the language link in top menu

hello,

i wish to put the link to choose the language of the site on the top menu insteat of the bottom menu, but i can't find how to do this...

does someone have an idea ?

thanks

 

Quote · 16 May 2016

Go to Admin Panel > Builders > Service Menu.

Drag "NEW ITEM" to the desired position.

Enter the following values:

You will need to add translation for _change_lang language key.

Rules → http://www.boonex.com/terms
Quote · 21 May 2016

Thanks it works perfectly...    if i can ask you another question...

I tried to do the same thing on the top menu, but "New Item" has nos script line...

any idea ?

thanks again

Quote · 23 May 2016

You can place "javascript:showPopupLanguage();" in the URL field as well

Rules → http://www.boonex.com/terms
Quote · 29 May 2016

thank you... i tried this before and  again after your reply but it opens a page saying page not found...

it creates this page http://www.kwikan.com/javascript:showPopupLanguage();  

 

Quote · 29 May 2016

Try the following:

javascript:showPopupLanguage(); void(0);
Rules → http://www.boonex.com/terms
Quote · 30 May 2016

thank you...  it's better but  not simple to use... because it still opens a new page "page not found" with the icone to change language on submenu... like i show on the file...

the idea as to open the window with all language from the top menu  "change language"  

i put it there to test but i deleted it after i send this post....

 

maybe it's not possible.. i will try to find another way

 

thanks for your help

Quote · 31 May 2016

Why not try to put this into the member menu?

Quote · 31 May 2016

micoots  : i'ts already there but the idea was to make it easy for new visitors...

but it's ok…  i keep it the way it is now...

i have to face much bigger problems now ;)

thanks for you message

Quote · 31 May 2016

The reason the JavaScript code in the main menu does not work as expected is because dolphin converts relative urls in the menu to full urls. The result is you end up with this.

http(s)://yoursite.com/javascript:showPopupLanguage(); void(0);

Instead of this.

javascript:showPopupLanguage(); void(0);

That can be fixed with a simple code modification.

Edit templates\base\scripts\BxBaseMenu.php

Look for this at about line 322

$sLink = (strpos($sLink, 'http://') === false && strpos($sLink, 'https://') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;

Replace it with this.

$sLink = (strpos($sLink, 'http://') === false && strpos($sLink, 'https://') === false && strpos($sLink, 'javascript') === false && !strlen($sOnclick)) ? $this->sSiteUrl . $sLink : $sLink;

Save it.

That will allow you to use JavaScript in the url field.

With that fix, using javascript:showPopupLanguage(); void(0); in the URL field will work as expected.

https://www.deanbassett.com
Quote · 31 May 2016

Thank you @deano92964

https://github.com/boonex/dolphin.pro/issues/426

Rules → http://www.boonex.com/terms
Quote · 1 Jun 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.