vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   'editpost' template issues (https://vborg.vbsupport.ru/showthread.php?t=120427)

Raw Sugar 07-06-2006 01:54 AM

'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.

https://vborg.vbsupport.ru/external/2006/07/26.jpg

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.

Raw Sugar 07-15-2006 05:10 AM

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? :(


All times are GMT. The time now is 09:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01105 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete