Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2006, 01:54 AM
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Location: Texas
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 'editpost' template issues

I've been trying to fix all of the templates on my forum but there's one that I cannot figure out for the life of me.



Notice how the textarea for the post you are editing is ABOVE the edit post section. I have stared at the coding for this template and I can't figure out how to fix it. Here's the coding on the 'editpost' template.

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

<if condition="$show['deletepostoption']">
<form action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$postid" />
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="do" value="deletepost" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="2">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('editpost_delete')"><img id="collapseimg_editpost_delete" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_editpost_delete].gif" alt="" border="0" /></a>
		$vbphrase[delete_this_message]
	</td>
</tr>
<tbody id="collapseobj_editpost_delete" style="$vbcollapse[collapseobj_editpost_delete]">
	<tr>
		<td class="alt1" colspan="2">
			
			<div class="smallfont">
			<div style="width:$stylevar[formwidth]" align="$stylevar[left]">$vbphrase[delete_message_check_appropriate_option]</div><if condition="$show['firstpostnote']">
					<div>$vbphrase[deleting_message_deletion_of_thread]</div>
				</if>
</td></tr>
			
	<tr>
		<td class="alt2" width="30%" valign="top">
	<div class="normalfont"><strong>Deletion Options</strong></div>
		</td>
		<td class="alt2" width="70%">
	<div class="smallfont">
						<label for="rb_del_leave"><input type="radio" name="deletepost" value="" id="rb_del_leave" tabindex="1" checked="checked" />$vbphrase[do_not_delete_message]</label>
					</div>
					<div class="smallfont">
						<label for="rb_del_soft"><input type="radio" name="deletepost" value="delete" id="rb_del_soft" tabindex="1" />$vbphrase[delete_message]</label>
						<if condition="$show['physicaldeleteoption'] AND $show['keepattachmentsoption']">(<label for="cb_keepattachments"><input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" tabindex="1" />$vbphrase[keep_attachments]</label>)</if>
					</div>
					<if condition="$show['physicaldeleteoption']">
					<div class="smallfont">
						<label for="rb_del_hard"><input type="radio" name="deletepost" value="remove" id="rb_del_hard" tabindex="1" />$vbphrase[physically_remove_message]</label>
					</div>
					</if>
			</div>
			</td></tr>

	<tr>
		<td class="alt1" width="30%" valign="top" valign="top">
	<div class="normalfont"><strong>$vbphrase[reason_for_deletion]:</strong></div>
		</td>
		<td class="alt1" width="70%">
<span style="float:right"><input type="submit" class="button" value="$vbphrase[delete_this_message]" tabindex="1" accesskey="d" /></span>
<input type="text" class="bginput" name="reason" size="50" tabindex="1" title="$vbphrase[optional]" /> 
			</td>
	</tr>
	</form>		
</tbody>
</table></if>

<br />


$postpreview

<form name="vbform" action="editpost.php" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>



<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="2">
		<span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[thread]</strong>: <a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]">$threadinfo[title]</a></span>
		$vbphrase[edit_post]
	</td>
</tr>
<tr>
	<td class="alt2" colspan="2">
<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>
</td></tr>

<! -- User login -->
<tr>
<td class="alt1" width="30%"><div class="normalfont"><strong>Logged In User:</strong></td></div>
<td class="alt1" width="70%">$usernamecode</td>
</tr>

<!-- User login  end -->

		<!-- subject field -->

<td class="alt2" width="30%"><div class="normalfont"><strong>$vbphrase[title]:</strong></div></td>
	
<td class="alt2" width="70%"><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" />
			&nbsp;&nbsp;
			<img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>		</tr>
		
<!-- / subject field -->

		
<!-- post icons -->
<tr>
<td class="alt1" valign="top" width="30%"><div class="normalfont"><strong>Post Icons:</strong></div>	
<div class="smallfont"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" checked="checked" />No icon &nbsp; &nbsp;</label></div>
</td>
<td class="alt1" width="70%">
		$posticons
</td>
</tr>

<!-- message -->
		$messagearea

		<!-- / message area -->

<!-- addition options -->
<td class="alt2" valign="top" width="30%"><div class="normalfont"><strong>$vbphrase[additional_options]</strong></div></td>
<td class="alt2" width="70%">
<if condition="$bbuserinfo['signature'] != ''"><div class="smallfont"><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>
						<div class="smallfont"><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>
						<div class="smallfont">$disablesmiliesoption
					</div>
		</tr></td>

	
<!-- additional options end -->

<!-- Attach File -->
<tr>
<td class="alt1" valign="top" width="30%"><div class="normalfont"><strong>Attach File</strong></div></td>
<td class="alt1" width="70%">$attachmentoption</td></tr>
<!-- End attach file -->

<!-- Thread Subscription -->
<tr>
<td class="alt2" valign="top" width="30%"><div class="normalfont"><strong>
$vbphrase[thread_subscription]</strong></div></td>
<td class="alt2" width="70%"><div class="smallfont">
$vbphrase[notification_type]:<br /><select name="emailupdate" tabindex="1">
							<option value="9999" $emailchecked[9999]>$vbphrase[do_not_subscribe]</option>
							<option value="0" $emailchecked[0]>$vbphrase[no_email_notification]</option>
							<option value="1" $emailchecked[1]>$vbphrase[instant_email_notification]</option>
							<option value="2" $emailchecked[2]>$vbphrase[daily_email_notification]</option>
							<option value="3" $emailchecked[3]>$vbphrase[weekly_email_notification]</option>
						</select></td>
						<if condition="$show['subscribefolders']"><td>$vbphrase[folder]:<br /><select name="folderid" tabindex="1">$folderbits</select></td></if>
					</tr></div>
	
<!-- Thread Subscription End -->

<!-- Thread Managment -->
$threadmanagement
</tr></table>

<div style="margin-top:$stylevar[cellpadding]px" align="center">
		<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" />
	<br /></div>
</if>
</form>
</tbody>

<br />

$forumrules

$footer

</body>
</html>
If someone could tell me how to fix it so that 'Post Icons' (in the image) is changed to 'Message' and the textarea is in the td next to it, that'd be great. Thanks in advance.
Reply With Quote
  #2  
Old 07-15-2006, 05:10 AM
Raw Sugar Raw Sugar is offline
 
Join Date: Apr 2005
Location: Texas
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I posted this thread in the wrong place, let me know and I'll re-post it somewhere else. Is there anyone that can help me please?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08104 seconds
  • Memory Usage 2,202KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete