Jump to content

VAForum 2 Alignment


in2tech

Recommended Posts

Although it shows in the code that the New Post should be aligned left it is aligning the NEW post my pilots make Center. Any ideas?

<?php
//VAForum Original by:simpilot
//VAForum Security updates + VAForum 2.0 onwards by: Tom Sterritt
?>
<?php $this->show('forum_nav.tpl'); ?>
<h3>New Post</h3>
<script src="/lib/js/ckeditor/ckeditor.js"></script>
<center>
    <form action="<?php echo url('/Forum');?>" method="post" enctype="multipart/form-data">
        <table width="80%">
            <tr>
                <td>Posted By:</td>
                <td align="left"><b><?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname?></b></td>
            </tr>
            <tr>
                <td>RE: </td>
                <td align="left"><?php $topic = ForumData::get_topic_name($topic_id); $name = $topic->topic_title; echo $name; ?></td>
            </tr>
            <tr>
                <td>New Post</td>
                <td align="left"><textarea class="ckeditor" rows="10" cols="50" name="message" value=""></textarea></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="hidden" name="topic_id" value="<?php echo $topic_id; ?>" />
                    <input type="hidden" name="forum_id" value="<?php echo $forum_id; ?>" />
                    <input type="hidden" name="pilot_id" value="<?php echo Auth::$userinfo->pilotid; ?>" />
                    <input type="hidden" name="action" value="submit_new_post" />
                    <input type="submit" value="Submit Post">
                </td>
            </tr>
        </table>
    </form>
</center>

Link to comment
Share on other sites

<?php
//VAForum Original by:simpilot
//VAForum Security updates + VAForum 2.0 onwards by: Tom Sterritt
?>
<?php $this->show('forum_nav.tpl'); ?>
<h3>New Post</h3>
<script src="/lib/js/ckeditor/ckeditor.js"></script>
<div style="text-align: left;">
    <form action="<?php echo url('/Forum');?>" method="post" enctype="multipart/form-data">
        <table width="80%" align="left">
            <tr>
                <td>Posted By:</td>
                <td align="left"><b><?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname?></b></td>
            </tr>
            <tr>
                <td>RE: </td>
                <td align="left"><?php $topic = ForumData::get_topic_name($topic_id); $name = $topic->topic_title; echo $name; ?></td>
            </tr>
            <tr>
                <td>New Post</td>
                <td align="left"><textarea class="ckeditor" rows="10" cols="50" name="message" value=""></textarea></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="hidden" name="topic_id" value="<?php echo $topic_id; ?>" />
                    <input type="hidden" name="forum_id" value="<?php echo $forum_id; ?>" />
                    <input type="hidden" name="pilot_id" value="<?php echo Auth::$userinfo->pilotid; ?>" />
                    <input type="hidden" name="action" value="submit_new_post" />
                    <input type="submit" value="Submit Post">
                </td>
            </tr>
        </table>
    </form>
</div>

Give that a try.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...