Newbie Spellweaver
- Joined
- Feb 22, 2014
- Messages
- 12
- Reaction score
- 3
EDIT: This is for RevCMS!
So, today i´ve coded the Crikey feature, so if your motto is "Crikey" the user profile on the me page will be a crocodile, so this is actually easy and you can add you own hidden secret images!
Live demo:
Without Crikey as motto
With Crikey as motto
And with Doge as motto:
Images used:
Note: Doge image will automatically be resized to 100px width as seen in the PHP code.
Upload the images to: (yourHabboFolder)/app/tpl/skins/(yourSkin)/images
and then they will automatically work
-------------------------------
How to add it:
1.)
Go to the me.php page and open it up i notepad or something, then find the Habbo-Plate where it has {look} in it.
Go ahead and delete that,
2.)
Paste this code instead:
So now, if your motto is "Crikey or CriKEY" it doesnt matter with caps, another image will come instead of your user image (remember to upload your own image)
REMEBER: if you add a new case, the case name MUST BE without caps! so small only, otherwise it wont work!
Credits:
100% Me for making the PHP Switch and the idea
---------------------------
Live demo:
Its a danish hotel, but will still work if you change your motto, and im on the hotel with the name "Thomas" so contact me there if you want to
So, today i´ve coded the Crikey feature, so if your motto is "Crikey" the user profile on the me page will be a crocodile, so this is actually easy and you can add you own hidden secret images!
Live demo:
You must be registered to see links
Without Crikey as motto
With Crikey as motto
And with Doge as motto:
Images used:
Note: Doge image will automatically be resized to 100px width as seen in the PHP code.
Upload the images to: (yourHabboFolder)/app/tpl/skins/(yourSkin)/images
and then they will automatically work
-------------------------------
How to add it:
1.)
Go to the me.php page and open it up i notepad or something, then find the Habbo-Plate where it has {look} in it.
Go ahead and delete that,
2.)
Paste this code instead:
Code:
<?php
$smart = $_SESSION['user']['motto'];
switch (strtolower($smart)) {
case "crikey":
echo "<img src='{url}/app/tpl/skins/{skin}/images/sticker_croco.gif'/>";
break;
case "doge":
echo "<img src='{url}/app/tpl/skins/{skin}/images/doge.png' width='100px'/>";
break;
default:
echo "<img src='http://www.habbo.nl/habbo-imaging/avatarimage?figure={figure}.gif'/>";
}
?>
So now, if your motto is "Crikey or CriKEY" it doesnt matter with caps, another image will come instead of your user image (remember to upload your own image)
REMEBER: if you add a new case, the case name MUST BE without caps! so small only, otherwise it wont work!
Credits:
100% Me for making the PHP Switch and the idea
---------------------------
Live demo:
You must be registered to see links
Its a danish hotel, but will still work if you change your motto, and im on the hotel with the name "Thomas" so contact me there if you want to
Attachments
You must be registered for see attachments list
Last edited: