[Release] RevCMS habbo theme edit! & RevCMS Housekeeping

Status
Not open for further replies.

Data

Posting Freak
May 19, 2013
593
97
Hey Devbest!

I was bored, so I decided to do a nice Habbo Theme edit.
What have I done?
I've tried to make it abit easier to use.
Setup a sidebar, in /includes/side.php with stuff like Quick Navigation on the side.
Made it so when you reload the page the 'Did you know?' changes, you can also set them in the config for people who don't like changing stuff.
(Incase you want to edit it go to /includes/dyk.php)
Put a shine as the topbg, as some people like the shine.

Build 2 Changelog
New News Slider.
New Housekeeping button
On staff page you cannot do much of the main features while not be logged in.
You get redirected back to index page when you go to shop, client, community page if you don't have a active session.
Gave staff figures a new action(on staff page).
Changed index, register.
Added a header.php.
Added a {online_text} to set users online text.


Build 2.5.0 Changelog
- New ASE, BootASE(Credits to me, grapefruit, BootStrap)
- New BG
- On staff page, if there isn't a active session you can't see 'enter {hotelname}'. And 'Signout' becomes 'Register'.
- Fixed HouseKeeping button.
Build 3 Changelog
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.

Build 1
Download Mirrors:
- 1
- 2
- Use Build 2, it's better.

Build 2
Download Mirrors:
- 1
- 2

-- Not recommended, due to bugs.. --
Build 2.0.1
Download Mirrors:
- 1
-2
- 2.5.0 Is recommended.
If you mirror it tell me and i'll add it to main thread.

Build 2.5.0
- 1 Recommended Build there was a bug making everyone have HK, fixed!

Build 3


Please install helicon ape to get /community/staff to work. ( )

Build 2 Screenies:
VVMgeLo.png

gQHFIuh.png

ENJov3t.png

Hot Campaigns SQL:
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for site_hotcampaigns
-- ----------------------------
DROP TABLE IF EXISTS `site_hotcampaigns`;
CREATE TABLE `site_hotcampaigns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`enabled` enum('0','1') NOT NULL DEFAULT '1',
`image_url` text NOT NULL,
`caption` text NOT NULL,
`desc` text NOT NULL,
`url` text NOT NULL,
`order_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

Credits:
Hejula -
RevCMS habbo theme
Kryptos - RevCMS
Bow - Cleaning it up.
Me - Doing a few edits.

If you want anything added, or done just post here.

RevCMS Housekeeping Release
How to setup the HK?
- Add the 'hk.php' file to app/tpl/skins/habbo.
- Add the admin folder to app/tpl/skins/habbo.
------------- Optional for hotel alert to work -------------
- If you use IIS go to IIS Manager > Sites -> Your site(If you haven't made changes it will be Default) -> PHP manager -> Scroll down ->
enable or disable an extension -> php_sockets.dll -> right click -> Enable.
-> Restart IIS.
-> Now go to app/tpl/skins/habbo/admin/settings.php and change the $ip = "127.0.0.1"; variable to $ip = "YOUR SERVER IP";
IF YOUR MUS PORT ISN'T 30001 CHANGE IT TO WHATEVER IT IS.
------------------------------------------------------------
-> Now run the SQL in the winrar file.
-> Go to app/class.core.php and add to the top(near the getOnline) function.
-> Then go to class.template.php go to '$this->setParams('online', $core->getOnline());' and add this under .
-> Now you can go to YourURL/hk.
-> Rank 6+ allowed by default.

RevCMS HK
What should I do if I find a bug? Feel free to post it here, then I can fix it for everyone else.
What should I do if I find a exploit? PM me it and will get it fixed.

Before people ask I done most of this myself but some of it is using functions from another HK(GrapeASE, done it about a week ago will redo it in a different way soon - Edit user page.)

Download:Mirror 1 -
Mirror 2 -

Here is the user of the week script.
Code:
<div class="habblet-container ">
<div class="cbb clearfix settings ">
<?php

$q = mysql_query("SELECT * FROM settings WHERE id = 1");
$newq = mysql_fetch_assoc($q);

$q = mysql_query("SELECT * FROM users WHERE username = '" . $newq['uotw'] . "'");
$lol = mysql_fetch_assoc($q);
?>
<h2 class="title">User of the week</h2>
<div style="padding:5px">
<img src = "http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $lol['look']; ?>">
<div style = "float:right;padding:12px;margin-right:-15px;width:200px;">
<span>Username: <?php echo $lol['username']; ?></span></br>
<span>Motto: <?php echo $lol['motto']; ?></span></br>
<span>Last Online: <?php echo date("l jS \of F",$m['last_online']); ?></span>
</div>
</div>
</div>
</div>

Forgot to do SQLs in download.
Code:
-- ----------------------------
-- Table structure for `hk_logs`
-- ----------------------------
DROP TABLE IF EXISTS `hk_logs`;
CREATE TABLE `hk_logs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(255) NOT NULL,
`time` varchar(255) NOT NULL,
`who_done` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `settings`
-- ----------------------------
DROP TABLE IF EXISTS `settings`;
CREATE TABLE `settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uotw` varchar(255) DEFAULT NULL,
`hk_alert` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of settings
-- ----------------------------
INSERT INTO `settings` VALUES ('1', 'Test', 'Fkng awesome');
 
Last edited:

Jerry

not rly active lol
Jul 8, 2013
1,956
522
I'll rate as a 7/10 good release though ;)

Sent from my iPhone using Tapatalk :)
 

Data

Posting Freak
May 19, 2013
593
97
Thanks for your replies, I will probably update it later.
 

Jerry

not rly active lol
Jul 8, 2013
1,956
522
You could add some Add-ons and change some images and stuff like that..

Sent from my iPhone using Tapatalk :)
 

Giovanni1

Member
Mar 30, 2012
54
7
Looks alright for people who would like to start off with a new hotel and add more to it, 7/10 could add more though.
 

Data

Posting Freak
May 19, 2013
593
97
I thought I would change the type of news slider, should I keep the old one or use this?
uLPIVEJ.png
 

Data

Posting Freak
May 19, 2013
593
97
Couldn't find habbos news finder anywhere, I could but you had to manually add all the images and links in the me.php.
Been working on it for half a hour or so and I done this:
290j.png


Update!
Now when your not logged in and you visit the staff page it says 'Register Today!' instead of {username}, it doesn't let you see the quick links if you don't have a running session, fixed it from repeating the 'Did you know?' on the staff page.
2qczaKI.png

Also when you go to pages such as client, community & shop it will redirect you straight back to the index page.
4whl3LL.png


Removed the 'housekeeping' tab, and put it next to the 'Enter Habbo Hotel'.
Added a /includes/header.php, considering weather or not to remove includes/dyk.php and put its content in the header.php.

Going to start work on the housekeeping tomorrow, what features are required?

I will put a download link up later, tell me what I should add and I will try to get it done.
 
Last edited:

Data

Posting Freak
May 19, 2013
593
97
Done some work on it, re-coded the 'Housekeeping' Button due to bugs when you go to /community/staff, made it so when your logged out you can't see Housekeeping or 'Enter {hotelname}!'

In the config there is a {online_text} in the config, so you get to choose what it says around {online} people online, or whatever you set it.
Considering weather I should put the navigation in one document, so you don't have to so it in every single file.

Update!
Putting download link up at 7pm GMT.
 
Last edited:

Data

Posting Freak
May 19, 2013
593
97
Uploaded build 2, build 3 will have a few fixes and a updated hk. Considering weather to use bootstrap as a base template.

Noticed Web.Config was broken, update yours with this.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1">
<match url="^(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 2">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 3">
<match url="^(.*)\.htm$" />
<action type="Rewrite" url="{R:1}.php" />
</rule>
<rule name="Imported Rule 4">
<match url="^(|/)$" ignoreCase="false" />
<action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 6">
<match url="^(community/staff)$" ignoreCase="false" />
<action type="Rewrite" url="staff" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Use this if your news is having issues.
INSERT INTO `cms_news` (`id`, `title`, `shortstory`, `longstory`, `published`, `image`, `campaign`, `campaignimg`, `author`) VALUES ('1', 'News Filler', 'This will fill the news.', 'This will fill the news.', '0', 'BR_promobattlebanzai.png', '0', '', '1');
INSERT INTO `cms_news` (`id`, `title`, `shortstory`, `longstory`, `published`, `image`, `campaign`, `campaignimg`, `author`) VALUES ('2', 'News Filler', 'This will fill the news.', 'This will fill the news.', '0', 'easter_promoart2.png', '0', '', '1');
 
Last edited:
Status
Not open for further replies.

Users who are viewing this thread

Top