Thread: WAP Plugin BETA
View Single Post
  #74  
Old 12-31-2005, 06:14 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by feldon23
I've been customizing this style quite a bit.

* I removed the $forum[description] code from all four threadbit templates.


* I went ahead and deleted the entire Quick Reply section from SHOWTHREAD since I can't imagine that working on WAP2.

* I did add this to my postbit between the </if> and the <hr /> so I can edit (it uses advanced edit instead of trying to do quickedit) my and other posts on the road:
HTML Code:
<if condition="$post['editlink']"></if><if condition="$post['editlink']"> | <a href="$post[editlink]">$vbphrase[edit_delete_message]</a></if>
* and I have stripped down editpost considerably:

HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[edit_post]</title>
</head>
<body$onload>
$header
$navbar


$postpreview

<form name="vbform" action="editpost.php" method="post">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
	<td class="panelsurround">
	<div class="panel">
		<div align="$stylevar[left]">
	
		$usernamecode
		
		<!-- edit reason field -->
		<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="20" maxlength="200" tabindex="1" title="$vbphrase[optional]" /></div>
		</div>
		<!-- / edit reason field -->
		
		<!-- subject field -->
		<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
		<tr>
			<td class="smallfont" colspan="3">$vbphrase[title]:</td>
		</tr>
		<tr>
		 <td><input type="text" class="bginput" name="title" value="$title" size="20" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
			<td>&nbsp;&nbsp;</td>
		 <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
		</tr>
		</table>
		<!-- / subject field -->

		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td>
			
		<!-- message area -->
		<div class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$postinfo[userid]" 2="$postinfo[username]" 3="$postinfo[postdate]" 4="$postinfo[posttime]">$vbphrase[message_by_x_on_y_at_z]</phrase>:</div>
		$messagearea
		<!-- / message area -->

			</td>
		</tr>
		</table>
		
		</div>
	</div>
	
	<div style="margin-top:$stylevar[cellpadding]px">
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="updatepost" />
		<input type="hidden" name="p" value="$postid" />
		<input type="hidden" name="posthash" value="$posthash" />
		<input type="hidden" name="poststarttime" value="$poststarttime" />
		<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
		<input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="p" tabindex="1" />
	</div>
	
	</td>
</tr>
</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">	
	<tr valign="top">
		<td class="panelsurround" align="center">
		<div class="panel">
			<div align="$stylevar[left]">
		    		    	
				<fieldset class="fieldset">
		 	 <legend>$vbphrase[miscellaneous_options]</legend>
		 		<div style="padding:$stylevar[formspacer]px">
		 			<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
		 			<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
		    		    $disablesmiliesoption
					</div>
				</fieldset>
	

				$threadmanagement
				
				</div>
			</div>
			
			<div style="margin-top:$stylevar[cellpadding]px">
		 	<input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
		 	<input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="p" tabindex="1" />
			</div>
		</td>
	</tr>
</tbody>
</table>

</form>

<br />

$footer

</body>
</html>
I could see editing threadbit to manually include a &perpage=5 just to keep download sizes under control.
sweet. Please let us know about any changes you make.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01112 seconds
  • Memory Usage 1,833KB
  • 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
  • (2)bbcode_html
  • (1)bbcode_quote
  • (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