Thanks
This is a discussion on RevCMS hot campaigns within the Habbo Releases forums, part of the Habbo Hotel category; Hello, I decided to make my own edit of RevCMS! And I want to share some stuff I've added to ...

Hello, I decided to make my own edit of RevCMS! And I want to share some stuff I've added to my edit, with you guys!
Yes, I am using the Habbo layout/template by Hejula!
And I coded a simple Hot campaigns just like UberCMS and Habbo!
SQL:
Add to Me.php:PHP Code:-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 12, 2012 at 05:45 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `rev`
--
-- --------------------------------------------------------
--
-- Table structure for table `site_hotcampaigns`
--
CREATE TABLE IF NOT EXISTS `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 DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `site_hotcampaigns`
--
INSERT INTO `site_hotcampaigns` (`id`, `enabled`, `image_url`, `caption`, `desc`, `url`, `order_id`) VALUES
(1, '1', '../r63/c_images/hot_campaign_images_hq/hot_campaign_vip.gif', 'Test', 'This is only a test for RevCMS campaigns, rofl!', 'http://myhostr.com', 1),
(2, '1', '../r63/c_images/hot_campaign_images_hq/hotcampaign_thumb_FB.gif', 'Test 2', 'rofl, this is another test :P', 'http://myhostr.com', 2);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Under:PHP Code:<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">What's going on?</h2>
<div style="padding:5px">
<?php
$getItems = mysql_query("SELECT * FROM site_hotcampaigns WHERE enabled = '1' ORDER BY order_id ASC");
$evenOdd = 'odd';
while ($item = mysql_fetch_assoc($getItems))
{
if ($evenOdd == 'odd')
{
$evenOdd = 'even';
}
else
{
$evenOdd = 'odd';
}
echo '<li class="' . $evenOdd . '">
<br>
<div class="hotcampaign-container">
<a href="' . $item['url'] . '">
<img src="' . $item['image_url'] . '" align="left" alt="' . $item['caption'] . '" /></a>
<center><b>' . $item['caption'] . '</b>
<p>' . $item['desc'] . '</p>
<center><p class="link"><a href="' . $item['url'] . '">Go there »</a></p></center>
</div>
</li> ';
}
?>
</div> </div> </div>
Image:PHP Code:<script type="text/javascript">
HabboView.add(function() {
L10N.put("personal_info.motto_editor.spamming", "Don\'t spam me, bro!");
PersonalInfo.init("");
});
</script>
</div>
OLD ******
New: ------
I don't know if this was already release, but I did code this, based of UberCMS Hot Campaigns!
What next?
-----------
I might code a little tool that will allow a user to receive a random rare, and if they have already received it, they won't be able to claim another. :p
Last edited by Feedback; 12-01-12 at 07:53 AM.
Thanks
Thanks for this release :) I will use this.
No problem mate :)
Wrongly CSS coded. However, Good for people that don't know how to code.
Aha, I also had this coded :)
I would agree with Dj but it's nice for beginners.
Good release, but maybe you should think about finishing the cms and releasing that?
Nice job! I just added this to my website :)
Thanks for this, Will be used =)
A fantastic release, thanks for sharing this dude - very useful!
I dont quite understand what this release is...is it just campaign edits or is there more to it? I may use this if I find it usefull ;o