PDA

View Full Version : Popups And Stuff



Johno
16-06-2006, 08:25 PM
Hey, I have the images from habbo for like messages and stuff but how could I get/code a system for the popups apearing like habbos?

And, I have the techtuts user system, Is there a way to ban just a user? and then display a popup like habbo's ban message saying why you got banned?

Sorry for posting in here after posting in coding, but nobody uses it :P

Halting
16-06-2006, 08:31 PM
There's nothing better than the traditional alert system.
Yeha you need an Alert System. I wouldn't, myself, use Habbo Alerts (hobba/mod alerts) - instead I would use Javascript Alerts.

Well heres an outline:-
You need a form where someone can submit a message.
An iFrame on the page you want the alert to appear on.
The contents of the Iframe must refresh every 60 seconds and must show the message that was submitted in an alert. Aka, for a java alert it would be alert("$message");.
After 60 seconds, you will need a code to delete this from the database. Or, create a table so once the user has seen the alert, it deletes it from the database.

Jamie.
16-06-2006, 08:33 PM
There's nothing better than the traditional alert system.
Yeha you need an Alert System. I wouldn't, myself, use Habbo Alerts (hobba/mod alerts) - instead I would use Javascript Alerts.

Well heres an outline:-
You need a form where someone can submit a message.
An iFrame on the page you want the alert to appear on.
The contents of the Iframe must refresh every 60 seconds and must show the message that was submitted in an alert. Aka, for a java alert it would be alert("$message");.
After 60 seconds, you will need a code to delete this from the database. Or, create a table so once the user has seen the alert, it deletes it from the database.
yes, use javascript :)

Halting
16-06-2006, 08:34 PM
Use thought if you use an iFrame originally you should set its dimensions to 0pxX0px but if you use a Habbo Alert it will not appear.

Johno
16-06-2006, 08:39 PM
I tried to learn Javascript a while back, Never needed it. Now comes the time when I do need it. Yay, I will have to go re-learn :(

Jamie.
16-06-2006, 08:39 PM
I tried to learn Javascript a while back, Never needed it. Now comes the time when I do need it. Yay, I will have to go re-learn :(
no dont ill try find u the code somewere

Halting
16-06-2006, 08:40 PM
lol. I once saw HabboShed use a javascript alert via putting the code into the radio stats. It gave me the idea to make an alert system, which started of the alert system craze.

Johno
16-06-2006, 08:40 PM
:D Thanks

I forgot to say + Rep to all that help

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