Here you go;There is no news2.php can't make an article :/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>BootASE - Create a article!</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Add custom CSS here -->
<link href="bootstrap/css/sb-admin.css" rel="stylesheet">
<link rel="stylesheet" href="bootstrap/font-awesome/css/font-awesome.min.css">
<!-- Page Specific CSS -->
<link rel="stylesheet" href="You must be registered for see links">
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="dash">BootASE</a>
</div>
<!-- Navigation -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
<li><a href="dash"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li><a href="edit"><i class="fa fa-file"></i> Edit a user!</a></li>
<li class="active"><a href="news"><i class="fa fa-font"></i> Make a news article!</a></li>
<li><a href="delnews"><i class="fa fa-font"></i> Delete a news article!</a></li>
<li><a href="banlist"><i class="fa fa-desktop"></i> BanList</a></li>
<li><a href="unban"><i class="fa fa-wrench"></i> Unban a user!</a></li>
<li><a href="viewip"><i class="fa fa-wrench"></i> View a users IP!</a></li>
</ul>
</li>
</ul>
<?php include ("includes/header.php"); ?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1>Create a news article!</h1>
<ol class="breadcrumb">
<li class="active"><i class="fa fa-dashboard"></i> What are <b>you</b> going to write about?</li>
</ol>
<div class="col-lg-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-clock-o"></i> Start typing your article!</h3>
</div>
<div class="panel-body">
<?php
if(!isset($_SESSION["longstory"]))
{
header("Location: ".$_CONFIG['hotel']['url']."/ase/news");
exit;
}
if(isset($_POST["proceed"]))
{
$author = mysql_result(mysql_query("SELECT username FROM users WHERE id = '".$_SESSION['user']['id']."' LIMIT 1"), 0);
mysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());
unset($_SESSION["title"], $_SESSION["shortstory"], $_SESSION["longstory"]);
header("Location: ".$_CONFIG['hotel']['url']."/ase/");
exit;
}
echo '<center><b>It\'s time to choose the image for your story. Choose one from the drop down list and click "Check Image"';
echo '<form method="post">';
echo '<br />';
echo '<select name="topstory" id="topstory" style="font-size: 14px;"';
if ($handle = opendir('web_promo'))
{
while (false !== ($file = readdir($handle)))
{
if ($file == '.' || $file == '..')
{
continue;
}
echo '<option value="' . $file . '"';
if (isset($_POST['topstory']) && $_POST['topstory'] == $file)
{
echo ' selected';
}
echo '>' . $file . '</option>';
}
}
echo '</select>';
if(isset($_POST["check"]))
{
echo '<br /> <br /> <input type="submit" value=" Check image " name="check" /> <br /><br />';
echo '<font size="3">Topstory Images<br /></font><img src="web_promo/' . $_POST["topstory"] . '" align="right />';
echo '</center> <align="right"> <br /> <br /> <input type="submit" value=" Proceed (use image) " name="proceed" /> <br />';
echo '</form>';
}
else
{
echo '<br /> <br /> <input type="submit" value=" Check image " name="check" /> <br />';
echo "</form>";
}
?>
</div>
</div>
<?php include ("includes/footer.php"); ?>
<!-- JavaScript -->
<script src="bootstrap/js/jquery-1.10.2.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<!-- Page Plugins -->
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="You must be registered for see links"></script>
<script src="bootstrap//morris/chart-data-morris.js"></script>
<script src="bootstrap/js/tablesorter/jquery.tablesorter.js"></script>
<script src="bootstrap/js/tablesorter/tables.js"></script>
</body>
</html>
Put this in the app/tpl/skins/habbo/me.php (were the css links are)My "home" page isnt right. (not like yours anyway.) Did I miss something?
<link rel="stylesheet" href="You must be registered for see links" type="text/css" />
<script src="You must be registered for see links" type="text/javascript"></script>
Sorry, could you be more specific? Pretty new at this.Put this in the app/tpl/skins/habbo/me.php (were the css links are)
I copied and posted them below "<title>{hotelName} - Home</title>". Is this not the place?It seems like your telling me you can't add a css link at the top of a page?
Same I replaced the Me.php only thing is I don't have the big news slider anymore.I just replaced it with another me.php file and its perfect look at my siteYou must be registered for see linksthats this cms.
Changelog;
Community Page redesigned.
Housekeeping Redesigned
Habbo.Com's CSS (People have had issues with this)
A few template updates.
Fixed 'Read article' button.
Redone the way the footer is done.
Added Session/Kieran's homes.
News Comments
In config it's default is set to 'I am new to (yourhotelname)'.
You no longer have to update much of the dyk area.
I have added a radio box but it is commented out, you can remove the <!-- surrounding it --> to use it.
Guessing we run news comments sql?I have released another version on another forum, here it is for you!
Build 3 Changelog
Build 3You must be registered for see links- 1 download link