Hey! I love this CMS!
But how can i write a new news article without the housekeeping? :o
Printable View
Hey! I love this CMS!
But how can i write a new news article without the housekeeping? :o
You can either develop some kind of tool/site to do that interacting with your SQL db or if you are like me, basic to no knowledge of that kind of stuff, you can make new entries at the cms_news table manually.
Just add a new entry and fill the title, image (I think the image is taken from the web_promo directory), the shortstory, longstory (remember you can use HTML to make things prettier), author (the shown name), date and published (this value is a timestamp use https://www.epochconverter.com/ if you want to easily convert date from/to timestamp) and then you're all set.
The id should auto increment by itself, I'm not quite sure about the author_id, type, roomid and updated fields tho, maybe they have some use but so far it should be good enough for a start xD
I'm having a problem setting this up together with Arcturus.
The page is just completely blank. I tried enabling Error Reporting for the index.php but without success.
I have configured the config.php accordingly and also the swfs.
I had a problem like this even though I configured everything correctly. Turned out to be my browser content settings where I had to allow access for Flash Player so just check that to see what happens.
Client stuck at 76%
looks nice! You got a web.config file?
Is there anyway to disable Recaptcha, facebook and other 3P services?
- Trying to test on localhost and it really gives off a lot of errors.
- Also the client page is redirecting to the gordon directory after getting to 76%
- Currently can't register properly with it on a LAN due to all of the scripts that require a WAN IP/Domain to work.
Some common fixes for others I found googling:
1. As for everyone else the white page issue is probably caused by your PHP version. I had 7.2 installed (apache/php on Ubuntu 16.04) and after switching to php5.6 I was able to load the cms just fine.
2. If your getting an /index not found or whatever -> Make sure you copied the .htaccess file into the root web folder (/var/www/html for apache2 on linux | htdoc folder for xampp on windows), and enabled mod_rewrite for apache. (Will not work for IIS). Also make sure that AllowOverride All is pointed to your root web folder as well in your apache2.conf or httpd.conf to allow the .htaccess file to work.
3. If you are getting a permission error on unix -> make sure that your files have the proper permissions (and fix file/folder perms if nessecary).
4. If your like me and can't use the register - go into your SQL editor of choice and Add a record to your user's table with the username called "Admin" and let the system use default values. Then run a query like so:
to generate a password for the account. You can change "test123" to whatever you want, but for local purposes that's what I used.Code:UPDATE `users` SET `password` = MD5("test123") WHERE `username` = 'Admin';
**UPDATES**
Hello,
It's been awhile since I've posted updates on this thread!
Replaced the whole checktheban.php with
Credits goes to @billsonnn for the help!PHP Code:<?php
$userID = (isset($_SESSION['user']['id'])) ? $_SESSION['user']['id'] : 0;
$ip = (isset($_SERVER["HTTP_CF_CONNECTING_IP"]) && !empty($_SERVER["HTTP_CF_CONNECTING_IP"])) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];
$getBan = mysql_query("SELECT * FROM bans WHERE user_id = '{$userID}' OR ip = '{$ip}' ORDER BY ban_expire DESC LIMIT 1");
while($ban = mysql_fetch_array($getBan))
{
if($ban['ban_expire'] >= time())
{
if($ban['type'] == 'account') die(header('Location: /banned'));
die(header('Location: /ipbanned'));
}
}
?>
and created just very Generic Banned Page. Create/Replace banned.php
Image:PHP Code:<?php
session_destroy();
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{hotelname} Hotel - Banned</title>
<script>
var andSoItBegins = (new Date()).getTime();
var habboPageInitQueue = [];
var habboStaticFilePath = "ttps://habboo-a.akamaihd.net/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/2303/web-gallery";
</script>
<link rel="shortcut icon" href="https://habboo-a.akamaihd.net/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/2543/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Condensed">
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/v3_landing.css" type="text/css" />
<script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/v3_landing_top.js" type="text/javascript"></script>
<meta name="description" content="Check into the world's largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more...">
<meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer">
<meta name="apple-itunes-app" content="app-id=794866182">
<script src="//cdn.optimizely.com/js/13389159.js"></script>
<meta name="build" content="63-BUILD3038 - 14.05.2014 10:13 - com">
</head>
<body >
<div id="overlay"></div>
<header >
<div id="border-left"></div>
<div id="border-right"></div>
<div id="login-form-container">
<a href="index.php" id="habbo-logo"></a>
</div>
<div id="top-bar-triangle"></div>
<div id="top-bar-triangle-border"></div>
</header>
<div id="sail" style="margin-top:-1350px;margin-left:-330px;"></div>
<div id="content">
<ul>
<li id="home-anchor">
<div id="welcome" style="margin-top:25px;margin-left:210px;" >
</span></a>
<h1>You have been banned from {hotelname}.</h1>
<?php
//Something Goes here to get the banned details
?>
<?php session_destroy(); ?>
<a href="index" id="logout-ok" class="new-button fill ok"><b>OK</b><i></i></a>
</div>
</div>
</div>
</div>
</div>
<footer>
<div id="footer-content">
<div id="footer"><a href="#">Customer Support</a> / <a href="#">Parents</a> / <a href="#" target="_new">Terms of Use & Privacy Policy</a> / <a href="#" target="_new">Infringements</a> / <a href="#" target="_new">{hotelname} Way</a> / <a href="#">Safety</a> / <a href="#"target="_blank">For Advertisers</a></div>
<div id="copyright">© 2004 - <?php echo date("Y"); ?> {hotelname}. {hotelname} is not affiliated with the Sulake corporation. </div>
</div>
</footer>
http://i66.tinypic.com/335h92x.jpg
Hi, thanks for the release.
If I were to remove everything regarding the permissions table from the SQL query you posted, in order to keep my permissions as they are, is there anything else I would need to do to prevent problems?
A tip for anyone struggling with the client not connecting to the server, aka "stuck at 76%"
Edit the client.php found in app\tpl\skins\Habbo instead of the one found in root folder.
And a question for anyone who can answer it:
What is the format of the date in cms_news? It makes no sense to me
Client is black.
Trying to run it in localhost. I changed the paths in config.php, client.php (both in root folder and haboo style folder).
What could be the problem?
Thanks in advance! :)