2007-11-29, 03:57 PM
there is validation error in the theme manger.
please check it
here is the source code I have in the theme manger
I get a js error in the explorer that saying.
please check it
here is the source code I have in the theme manger
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<title>منتديات ملك عمرى - MyBB Administration Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="styles/Axiom/stylesheet.css" />
<script type="text/javascript">
function hopto(url) {
window.location = url;
}
</script>
</head>
<body class="main_body">
<div align="center"><div class="navigation">
<a href="index.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=home">منتديات ملك عمرى Control Panel</a><br /><img src="../images/nav_bit.gif" alt="---" border="0" /><span class="active">Theme Manager</span>
</div></div><br /><script type="text/javascript">
<!--
function theme_hop(tid)
{
action = eval("document.themes.theme_"+tid+".options[document.themes.theme_"+tid+".selectedIndex].value");
if(action == "download")
{
var confirmReturn = false;
confirmReturn = confirm('Do you wish to select advanced export settings for this theme?\n\nClicking OK will take you to the export page, clicking Cancel will automatically include customized theme elements and customized templates used within this theme.');
if(confirmReturn == false)
{
window.location = "themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=do_download&tid="+tid+"&customonly=yes&inctemps=yes&customtempsonly=yes";
}
else
{
window.location = "themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=download&tid="+tid;
}
}
else if(action != "")
{
window.location = "themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action="+action+"&tid="+tid;
}
}
-->
</script>
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr><td class="hoptobuttons"><input type="button" value="Create New Theme" onclick="hopto('themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=add');" class="hoptobutton" /><input type="button" value="Import Theme" onclick="hopto('themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=import');" class="hoptobutton" /><input type="button" value="Download a Theme" onclick="hopto('themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=download');" class="hoptobutton" /></td></tr></table><form action="themes.php" method="post" name="themes" enctype="multipart/form-data">
<input type="hidden" name="adminsid" value="62079745e1b8daf7191ef75578c4d6fc" />
<input type="hidden" name="action" value="do_modify" />
<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="bordercolor">
<tr><td>
<table cellpadding="6" cellspacing="0" border="0" width="100%" class="tback"><tr>
<td class="header" align="center" colspan="2">Theme Management</td>
</tr>
<tr>
<td class="subheader">Theme</td>
<td class="subheader" align="center" width="20%">Controls</td>
</tr>
<tr>
<td class="altbg1">MyBB Master Style</td>
<td class="altbg1" align="right" nowrap="nowrap"><select name="theme_1" onchange="theme_hop(1);">
<option value="" style="font-weight: bold;">Theme Options </option>
<option value="" style="font-weight: bold;">Other Options</option>
<option value="download">- Export Theme</option>
</select> <input type="button" onclick="theme_hop(1);" value="Go" /></td>
</tr>
<tr>
<td class="altbg2"> MyBB Default (Default)</td>
<td class="altbg2" align="right" nowrap="nowrap"><select name="theme_2" onchange="theme_hop(2);">
<option value="" style="font-weight: bold;">Theme Options </option>
<option value="delete">- Delete Theme</option>
<option value="" style="font-weight: bold;">Theme Style</option><option value="edit" selected>- Edit Theme Style</option>
<option value="" style="font-weight: bold;">Other Options</option>
<option value="download">- Export Theme</option>
</select> <input type="button" onclick="theme_hop(2);" value="Go" /></td>
</tr>
</table>
</td>
</tr>
</table>
<br />
</form>
<div align="center">
<br />
<br />
<font size="1" face="Verdana,Arial,Helvetica">
Powered by:
<b>
<a href="http://www.mybboard.net" target="_blank">MyBB</a> 1.2.9
</b>
<br />
Copyright © 2002-2007 <a href="http://www.mybboard.net">MyBB Group</a>
<br />
Generated in: 0.4399991 seconds with 10 queries.
</font>
</div>
</body>
</noscript>
<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
</div></div>
</html>
this errors, it's make me unable to use the themes options while the acp running on arabic on some servers.I get a js error in the explorer that saying.
Line:24
Char:66
Code:0
Error:Unterminated string constant
URL:http://www.3mrey.uni.cc/dd/admin/themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=modify
and the next error code isLine:73
Char:1
Code:0
Error:Object expected
URL:http://www.3mrey.uni.cc/dd/admin/themes.php?adminsid=62079745e1b8daf7191ef75578c4d6fc&action=modify
thanks