PDA

View Full Version : Habbo Badges on your site



Moh
28-03-2009, 01:36 PM
We have an up-to-date Habbo Badge guide on HabbCrazy. Every day, the server will check whether there are any new badges (AAA - ZZZ, AA0 - ZZ9, A00 - Z99).

So if you want to display our badges on your site - knowing you don't have to update them, then why not put the following code on your website!

To display the actual badges on your site, use the following:

<script type="text/javascript" src="http://habbcrazy.net/files/external/badges.php?cols=6&width=200px"></script>
Remember you can change the variables:


cols - this is how many columns you want you badges to display. Default is 4.
width - this is how wide you want the containing table. Default is 100%.

If you want to display the number of badges in the database on your site, use the following:

<script type="text/javascript" src="http://habbcrazy.net/files/external/badges_num.php"></script>

The above will just display the number :)

If your lazy, and want the full code in one, then use this =) :

<p>
There are currently <strong><script type="text/javascript" src="http://habbcrazy.net/files/external/badges_num.php"></script></strong> badges below.
</p>
<p align="center">
<script type="text/javascript" src="http://habbcrazy.net/files/external/badges.php?cols=6&width=200px"></script>
</p>

Demo:
http://habbcrazy.net/files/external/badges_demo.html

Four
28-03-2009, 01:43 PM
thats awesome! +rep when uncautioned

although you should arrange them in hotels

Moh
28-03-2009, 02:01 PM
thats awesome! +rep when uncautioned

although you should arrange them in hotels
The badge images are uploaded to all Hotels, so it would be hard to do it automaticly.

However, I do know most hotels have a pattern such as:
UK - UK* and Z*
USA - US*

I'll make them display in hotels when I get time :)

no waiii
28-03-2009, 02:20 PM
i tryed it on my site and the images wouldnt load

Dentafrice
28-03-2009, 02:21 PM
Doesn't work, it returns absolute URL(s) to your server, but no actual "URL" in place, just a directory structure.

http://img.skitch.com/20090328-876r35dia66t8nmip47cmhiqr9.png

Should be "http://www.habbcrazy.net/images/habbo_badges/ACH_AIPerformanceVote1.gif"

http://img.skitch.com/20090328-ddm2gjcb6c2nn37tjrgrgsc52x.png

Mr-Trainor
28-03-2009, 03:20 PM
Will be good once you fix the error posted above :D

Moh
28-03-2009, 04:17 PM
Sorry, didn't notice that.
I have fixed that, and also sorted them into categories.

The categories aren't 100% accurate, but most the badges are in the correct places (Just several which may not).

Demo:
http://habbcrazy.net/files/external/badges_demo.html

Myth
28-03-2009, 04:59 PM
Cool nice thanks for this I'll try it.

DeejayMachoo$
28-03-2009, 11:50 PM
Sorry, didn't notice that.
I have fixed that, and also sorted them into categories.

The categories aren't 100% accurate, but most the badges are in the correct places (Just several which may not).

Demo:
http://habbcrazy.net/files/external/badges_demo.html

not that im going too but it's rather easy to take away the message at the bottom; http://www.machoo.net/lool.php perhaps you change make it slightly different each time, although you've still got preg_match then. but there are some ungreatful sods about that wouldnt mind removing your copyright.

Cushioned
29-03-2009, 03:10 AM
not that im going too but it's rather easy to take away the message at the bottom; http://www.machoo.net/lool.php perhaps you change make it slightly different each time, although you've still got preg_match then. but there are some ungreatful sods about that wouldnt mind removing your copyright.

Wow.
You're the one who:
1. Took the time to do it.. To see if it worked.
2. Shared with everyone that you could/how to basically.

Rather funny.. And a bit hypocritical.

Dentafrice
29-03-2009, 03:11 AM
not that im going too but it's rather easy to take away the message at the bottom; http://www.machoo.net/lool.php perhaps you change make it slightly different each time, although you've still got preg_match then. but there are some ungreatful sods about that wouldnt mind removing your copyright.
You mean preg_replace, because you're trying to replace it, not see if it's there..?

Sameer!
29-03-2009, 07:03 AM
Doesn't work, it returns absolute URL(s) to your server, but no actual "URL" in place, just a directory structure.

http://img.skitch.com/20090328-876r35dia66t8nmip47cmhiqr9.png

Should be "http://www.habbcrazy.net/images/habbo_badges/ACH_AIPerformanceVote1.gif"

http://img.skitch.com/20090328-ddm2gjcb6c2nn37tjrgrgsc52x.png

You don't have to have "http://www.habbcrazy.net (http://www.habbcrazy.net/)/images/habbo_badges/ACH_AIPerformanceVote1.gif". You do not need the full url with the domain. As long as the images are in a directory on your ftp.

Jxhn
29-03-2009, 08:57 AM
You don't have to have "http://www.habbcrazy.net (http://www.habbcrazy.net/)/images/habbo_badges/ACH_AIPerformanceVote1.gif". You do not need the full url with the domain. As long as the images are in a directory on your ftp.

That would defeat the whole point of it.

Machoo you could just remove everything after </table>.

9y
29-03-2009, 09:51 AM
Pretty cool! Loving the spanish tampax badge.

Moh
29-03-2009, 10:15 AM
not that im going too but it's rather easy to take away the message at the bottom; http://www.machoo.net/lool.php perhaps you change make it slightly different each time, although you've still got preg_match then. but there are some ungreatful sods about that wouldnt mind removing your copyright.
We can see whos using this, and simply deny them from accessing the script.. even better, make it display a nice nasty message/picture =)

Mr-Trainor
29-03-2009, 12:09 PM
Sorry, didn't notice that.
I have fixed that, and also sorted them into categories.

The categories aren't 100% accurate, but most the badges are in the correct places (Just several which may not).

Demo:
http://habbcrazy.net/files/external/badges_demo.html

Looks better in categorys, I'll download it after :D

kk.
29-03-2009, 12:25 PM
We can see whos using this, and simply deny them from accessing the script.. even better, make it display a nice nasty message/picture =)

hahah pure evil but pure genius

and err, your background images dont work ;) like the freebies stuff

Dentafrice
29-03-2009, 01:10 PM
You don't have to have "http://www.habbcrazy.net (http://www.habbcrazy.net/)/images/habbo_badges/ACH_AIPerformanceVote1.gif". You do not need the full url with the domain. As long as the images are in a directory on your ftp.

Honestly, do you want me to come smack you?

I'm not that stupid. I know you don't have to have the URL, but when you're accessing it from another flipping domain, yeah you do!

And what's the point of having all the images on your server (it's not on your "FTP", FTP is just what you use to connect to it), when you're using an external script!

If you had all the badges yourself, you wouldn't need this.

Next time you decide to be a smart-ass and act all smart, at least make sure you're right or have at least some idea of the conversation.. or know what you're talking about.

This is the reason we need a new forum.

kk.
29-03-2009, 01:13 PM
and backing up the point that only people who know what theyre on about can give CC

Dentafrice
29-03-2009, 01:17 PM
and backing up the point that only people who know what theyre on about can give CC
I don't agree with that point. I'm not a designer, but I know when something looks like ****.. because I'm an end user, and I have eyes, and I can tell someone what I think would make it look better.. but it will never be worth as much as a designer's opinion.

I just don't think someone should try to argue, and make a fool of themselves, especially acting with the attitude of "I'm right and your wrong", when they in fact are wrong.

If you get what I mean ;P Like Sameer acting like a hardass.

kk.
29-03-2009, 01:21 PM
yeh but as i said, only people who know what theyre on about.. you quite clearly do lmao

people who have never done a design or code in there life shouldnt really give criticism because they could jsut be giving out bad ideas and ways to improve which actually makes it a lot worse than before

Dentafrice
29-03-2009, 01:48 PM
yeh but as i said, only people who know what theyre on about.. you quite clearly do lmao

people who have never done a design or code in there life shouldnt really give criticism because they could jsut be giving out bad ideas and ways to improve which actually makes it a lot worse than before
I agree at that point.

If you give someone bad advice/tips/criticism, they're going to develop themselves based on the opinions they get, if they are bad/wrong opinions.. you have a sucky coder and sucky designer.

That's why I hate when people from the Habbo section come here, and provide wrong advice.

Want to hide these adverts? Register an account for free!