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 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default PHP - +rep (when I can)

    Hi.

    How could I implement something, where if the topic has a new reply it's sent to the top?

    I was thinking have numbers in the topic table, and change when a new reply is made but I don't think it'll be easy to just update every thread.

    So, how could I do this?

    TY. +rep if and when I can, I'll add you to sig.

  2. #2
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Use a timestamp and in your query order them descending?
    (Update the timestamp every time a new message is posted)

    Thats the way i do it..
    Coming and going...
    Highers are getting the better of me

  3. #3
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Good idea, I will try. Thanks.

  4. #4
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    i would just sort id to descending..... :S
    Timestamp will work otherwise.

Posting Permissions

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