ok this is not tested but should work:
1- Edit template phpinclude and add this:
PHP Code:
if ($bbuserinfo['usergroupid']==E) {$change_lan=' <a href="misc.php?s='.$session[sessionhash].'&action=changelanguage&language=en">English</a> ';}
elseif ($bbuserinfo['usergroupid']==D) {$change_lan=' <a href="misc.php?s='.$session[sessionhash].'&action=changelanguage&language=de">Deutch</a> ';}
(Replace E and D with the usergroupids)
2- edit misc.php, find:
PHP Code:
// ############################### start who posted ###############################
Before that add:
PHP Code:
if ($action=="changelanguage") {
include("./global.php");
if ($bbuserinfo['usergroupid']==D AND $language='en')
{
$DB_site->query("UPDATE user SET usergroupid=E WHERE userid=$bbuserinfo[userid]");
}
if ($bbuserinfo['usergroupid']==E AND $language='de')
{
$DB_site->query("UPDATE user SET usergroupid=D WHERE userid=$bbuserinfo[userid]");
}
$goto="index.php?s=$session[sessionhash]";
eval("standardredirect(\"".gettemplate("language_changed")."\",\"$goto\");");
}
(Replace E and D with the usergroupids)
3- Create a template named:language_changed
its content: "Language Changed.. You are taken to the forum home"
4- Edit header template and put $change_lan to anywhere you like..
That's it..
And yes this option will only apply to usergroups E and D, not mods, admins etc. If you set your permissions correctly, they will see the entire board..
Make sure the general permissions of usergroups E and D are exactly same except forum access permissions. (Say if E is granted PM rights, either should D)
There maybe a parse errors etc, since I didnt test it, but nothing we can't fix. Just holler if it does not work..