View Single Post
  #3  
Old 01-16-2007, 04:24 PM
mistyPotato mistyPotato is offline
 
Join Date: Dec 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is template - ATTACHMENTS
Seems like the section in Blue is where this is controlled?
Couldn't any kind of UserLevel conditinal be placed there?




$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vbphrase[manage_attachments] - $vboptions[bbtitle]</title>
</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' || elm.type == 'text')
{
if (elm.value != "")
{
haveupload = true;
}
}
}

if (haveupload)
{
obj = fetch_object("uploading");
obj.style.display = "";
return true;
}
else
{
alert("$vbphrase[select_a_file_to_attach]");
return false;
}
}

<if condition="$show['updateparent']">
if (typeof window.opener.vB_Attachments != 'undefined')
{
window.opener.vB_Attachments.reset();
$new_attachlist_js
}
</if>

//-->
</script>

<div class="page">
<form enctype="multipart/form-data" action="newattachment.php?do=manageattach&amp;p=$p ostid" 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]">

<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>">&nbsp;</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>">&nbsp;</td></if>
</tr>
</table>
</div>
</div>
</if>

<if condition="$show['attachoption']">
<if condition="$show['attachfile']">
<fieldset class="fieldset">
<legend>$vbphrase[upload_file_from_your_computer]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" width="100%" border="0">
<tr valign="bottom">
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="$inimaxattach" />
$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>
</table>
</fieldset>
</if>
<if condition="$show['attachurl']">
<fieldset class="fieldset">
<legend>$vbphrase[upload_file_from_url]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" width="100%" border="0">
<tr valign="bottom">
<td>
$attachurlinput
</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>
</table>
</fieldset>
</if>
<else />
<fieldset class="fieldset">
<legend>$vbphrase[upload_file]</legend>
<if condition="$show['forumclosed']">
$vbphrase[this_forum_is_not_accepting_new_attachments]
<else />
<phrase 1="$vboptions[attachlimit]">$vbphrase[have_uploaded_maximum_x_files]</phrase>
</if>
</fieldset>
</if>

<if condition="$show['attachmentlist']">
<fieldset class="fieldset">
<legend>$vbphrase[current_attachments] ($totallimit)</legend>
<div style="padding:$stylevar[formspacer]px">
<table class="fieldset" cellpadding="0" cellspacing="1" border="0" width="100%">
$attachments
</table>
</div>
</fieldset>
</if>

<div align="center" id="uploading" style="display:none; margin-top:$stylevar[cellpadding]px">
<strong>$vbphrase[uploading_file]</strong>
</div>



<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<thead>
<tr>
<td class="thead" colspan="4">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('attachkey')"><img id="collapseimg_attachkey" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_attachkey].gif" alt="" border="0" /></a>
<span class="fieldset">$vbphrase[attachment_key]</span>
</td>
</tr>
</thead>
<tbody id="collapseobj_attachkey" style="$vbcollapse[collapseobj_attachkey]">
<tr class="tcat">
<td class="smallfont"><strong>$vbphrase[filetype]</strong></td>
<td class="smallfont"><strong>$vbphrase[max_filesize]</strong></td>
<td class="smallfont"><strong>$vbphrase[max_width]</strong></td>
<td class="smallfont"><strong>$vbphrase[max_height]</strong></td>
</tr>
$attachkeybits
</tbody>
</table>
</td>
</tr>
</table>

</div>
</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>
</div>

</body>
</html>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01093 seconds
  • Memory Usage 1,805KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete