Exempel på href från bilder som ni kan lägga vart ni vill i forumet.
Engelska
Kod: Markera allt
<a href="index.php?lang=en">
<img border="0" src="images/flag_en.jpg" width="30" height="17"></a>Kod: Markera allt
<a href="index.php?lang=sv">
<img border="0" src="images/flag_sv.jpg" width="30" height="17"></a>FIND:BEFORE, ADD:Kod: Markera allt
// We include common language file here to not load it every time a custom language file is includedKod: Markera allt
$lang = request_var('lang', '', false, true); if (file_exists($phpbb_root_path . 'language/' . $lang . "/common.$phpEx")) { $this->lang_name = $lang; $this->lang_path = $phpbb_root_path . 'language/' . $this->lang_name . '/'; $cookie_expire = $this->time_now + (($config['max_autologin_time']) ? 86400 * (int) $config['max_autologin_time'] : 31536000); $this->set_cookie('lang', $lang, $cookie_expire); unset($cookie_expire); }
Källa:startrekguide.comFIND:REPLACE, WITH:Kod: Markera allt
if (!empty($_GET['style']) && $auth->acl_get('a_styles')) { global $SID, $_EXTRA_URL; $style = request_var('style', 0); $SID .= '&style=' . $style; $_EXTRA_URL = array('style=' . $style); }Kod: Markera allt
$requested_style = request_var('style', 0, false, true); if ($requested_style && (!$config['override_user_style'] || $auth->acl_get('a_styles'))) { $style = $requested_style; $cookie_expire = $this->time_now + (($config['max_autologin_time']) ? 86400 * (int) $config['max_autologin_time'] : 31536000); $this->set_cookie('style', $style, $cookie_expire); unset($cookie_expire); }

