Changes

Jump to navigation Jump to search

Talk:Main Page

92 bytes added, 03:32, 17 June 2006
That would be possible if we asked Egal to make a script that does it. For example there is a wiki.php script which is executed when the user clicks "Wiki" in the menu, instead of going straight to the wiki, then the wiki.php script finds the language and redirects the user onwards to the real wiki.
 
--[[User:Ancient|Ancient]] 05:32, 17 June 2006 (CDT)
 
My proposed code is below:
<?php
// If so redirect them to their language's home page which is "language code":"Main Page in that language" - of course this means English goes to "En:Main Page" so we will have to make a redirect in the wiki to go back to "Main Page"
header("Location: http://www.wurmonline.com/wiki/" . $language . ":" . $languages_supported[$language]);
} else {
// Otherwise redirect them to the Main Page, this could also be another page saying that the language is not supported
header("Location: http://www.wurmonline.com/wiki/Main Page");
773

edits

Navigation menu