Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Location
    Leicester
    Posts
    181
    Tokens
    0

    Default User system PM Help

    Hello,

    I was woundering if anyone now how to add a message everytime you log in to the usersystem But only if ou have a pm

    somthing like


    Hello Jamie0112, you have 1 new message.

    Like That any help?

  2. #2

    Default

    You could do a SQL query, and if it returns a number make a popup using javascript:
    <script>
    alert("Hey, <? $SESSIONUSERNAME ?>, you have <? $SOMEPHP ?> new messages!")
    </script>

    But I don't know php so that might not be a good method

  3. #3
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    Basically in your PM table SQL you need to mark if the message is new or not the best way to do this is when the message is viewed change the colum value to 1 so any unseen PM's will have a 0 value to its simple SQL then to work it out..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •