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 10 of 10

Thread: coding help.

  1. #1
    Join Date
    Oct 2008
    Location
    The Milky Way
    Posts
    728
    Tokens
    0

    Latest Awards:

    Default coding help.

    I have a forum which i found on a site, it's PHP obv and I need some help

    I need a code that will show "Latest thread" "date of latest thread" "How many posts are in a certain forum" and "How many threads in a certain forum"

    If you can help PM me or reply

  2. #2
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    What's the address of the forum?

  3. #3
    Join Date
    Aug 2009
    Posts
    78
    Tokens
    100

    Latest Awards:

    Default

    1) What forum software is it?

    Most forum software vendors have this function built in.

  4. #4
    Join Date
    Oct 2008
    Location
    The Milky Way
    Posts
    728
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Irrorate View Post
    1) What forum software is it?

    Most forum software vendors have this function built in.
    It's own software...

    http://habbobigbrother.net/forum/main_forum.php

  5. #5
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Latest thread: SELECT * FROM topics ORDER BY date_posted DESC
    Date of latest: use above query then $array['date_posted']
    # of posts & threads: http://php.net/manual/en/function.mysql-num-rows.php
    Vouches
    [x][x]

  6. #6
    Join Date
    Oct 2008
    Location
    The Milky Way
    Posts
    728
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Latest thread: SELECT * FROM topics ORDER BY date_posted DESC
    Date of latest: use above query then $array['date_posted']
    # of posts & threads: http://php.net/manual/en/function.mysql-num-rows.php
    Sorry but I have no idea what I'm supposed to do with that, would it be possible if you put it together and show me what to do with it. I'm not amazing with PHP as you can see.

  7. #7
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Then how did you code that forum?

    You'll need to change topics and date_posted to the actual names.

    PHP Code:
    $query mysql_query("SELECT * FROM topics ORDER BY date_posted DESC LIMIT 1"); 
    I don't really get what you want to do with this latest topic thing so I can't give you the whole code. Do you want a list on a separate page or something?
    Vouches
    [x][x]

  8. #8
    Join Date
    Oct 2008
    Location
    The Milky Way
    Posts
    728
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Then how did you code that forum?

    You'll need to change topics and date_posted to the actual names.

    PHP Code:
    $query mysql_query("SELECT * FROM topics ORDER BY date_posted DESC LIMIT 1"); 
    I don't really get what you want to do with this latest topic thing so I can't give you the whole code. Do you want a list on a separate page or something?
    [icon] [forum name] [total threads] [total posts] [date last post was posted]

  9. #9
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    PM me the files and I'll do it when I have the time.
    Vouches
    [x][x]

  10. #10
    Join Date
    Aug 2009
    Posts
    78
    Tokens
    100

    Latest Awards:

    Default

    If you've downloaded custom forum software and have no clue about HTML, CSS, PHP & SQL then you need to learn them.

Posting Permissions

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