in2tech Posted March 17, 2018 Report Share Posted March 17, 2018 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> Quote Link to comment Share on other sites More sharing options...
web541 Posted March 18, 2018 Report Share Posted March 18, 2018 <?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. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted March 19, 2018 Report Share Posted March 19, 2018 That is kind of odd it aligned center. Mine has been modified all to pieces and back and it has always aligned left as seen here. http://prntscr.com/iti29p Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 23, 2018 Author Report Share Posted March 23, 2018 Thank You, just installed a NEW template or working on it and have to fix the forums customization anyway! Perfect timing I hope! Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 23, 2018 Author Report Share Posted March 23, 2018 Apparently NEW template took care of the problem. Must have been a css issue I guess in the OLD template? Thank you very much anyway! I am sure someone else or myself can use this code in the future! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.