Yes; all styles are childeren of one style. Here is he new attachment template:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vbphrase[manage_attachments] - $vboptions[bbtitle]</title>
$headinclude
</head>
<body style="margin:0px" onload="self.focus()">
<script type="text/javascript">
<!--
function verify_upload(formobj)
{
var haveupload = false;
for (var i=0; i < formobj.elements.length; i++)
{
var elm = formobj.elements[i];
if (elm.type == 'file')
{
if (elm.value != "")
{
haveupload = true;
}
}
}
if (haveupload)
{
toggle_display('uploading');
return true;
}
else
{
alert("$vbphrase[select_a_file_to_attach]");
return false;
}
}
<if condition="$show['updateparent']">
switch (vbDOMtype)
{
case "std":
{
var attachlist = window.opener.document.getElementById("attachlist");
}
break;
case "ie4":
{
var attachlist = window.opener.document.all["attachlist"];
}
}
attachlist.innerHTML = "$parentattach";
</if>
//-->
</script>
<form enctype="multipart/form-data" action="newattachment.php" name="newattachment" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="manageattach" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="p" value="$postid" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="editpost" value="$editpost" />
<input type="hidden" name="posthash" value="$posthash" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat">
<span class="smallfont" style="float:$stylevar[right]"><a href="#" onclick="self.close()">$vbphrase[close_this_window]</a></span>
$vbphrase[manage_attachments]
</td>
</tr>
<if condition="$show['errors']">
<tr>
<td class="thead">$vbphrase[upload_errors]</td>
</tr>
$errorlist
</if>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<fieldset class="fieldset">
<legend>$vbphrase[upload_file]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['attachoption']">
<tr>
<td colspan="2"><phrase 1="$vbphrase[upload_word]">$vbphrase[use_x_to_find_file]</phrase></td>
</tr>
<tr>
<td colspan="2">$vbphrase[valid_file_extensions]: $attachtypes[extensions]</td>
</tr>
<tr valign="bottom">
<td>
$vbphrase[file_to_upload]:
<input type="hidden" name="MAX_FILE_SIZE" value="$inimaxattach" /><br />
$attachinput
</td>
<td align="$stylevar[right]"><input type="submit" class="button" name="upload" value="$vbphrase[upload]" style="width:70px" onclick="return verify_upload(this.form);" /></td>
</tr>
<else />
<tr>
<td><phrase 1="$vboptions[attachlimit]">$vbphrase[have_uploaded_maximum_x_files]</phrase></td>
</tr>
</if>
</table>
</fieldset>
<if condition="$show['attachmentlimits']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
<phrase 1="$attach_username">$vbphrase[sum_of_attachments_owned_by_x]</phrase>:
$attachsum<br />
<table style="border:2px groove" cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<if condition="$show['currentsize']"><td width="$attachsize" bgcolor="red" style="border:1px outset" class="smallfont" title="<phrase 1="$attachsum">$vbphrase[current_attachment_total_x]</phrase>"> </td></if>
<if condition="$show['totalsize']"><td width="$totalsize" bgcolor="green" style="border:1px outset" class="smallfont" title="<phrase 1="$attachlimit">$vbphrase[maximum_attachment_storage_x]</phrase>"> </td></if>
</tr>
</table>
</div>
</div>
</if>
<if condition="$show['attachmentlist']">
<fieldset class="fieldset">
<legend>$vbphrase[current_attachments]</legend>
<div style="padding:$stylevar[formspacer]px">
<table class="fieldset" cellpadding="0" cellspacing="1" border="0" width="100%">
$attachments
</table>
<div>$vbphrase[space_used]: $totallimit</div>
</div>
</fieldset>
</if>
</div>
</div>
<div align="center" id="uploading" style="display:none; margin-top:$stylevar[cellpadding]px">
<strong>$vbphrase[uploading_file]</strong>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="button" class="button" value="$vbphrase[close_this_window]" onclick="window.close();" />
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
Sorry to bump but I'm getting ready to open my forum to the public and really need help wtih this.