Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Brain Housekeeping Edit
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Detox" data-source="post: 451272" data-attributes="member: 596"><p>Hello!</p><p></p><p>I'm trying to edit BrainCMS Housekeeping... I got to point where I have it like HoloCMS, But I can't seem to get it to POST into the database.</p><p>(<a href="http://i65.tinypic.com/2zqdlsl.png" target="_blank">ScreenShot</a>)</p><p></p><p>Original Code</p><p></p><p>[CODE=php]<aside class="right-side"></p><p> <section class="content"></p><p> <div class="row"></p><p> <div class="col-md-12"></p><p> <section class="panel"></p><p> <header class="panel-heading"></p><p> Create a News Article<br></p><p> <form name="mygallery" action="" method="POST"></p><p> </header></p><p> <div class="panel-body"></p><p> <?php admin::PostNews(); ?></p><p> <div class="form-group"></p><p> <label class="col-sm-2 col-sm-2 control-label">Title</label></p><p> <div class="col-sm-10"></p><p> <input type="text" value="<?php echo $_SESSION['title']; ?>" name="title"class="form-control"></p><p> </div></p><p> </div><br><br></p><p> <div class="form-group"></p><p> <label class="col-sm-2 col-sm-2 control-label">Short Story</label></p><p> <div class="col-sm-10"></p><p> <input type="text" value="<?php echo $_SESSION['slogan']; ?>" name="slogan"class="form-control"></p><p> </div></p><p> </div><br><br></p><p> <div class="form-group"></p><p> <label class="col-sm-2 col-sm-2 control-label">Image</label></p><p> <div class="col-sm-10"></p><p> <?php</p><p> echo '<select onChange="showimage()" class="form-control" name="topstory" style=" width: 100%;font-size: 14px;"';</p><p> if ($handle = opendir(''.$_SERVER['DOCUMENT_ROOT'].'/adminpan/img/newsimages'))</p><p> { </p><p> while (false !== ($file = readdir($handle)))</p><p> {</p><p> echo'';</p><p> if ($file == '.' || $file == '..')</p><p> {</p><p> continue;</p><p> } </p><p> echo '<option name="topstory" data-image="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '" value="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '"';</p><p> if (isset($_POST['topstory']) && $_POST['topstory'] == $file)</p><p> {</p><p> echo ' selected';</p><p> }</p><p> echo '>' . $file . '</option>';</p><p> }</p><p> }</p><p> echo '</select>';</p><p> ?></p><p> <br></p><p> <style></p><p> .imagebox {</p><p> width: auto;</p><p> background-repeat: repeat-y;</p><p> border-radius: 6px;</p><p> float: left;</p><p> margin-right: 0.72pc;</p><p> margin-bottom: 10px;</p><p> webkit-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important;</p><p> -moz-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important;</p><p> box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important;</p><p> }</p><p> </style></p><p> <div class="imagebox"></p><p> <img style="border-radius: 6px;"src="<?= $config['hotelUrl'];?>/adminpan/img/newsimages/choose.gif" name="topstory" border=0></p><p> </div></p><p> <br><br></p><p> </div></p><p> </div></p><p> <br><br></p><p> <script src="<?= $config['hotelUrl'];?>/adminpan/js/ckeditor/ckeditor.js"></script></p><p> <div class="form-group"></p><p> <label class="col-sm-2 col-sm-2 control-label">Long Story</label></p><p> <div class="col-sm-10"></p><p> <textarea id="editor1" name="news" rows="15" cols="80"><?php echo $_SESSION['news']; ?></textarea></p><p> </div></p><p> </div><br><br></p><p> <button style="width: 130px;</p><p> float: right;</p><p> margin-right: 14px;" name="postnews" type="submit" class="btn btn-success">Post the Article</button></p><p> </div></p><p> </section></p><p> </div></p><p> </form></p><p> </header>[/CODE]</p><p></p><p>My Code:</p><p></p><p>[CODE=php]<table cellpadding='0' cellspacing='8' width='100%' id='tablewrap'></p><p><tr> <td width='22%' valign='top' id='leftblock'></p><p> <div></p><p> <!-- LEFT CONTEXT SENSITIVE MENU --></p><p><?php include_once('includes/sitenavi.php'); ?></p><p> <!-- / LEFT CONTEXT SENSITIVE MENU --></p><p> </div></p><p> </td></p><p> <td width='78%' valign='top' id='rightblock'></p><p> <div><!-- RIGHT CONTENT BLOCK --></p><p></p><p> <header class='tableheaderalt'>Compose News Article</p><p> <form name="mygallery" action="" method="POST"></p><p> </header></p><p> <div class='tableborder'></p><p> <?php admin::PostNews(); ?></p><p> </p><p></p><p></p><p><table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'></p><p><tr></p><p><td class='tablerow1' width='40%' valign='middle'><b>Title</b><div class='graytext'>The full title of your article.</div></td></p><p><td class='tablerow2' width='60%' valign='middle'><input type='text' name='title' value="<?php echo $_SESSION['title']; ?>" size='30' class='textinput'></td></p><p></tr></p><p></p><p><tr></p><p><td class='tablerow1' width='40%' valign='middle'><b>Short Story</b><div class='graytext'>A small introduction to the article.<br />HTML is not allowed here.</div></td></p><p><td class='tablerow2' width='60%' valign='middle'><textarea name='short_story' cols='60' rows='5' wrap='soft' id='sub_desc' class='multitext'><?php echo $_SESSION['slogan']; ?></textarea></td></p><p></tr></p><p></p><p> <tr></p><p><td class='tablerow1' width='40%' valign='middle'><b>Topstory Image</b><div class='graytext'>The URL to the topstory image.</div></td></p><p><td class='tablerow2' width='60%' valign='middle'></p><p> </p><p> <?php</p><p> echo '<center><select onChange="showimage()" class="form-control" name="topstory" style=" width: 100%;font-size: 14px;"';</p><p> if ($handle = opendir(''.$_SERVER['DOCUMENT_ROOT'].'/adminpan/img/newsimages'))</p><p> { </p><p> while (false !== ($file = readdir($handle)))</p><p> {</p><p> echo'';</p><p> if ($file == '.' || $file == '..')</p><p> {</p><p> continue;</p><p> } </p><p> echo '<option name="topstory" data-image="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '" value="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '"';</p><p> if (isset($_POST['topstory']) && $_POST['topstory'] == $file)</p><p> {</p><p> echo ' selected';</p><p> }</p><p> echo '>' . $file . '</option>';</p><p> }</p><p> }</p><p> echo '</select>';</p><p> ?></p><p> <br></p><p> <style></p><p> .imagebox {</p><p> width: auto;</p><p> background-repeat: repeat-y;</p><p> border-radius: 6px;</p><p> float: left;</p><p> margin-right: 0.72pc;</p><p> margin-bottom: 10px;</p><p> webkit-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important;</p><p> -moz-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important;</p><p> box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important;</p><p> }</p><p> </style></p><p> <div class="imagebox"></p><p> <img style="border-radius: 6px;"src="<?= $config['hotelUrl'];?>/adminpan/img/newsimages/choose.gif" name="topstory" border=0></p><p> </div></p><p> <br><br></p><p> </div></p><p> </div></p><p></p><p></td></p><p></tr></p><p></p><p><tr></p><p><td class='tablerow1' width='40%' valign='middle'><b>Story</b><div class='graytext'>The actual news message.<br />HTML is allowed here.</div></td></p><p><td class='tablerow2' width='60%' valign='middle'></p><p><script src="<?= $config['hotelUrl'];?>/adminpan/js/ckeditor/ckeditor.js"></script></p><p> <div class="form-group"></p><p> <div class="col-sm-10"></p><p> <textarea id="editor1" name="news" rows="15" cols="80"><?php echo $_SESSION['news']; ?></textarea></p><p> </div></p><p> </div><br><br></p><p></td></p><p></tr></p><p></p><p><tr></p><p><tr></p><p><td align='center' class='tablesubheader' colspan='2' ></p><p><button style="" name="postnews" type="submit" class="realbutton">Post the Article</button></p><p></td></tr></p><p></tr></p><p></div></p><p> </section></p><p> </div></p><p></form></p><p></header>[/CODE]</p></blockquote><p></p>
[QUOTE="Detox, post: 451272, member: 596"] Hello! I'm trying to edit BrainCMS Housekeeping... I got to point where I have it like HoloCMS, But I can't seem to get it to POST into the database. ([URL='http://i65.tinypic.com/2zqdlsl.png']ScreenShot[/URL]) Original Code [CODE=php]<aside class="right-side"> <section class="content"> <div class="row"> <div class="col-md-12"> <section class="panel"> <header class="panel-heading"> Create a News Article<br> <form name="mygallery" action="" method="POST"> </header> <div class="panel-body"> <?php admin::PostNews(); ?> <div class="form-group"> <label class="col-sm-2 col-sm-2 control-label">Title</label> <div class="col-sm-10"> <input type="text" value="<?php echo $_SESSION['title']; ?>" name="title"class="form-control"> </div> </div><br><br> <div class="form-group"> <label class="col-sm-2 col-sm-2 control-label">Short Story</label> <div class="col-sm-10"> <input type="text" value="<?php echo $_SESSION['slogan']; ?>" name="slogan"class="form-control"> </div> </div><br><br> <div class="form-group"> <label class="col-sm-2 col-sm-2 control-label">Image</label> <div class="col-sm-10"> <?php echo '<select onChange="showimage()" class="form-control" name="topstory" style=" width: 100%;font-size: 14px;"'; if ($handle = opendir(''.$_SERVER['DOCUMENT_ROOT'].'/adminpan/img/newsimages')) { while (false !== ($file = readdir($handle))) { echo''; if ($file == '.' || $file == '..') { continue; } echo '<option name="topstory" data-image="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '" value="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '"'; if (isset($_POST['topstory']) && $_POST['topstory'] == $file) { echo ' selected'; } echo '>' . $file . '</option>'; } } echo '</select>'; ?> <br> <style> .imagebox { width: auto; background-repeat: repeat-y; border-radius: 6px; float: left; margin-right: 0.72pc; margin-bottom: 10px; webkit-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important; -moz-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important; box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important; } </style> <div class="imagebox"> <img style="border-radius: 6px;"src="<?= $config['hotelUrl'];?>/adminpan/img/newsimages/choose.gif" name="topstory" border=0> </div> <br><br> </div> </div> <br><br> <script src="<?= $config['hotelUrl'];?>/adminpan/js/ckeditor/ckeditor.js"></script> <div class="form-group"> <label class="col-sm-2 col-sm-2 control-label">Long Story</label> <div class="col-sm-10"> <textarea id="editor1" name="news" rows="15" cols="80"><?php echo $_SESSION['news']; ?></textarea> </div> </div><br><br> <button style="width: 130px; float: right; margin-right: 14px;" name="postnews" type="submit" class="btn btn-success">Post the Article</button> </div> </section> </div> </form> </header>[/CODE] My Code: [CODE=php]<table cellpadding='0' cellspacing='8' width='100%' id='tablewrap'> <tr> <td width='22%' valign='top' id='leftblock'> <div> <!-- LEFT CONTEXT SENSITIVE MENU --> <?php include_once('includes/sitenavi.php'); ?> <!-- / LEFT CONTEXT SENSITIVE MENU --> </div> </td> <td width='78%' valign='top' id='rightblock'> <div><!-- RIGHT CONTENT BLOCK --> <header class='tableheaderalt'>Compose News Article <form name="mygallery" action="" method="POST"> </header> <div class='tableborder'> <?php admin::PostNews(); ?> <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Title</b><div class='graytext'>The full title of your article.</div></td> <td class='tablerow2' width='60%' valign='middle'><input type='text' name='title' value="<?php echo $_SESSION['title']; ?>" size='30' class='textinput'></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Short Story</b><div class='graytext'>A small introduction to the article.<br />HTML is not allowed here.</div></td> <td class='tablerow2' width='60%' valign='middle'><textarea name='short_story' cols='60' rows='5' wrap='soft' id='sub_desc' class='multitext'><?php echo $_SESSION['slogan']; ?></textarea></td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Topstory Image</b><div class='graytext'>The URL to the topstory image.</div></td> <td class='tablerow2' width='60%' valign='middle'> <?php echo '<center><select onChange="showimage()" class="form-control" name="topstory" style=" width: 100%;font-size: 14px;"'; if ($handle = opendir(''.$_SERVER['DOCUMENT_ROOT'].'/adminpan/img/newsimages')) { while (false !== ($file = readdir($handle))) { echo''; if ($file == '.' || $file == '..') { continue; } echo '<option name="topstory" data-image="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '" value="'.$config['hotelUrl'].'/adminpan/img/newsimages/' . $file . '"'; if (isset($_POST['topstory']) && $_POST['topstory'] == $file) { echo ' selected'; } echo '>' . $file . '</option>'; } } echo '</select>'; ?> <br> <style> .imagebox { width: auto; background-repeat: repeat-y; border-radius: 6px; float: left; margin-right: 0.72pc; margin-bottom: 10px; webkit-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important; -moz-box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important; box-shadow: 0 3px rgba(0,0,0,.17),inset 0px 0px 0px 1px rgba(0,0,0,0.31),inset 0 0 0 2px rgba(255,255,255,0.44)!important; } </style> <div class="imagebox"> <img style="border-radius: 6px;"src="<?= $config['hotelUrl'];?>/adminpan/img/newsimages/choose.gif" name="topstory" border=0> </div> <br><br> </div> </div> </td> </tr> <tr> <td class='tablerow1' width='40%' valign='middle'><b>Story</b><div class='graytext'>The actual news message.<br />HTML is allowed here.</div></td> <td class='tablerow2' width='60%' valign='middle'> <script src="<?= $config['hotelUrl'];?>/adminpan/js/ckeditor/ckeditor.js"></script> <div class="form-group"> <div class="col-sm-10"> <textarea id="editor1" name="news" rows="15" cols="80"><?php echo $_SESSION['news']; ?></textarea> </div> </div><br><br> </td> </tr> <tr> <tr> <td align='center' class='tablesubheader' colspan='2' > <button style="" name="postnews" type="submit" class="realbutton">Post the Article</button> </td></tr> </tr> </div> </section> </div> </form> </header>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Brain Housekeeping Edit
Top