Webmastersite.net
Register Log In

change Language gives 404
if not on mainpage

Comments on change Language gives 404

Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Feb 09, 2007 - 8:17 AM:

In Multilanguage, the user can select one of the offered languages and this works on main site and translates (well it translates parts wink , but i don't consider this a bug).

If I go in any Category (or sub-), and try the same, it gives a 404 while trying to load this page:
localhost/wsnlinks/Category...dex.php?action=setlanguage

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 09, 2007 - 1:16 PM:

Changed wrapper to make absolute urls. Multilingual example here:
 <IF {SWITCH_STYLESELECT}><form action="{DIRURL}/index.php?action=setstyle" method="post">
<input type="hidden" name="returnto" value="{CURRENTHTMLURL}">
<select name="style">{STYLEOPTIONS}</select>
<input type="submit" value="{LANG_GENERAL_GO}" class="button">
</form></IF>
<IF {SWITCH_TEMPLATESELECT}><form action="{DIRURL}/index.php?action=settemplatesdir" method="post"> <input type="hidden" name="returnto" value="{CURRENTHTMLURL}"><select name="templatesdir">{TEMPOPTIONS}</select> <input type="submit" value="{LANG_GENERAL_GO}" class="button"></form></IF>
<IF {SWITCH_LANGUAGESELECTOR}>
<form action="{DIRURL}/index.php?action=setlanguage" method="post">
<input type="hidden" name="returnto" value="{CURRENTHTMLURL}">
<select name="languagegroup">{LANGOPTIONS}</select> <input type="submit" value="{LANG_GENERAL_GO}" class="button"></form>
</IF>
</td>
<td align="right" valign="top">
<IF {SWITCH_MEMBERS}>
<IF {THISMEMBERISGUEST}>
<div class="login">
<form action="{DIRURL}/index.php?action=userlogin&filled=1" method="post">
<input type="text" name="username" size="10" value="{LANG_REGISTRATION_USERNAME}" onfocus="this.value=''">
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Feb 09, 2007 - 4:20 PM:

works.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.