maybe I did not follow the instructions on that post where I got the code from correctly
this is my header in the template
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="javascript" type="text/javascript">
<!--
var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
function new_captcha_image() {
if (captcha_image_url.indexOf('?') == -1) {
document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}
document.getElementById('captcha_input').value="";
document.getElementById('captcha_input').focus();
captcha_reload_count++;
}
function opendetailwindow() {
window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
}
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert("© Copyright by {site_name}");
return false;
}
else if (event.button == 2 || event.button == 3) {
alert("© Copyright by {site_name}");
return false;
}
return true;
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}
document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");
// -->
</script>
{if has_rss}
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="640" align="center">
<tr>
<form>
<td width="50%" align="left">
<select name="select_template" onChange="javascript:if(options[selectedIndex].value!='0') document.location.href=options[selectedIndex].value; ">
<option value="0">Select a Template</option>
<?php
$t_link = $_SERVER['QUERY_STRING'];
$t_link = preg_replace("/&{0,1}l=[a-z\.]{1,25}/", "", $t_link);
$t_link = "?".$t_link;
$t_link = $_SERVER['PHP_SELF'].$t_link."&t=";
$folderlist = array();
$handle = opendir(ROOT_PATH."templates");
while ($folder = @readdir($handle)) {
if (@is_dir(ROOT_PATH."templates/$folder") && $folder != "." && $folder != ".." && $folder != "_vti_cnf" ) {
$folderlist[] = $folder;
}
}
closedir($handle);
foreach ($folderlist as $folder) {
$templink = $t_link.$folder;
?>
<option value="<?php echo $templink; ?>"><? echo $folder ?></option>
<?php
}
?>
</select>
</td>
</form>
<form>
<td width="50%" align="right">
<select name="select_language" onChange="javascript:if(options[selectedIndex].value!='0') document.location.href=options[selectedIndex].value; ">
<option value="0">Select a Language</option>
<?php
$l_link = $_SERVER['QUERY_STRING'];
$l_link = preg_replace("/&{0,1}l=[a-z\.]{1,25}/", "", $l_link);
$l_link = "?".$l_link;
$l_link = $_SERVER['PHP_SELF'].$l_link."&l=";
$folderlist = array();
$handle = opendir(ROOT_PATH."lang");
while ($folder = @readdir($handle)) {
if (@is_dir(ROOT_PATH."lang/$folder") && $folder != "." && $folder != ".." && $folder != "_vti_cnf" ) {
$folderlist[] = $folder;
}
}
closedir($handle);
foreach ($folderlist as $folder) {
$langlink = $l_link.$folder;
?>
<option value="<?php echo $langlink; ?>"><? echo $folder ?></option>
<?php
}
?>
</td>
</form>
</tr>
</table>