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 1 of 1
  1. #1
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default [PHP] HabboxForum Post Count

    To use this is easy - simply post a thread, and then use the URL of it as the parameter of the function. I would have liked to just go to your profile, but it requires that you log in so I am settling with a thread. Here is a usage example:

    PHP Code:
    <?php
    include("hxfpostcount.php");
    hxfpostcount("http://habboxforum.com/showthread.php?p=3160129");
    echo 
    $your_post_count;
    ?>


    And here is the code for hxfpostcount.php:

    PHP Code:
    <?php
    function hxfpostcount($threadurl) {
    $hxf_thread file_get_contents($threadurl);
    $start_post_count explode("Posts: "$hxf_thread);
    $end_post_count explode("
                        </div>"
    $start_post_count[1]);
    $your_post_count $end_post_count[0];
    return 
    $your_post_count;
    }
    ?>
    Tomorrow I'll build a full signature incorporating lots of HabboxForum functions.
    Last edited by timROGERS; 16-02-2007 at 08:58 PM.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


Posting Permissions

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