Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:03:41 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155553 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Redirecting language script  (Read 926 times)
Yvonne

Offline Offline

Posts: 37



« on: April 11, 2006, 11:07:28 AM »

I have installed WB in the root of my website and made a site with 3 languages by the way Ryan discribed in his tutorial. It works fine. But i'am not satisfied with the intropage you have to use. It is not a need that my visitors can choose a language, but i want to direct them straight to their language.

Now i found a script http://sourceforge.net/projects/l-redirector/ , which can direct the visitors to their language or to a default one.

Now my problem, i don't know how to install it. The script has 2 pages after setup, index.php and configure.php,
so i can't put in the root, because there are the index.php and configure.php from WB. so i put it in a folder 'redirect'. Is this a good start en how do i get further, or is there someone with a other idea.

Thanks in advance,

Yvonne
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: April 11, 2006, 09:36:29 PM »

Ok ... why don't you actually install (move) WB into a subfolder and let the script reside in the root?

How did you manage the menu? Did you use Ryans script or do you use the show menu function like this here:

Code:
<?php show_menu(1,1,-1);?>

basically it shows only the menu below the first sublevel (everything which is under EN, DE, etc ...)

also the language selection can be made with a 2nd menu showing only the top level:

Code:
<?php show_menu(2,0,0);?>

but for this you need to enable the 2nd menu in the info.php file of your template and assign the pages to the right menu top pages menu 2, subpages menu 1)

I am waiting for the accesrights to the WIKI, so I can updae the Tutorial by Ryan ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Yvonne

Offline Offline

Posts: 37



« Reply #2 on: April 12, 2006, 08:18:21 AM »

Thank you for your replay.

I don't want to put WB in a sub dir because i want to hold the url as short as possible. I think i found the solution.

I have made one page above the FR, EN and NL and put a javascript code in it. So when visitors call my domain the will be redirected to the homepage of FR, EN or NL.

Kweitzel: The way you manage the multilanguage with a menu. The numbers 1,1,-1 is that the way you can define which level must  show on the site? If yes, can i also make a second menu under a language, because that was not possible the way i did it, It showed also the EN, FR, NL page.

Yvonne
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #3 on: April 12, 2006, 09:11:44 AM »

you need to enable the multi menu feature in the settings of your installation and then also tell WB through your templates info.php which name the menu has.

Then you can define the second menu ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!