-
[HABBO] Hot Campaigns
Image for the hot campaignshttp://img200.imageshack.us/img200/9347/nowino.png
[Thanks to Hubbo-Hotel for the image!]
The code for the campaigns, make sure you add it under the last login and etc...
[PHP] <div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<li class="even">
<div class="hotcampaign-container">
<a href="http://www.habbo.com/articles/1004-buy-habbo-prepaid-cards-to-get-a-free-inflatable-chair?utm_source=site&utm_medium=partner%2Bbutton&utm_campaign=maypromo_partnerbutton"><img src="http://images.habbohotel.com/c_images/hot_campaign_images_us/campaignButton_genericPromo_1.gif" align="left" alt="" /></a>
<h3>Last Chance to buy Habbo Prepaid Cards and get a FREE Inflatable Chair</h3>
<p>Don't miss this last opportunity to get your hands on some valuable furni!</p>
<p class="link"><a href="http://www.habbo.com/articles/1004-buy-habbo-prepaid-cards-to-get-a-free-inflatable-chair?utm_source=site&utm_medium=partner%2Bbutton&utm_campaign=maypromo_partnerbutton">Go there
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
You need style.css, too.
But nice.
Can you make, that you can change it via Housekeeping, too ?
I tested it, but it doesn
-
Re: [HABBO] Hot Campaigns
[quote=Hazzbo@Ragezone;5022411]You need style.css, too.
But nice.
Can you make, that you can change it via Housekeeping, too ?
I tested it, but it doesn
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
rickymenier
I'll look into it ;]
Ok, great :)
-
Re: [HABBO] Hot Campaigns
I know we need style.css as well, I am getting that also.
I'll add that as a attachment and will look into the housekeeping.
http://images.habbohotel.com/habbowe...yles/style.css
Just click the link above, open notepad, copy + paste and save as style.css.
- Now working on the housekeeping, which is basically the same as the 'credits' PHP setup.
PHP Code:
<?php echo HoloText(getContent('credits1-heading'), true); ?>
something similar like that, then you just add something like hotcampaign1-heading or whatever..
Then you add it into the housekeeping page, with the rest of the manual edited items, (e.g. credits, and etc..) Basically the cms_content.
But, I'll work on it.
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
AresCJ
I know we need style.css as well, I am getting that also.
I'll add that as a attachment and will look into the housekeeping.
http://images.habbohotel.com/habbowe...yles/style.css
Just click the link above, open notepad, copy + paste and save as style.css.
- Now working on the housekeeping, which is basically the same as the 'credits' PHP setup.
PHP Code:
<?php echo HoloText(getContent('credits1-heading'), true); ?>
something similar like that, then you just add something like hotcampaign1-heading or whatever..
Then you add it into the housekeeping page, with the rest of the manual edited items, (e.g. credits, and etc..) Basically the cms_content.
But, I'll work on it.
I'm working on housekeeping myself :P
almost done with coding
about to go and test.
yours is different from mine but oh well :P
goodluck with it ;]
-
Re: [HABBO] Hot Campaigns
It would be great, if you can make it like News.
So, you can add Picture, Link, text..... like News.
-
Re: [HABBO] Hot Campaigns
Yeah, thanks. I'll post on how to do it, or I might just do it for you all.
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
Hazzbo@Ragezone
It would be great, if you can make it like News.
So, you can add Picture, Link, text..... like News.
That's how I'm making mine lmao
banner
title
text
url
exactly like that :P
-
Re: [HABBO] Hot Campaigns
Yeah, that's a superb idea !
- what I was doing, was where you know where you edit the credits.php (credits1-header) and etc.. I was going to add it there, so it won't be no need for another page, but ok.
-
Re: [HABBO] Hot Campaigns
I'm like stuck one this code
[PHP] <div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<li class="even">
<div class="hotcampaign-container">
<a href="http://www.habbo.com/articles/1004-buy-habbo-prepaid-cards-to-get-a-free-inflatable-chair?utm_source=site&utm_medium=partner%2Bbutton&utm_campaign=maypromo_partnerbutton"><img src="http://images.habbohotel.com/c_images/hot_campaign_images_us/campaignButton_genericPromo_1.gif" align="left" alt="" /></a>
<h3>Last Chance to buy Habbo Prepaid Cards and get a FREE Inflatable Chair</h3>
<p>Don't miss this last opportunity to get your hands on some valuable furni!</p>
<p class="link"><a href="http://www.habbo.com/articles/1004-buy-habbo-prepaid-cards-to-get-a-free-inflatable-chair?utm_source=site&utm_medium=partner%2Bbutton&utm_campaign=maypromo_partnerbutton">Go there
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
AresCJ
Yeah, that's a superb idea !
- what I was doing, was where you know where you edit the credits.php (credits1-header) and etc.. I was going to add it there, so it won't be no need for another page, but ok.
Add it into the cms_content DB, and then make a name for it. like ('camp1-header')..... :P
But this is what I am doing:::: LOOK BELOW!
-
PHP Code:
<select name='category' class='dropdown'>
<option value='1' <?php if($catId == "1"){ echo "selected='selected'"; } ?>>General Options</option>
<option value='2' <?php if($catId == "2"){ echo "selected='selected'"; } ?>>Staff Module</option>
<option value='3' <?php if($catId == "3"){ echo "selected='selected'"; } ?>>Credits Page</option>
<option value='4' <?php if($catId == "4"){ echo "selected='selected'"; } ?>>Discussion Board Module</option>
<option value='5' <?php if($catId == "5"){ echo "selected='selected'"; } ?>>Newsletter</option>
<option value='6' <?php if($catId == "6"){ echo "selected='selected'"; } ?>>Hot Campaign Edit</option>
</select>
PHP Code:
INSERT INTO `cms_content` VALUES ('campaign1-heading', 'sdfsadf!', 'asfsf', 'The title (heading) of Credit Content Box 2.', '1', '3');
INSERT INTO `cms_content` VALUES ('campaign2', 'You can find the staff members all over the hotel -- in the public rooms, their own rooms, or that dark little corner in your room. But how can you call them if you actually need them!? Easy. If it\'s urgent, use the Call for Help system ingame by using the blue questionmark in the right bottom of your screen. If it isn\'t urgent, use the Help Tool on the website.', 'Staff Content Box 1', 'The text within a content box on the staff page (if enabled).', '1', '2');
Then that's it.
BUT FOR YOURS, you do the same for the cms_content, and then you just do this. They will just have to edit the images differently, I'll check that out later though.. :P
[PHP] <div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<li class="even">
<div class="hotcampaign-container">
<a href="http://www.habbo.com/articles/1004-buy-habbo-prepaid-cards-to-get-a-free-inflatable-chair?utm_source=site&utm_medium=partner%2Bbutton&utm_campaign=maypromo_partnerbutton"><img src="http://images.habbohotel.com/c_images/hot_campaign_images_us/campaignButton_genericPromo_1.gif" align="left" alt="" /></a>
<h3><?php echo HoloText(getContent('campaign3'), true); ?></h3>
<p><?php echo HoloText(getContent('campaign4'), true); ?></p>
<p class="link"><a href="http://www.habbo.com/articles/1004-buy-habbo-prepaid-cards-to-get-a-free-inflatable-chair?utm_source=site&utm_medium=partner%2Bbutton&utm_campaign=maypromo_partnerbutton">Go there
-
Re: [HABBO] Hot Campaigns
Isnt this already released?
Still good,
Nice job.
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
Retro!
Isnt this already released?
Still good,
Nice job.
No, this was never released.
-
Re: [HABBO] Hot Campaigns
First hotel to have it was epichotel :P, though iJames didint want to release it
-
Re: [HABBO] Hot Campaigns
Cool, but James told me he didn't work for you guys anymore... and came to Echo.. but.. Uh...
Ontopic situation.
I doubt he did all the MySQL and etc..
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
AresCJ
Cool, but James told me he didn't work for you guys anymore... and came to Echo.. but.. Uh...
Ontopic situation.
I doubt he did all the MySQL and etc..
Nah he came back :P
and yes he did all he SQL :]
-
Re: [HABBO] Hot Campaigns
Oh, well I am doing the SQL too.
- Update coming in 30-38 minutes, depending on the "improvision" of my time and patience.
-
Re: [HABBO] Hot Campaigns
I thought habbzhotel had it first?
Never heard of epichotel,
-
1 Attachment(s)
Re: [HABBO] Hot Campaigns
Well, Epic and Habbz both have coders who get the updates for them..
Anyways, releasing a testing sample of the Hot Campaigns in MySQL format.
EDIT:
Here's a testing sample of it in MySQL, please let me know if it works or not.
-
Re: [HABBO] Hot Campaigns
erro:
INSERT INTO `cms_content` VALUES ('campaign3', 'Don't miss this last opportunity to get your hands on some valuable furni!', '1', '3');
-
Re: [HABBO] Hot Campaigns
It takes more then some HTML code, mine is fully read from the database, and generated ect.. :P
-
Re: [HABBO] Hot Campaigns
you edit housekeeping??
sorry my:Brazilien
-
Re: [HABBO] Hot Campaigns
The housekeeping doesnt work.You click Hot Randoms Edit then Go!Then it says saved succesfully
-
Re: [HABBO] Hot Campaigns
Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
-
Re: [HABBO] Hot Campaigns
[quote=handyandy160;5022844]Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
-
Re: [HABBO] Hot Campaigns
[quote=handyandy160;5022844]Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
-
Re: [HABBO] Hot Campaigns
Yes, I think thats the best way to do it Ricky.
No problem on the explaination
@Cornelius, do whatever you like :P
-
Re: [HABBO] Hot Campaigns
wait instead of us doing all this copy paste and upload and u make the files for us and then like release it and we upload it to the rite spot?
-
Re: [HABBO] Hot Campaigns
this looks great hope you can finish the Housekeeping way soon.
Here i leave the style.css for it:
Code:
/* Hot campaigns */
#hotcampaigns-habblet-list-container { padding: 5px 5px 0 5px; }
#hotcampaigns-habblet-list-container p { padding: 5px; }
#hotcampaigns-habblet-list { list-style-type: none; margin: 0; padding: 0; }
#hotcampaigns-habblet-list li { float: left; clear: both; width: 100%; }
#hotcampaigns-habblet-list li div.hotcampaign-container { padding: 5px 10px; }
#hotcampaigns-habblet-list li.even:hover { background-color: #dceafa; }
#hotcampaigns-habblet-list li.odd:hover { background-color: #f1f8ff; }
#hotcampaigns-habblet-list li p.link { margin: 0; padding: 0; text-align: right; }
#hotcampaigns-habblet-list li p.link a { color:#399001; }
#hotcampaigns-habblet-list li p { margin: 0; padding: 0; }
#hotcampaigns-habblet-list li h3 { font-size: 13px; margin: 5px 0 0 0; padding: 0; }
#hotcampaigns-habblet-list li img { margin: 5px 5px 5px 0; }
Just add it to your style.css at web-gallery/v2/styles/style.css
-
Re: [HABBO] Hot Campaigns
[quote=handyandy160;5022844]Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
bartskinu
What's the sql by this
My sql won't work
You need to make it yourself :P
I'm currently working on one
but won't be able to release unless I get a hotel to test it with...
-
Re: [HABBO] Hot Campaigns
You rly don't need a beta lulz, It's a simple bit of code, I done it pretty much the same was as Andy!
It's a simple php while loop, I've got to say, If you can't code basic php, you should be releasing a script like this :)
Then, all you have to do for the housekeeping is edit the recommended groups to coincide with your SQL, and it's really that simple.
Many thanks,
iJames.
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
I almost got it :P
Should be done in a bit
-
Re: [HABBO] Hot Campaigns
You can give us the whole pack?
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
Nice...
SQL INSERTION COE ?
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
Riiad
Nice...
SQL INSERTION COE ?
SQL is in Download? [sql.sql] Click Here to Download
Quote:
Originally Posted by
gabrieol
erro enter
What are you talking about, stop posting shit!
-
Re: [HABBO] Hot Campaigns
Sorry for Double Post, but here is the Fix (It works, because I tested it):
Me.php:
PHP Code:
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there »</a></p>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
Housekeeping/Index.php:
PHP Code:
} elseif($p == "campaign"){
$tab = 3;
include('campaign.php');
} elseif($p == "campaigns"){
$tab = 3;
include('campaigns.php');
Downloadlink: MediaFire
Housekeeping/campaings.php is just an overview, because edit and delete doesn
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
Retro!
I thought habbzhotel had it first?
Never heard of epichotel,
Epichotel = SickHotel.
Habbz was infact 2nd to get it, Epic was first
-
Re: [HABBO] Hot Campaigns
There are different methods of making it, and I see all of you have different types.
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
[quote=Hazzbo@Ragezone;5023956]Sorry for Double Post, but here is the Fix (It works, because I tested it):
Me.php:
PHP Code:
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there »</a></p>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
Housekeeping/Index.php:
PHP Code:
} elseif($p == "campaign"){
$tab = 3;
include('campaign.php');
} elseif($p == "campaigns"){
$tab = 3;
include('campaigns.php');
Downloadlink: MediaFire
Housekeeping/campaings.php is just an overview, because edit and delete doesn
-
Re: [HABBO] Hot Campaigns
Where do you put the code in?
-
Re: [HABBO] Hot Campaigns
Can someone upload a rar with all include?
and a Readme file?
- Thanks - Mark
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
bartskinu
It's working
but the housekeeping not
Download this one: Media Fire and you need to add housekeeping/index.php:
PHP Code:
} elseif($p == "campaign"){
$tab = 3;
include('campaign.php');
} elseif($p == "campaigns"){
$tab = 3;
include('campaigns.php');
-
Re: [HABBO] Hot Campaigns
Well, as you can see making new campaign pages are unnecessary.. When you can do as I said, just add them onto the Content Page with the credits, just make a new section and then just insert it into cms_content and you'll be fine, but everyone has other easier methods..
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
Thanks for the comments! I'm making a revision.
-
Re: [HABBO] Hot Campaigns
:O i seen this in habbo.com imama use it for my hotel :P thanks times
-
Re: [HABBO] Hot Campaigns
No problem, new method of adding the Hot Campaigns is coming soon, maybe tonight or tomorrow!
-
Re: [HABBO] Hot Campaigns
Where do you exactly put this??? Under where
-
Re: [HABBO] Hot Campaigns
Quote:
Originally Posted by
mickyc94
Where do you exactly put this??? Under where
You put it after this:
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>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
Oh thats nice AJ
I thought this was released already,
:D
-
Re: [HABBO] Hot Campaigns
After which line i need to add, the Hot Campaings in me.php?
-
Re: [HABBO] Hot Campaigns
-
Re: [HABBO] Hot Campaigns
Wow, Thanks, Nice work 10/10