View Single Post
  #57  
Old 02-08-2004, 06:16 AM
LordJMann LordJMann is offline
 
Join Date: Jan 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Decided to spice this up a bit... Here is the new and improved quickedit template complete with phrase support!

Code:
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post">
<a href="#" onClick="toggleT('e$post[postid]','s');return false;"><img src="$stylevar[imgdir_button]/quickedit_icon.gif" alt="Quick Edit" border="0" /></a>
<div id="e$post[postid]" style="VISIBILITY:hidden; z-index:1; position:absolute;">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="updatepost" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="emailupdate" value="9999" />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="500" align="center">
<tr>
<td class="tcat">
<strong>$vbphrase[edit_post]</strong>
</td>
</tr>
<tbody style=""> 
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:500px" align="left">
	<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
	 <div>$vbphrase[reason_for_editing]:</div>
	 <div><input type="text" class="bginput" name="reason" value="$newpost[reason]" size="50" maxlength="200" tabindex="1" title="$vbphrase[optional]" /><input type="hidden" name="reason_exists" value="$edit[reason_exists]" /></div>
	</div>
	<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
	 <div>$vbphrase[title]:</div>
	 <div><input type="text" class="bginput" name="title" value="$post[title]" size="50" maxlength="85" tabindex="1" /></div>
	</div>
	<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
	 <div>$vbphrase[message]:</div>
	 <div><textarea name="message" class="bginput" style="width:450px; height:125px;" wrap="virtual" tabindex="1">$edittext</textarea></div>
	</div>
	<fieldset class="fieldset">
	 <legend>$vbphrase[miscellaneous_options]</legend>
	 <div style="padding:3px">
	 <if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked />$vbphrase[show_your_signature]</label></div></if>
	 <div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" checked />$vbphrase[automatically_parse_links_in_text]</label></div>
	 <div><label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" tabindex="1" />$vbphrase[disable_smilies_in_text]</label></div>
	 </div>
	</fieldset>
</div>
</div>
<div style="margin-top:6px">
	<input type="submit" class="button" name="sbutton" value="Save Changes" accesskey="s" tabindex="1" />
	<input type="submit" class="button" name="preview" value="Preview Changes" accesskey="p" tabindex="1" />
	<input type="button" class="button" value="Hide" onClick="toggleT('e$post[postid]','h')">
</div>
</td>
</tr>
</tbody>
</table>
<br />
</div>
</form>
You'll find it very attractive
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01256 seconds
  • Memory Usage 1,789KB
  • 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)bbcode_code
  • (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