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!


Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 44

Thread: HKV3 Previews

  1. #11
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Will there be the ability to like customise and add things to it? Cause its a framework like this that could help many of us, including myself improve their skills All the best.. looking forward to it!! =D
    Back for a while

  2. #12
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Yes, it should be relatively simple for someone to add a feature to it.

    Here would be the process:

    1. Create a page inside of /pages/ (ex: my_custom_feature.php).
    2. Under "Permission Administration", click "Add Feature" and create a feature. (ex: my_custom_feature);

    3. At the top of the "my_custom_feature.php" page, add the security code:

    PHP Code:
    <?php if(!defined("SECURITY")) { trigger_error("Security Violation"E_USER_ERROR); } ?>
    4. Add the feature checking code on the same page..

    PHP Code:
    <?php if(!$user->has_feature("my_custom_feature")) { $core->redirect("main.php?page=403"); } ?>
    Then add all your code under that.

    Once you're done, just go to the permission set of your choice, and check the checkbox next to your newly created feature and they will be able to access it (after you add it to the nav of course )

  3. #13
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Sounds really good! Cant wait to try it out!
    Back for a while

  4. #14
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default


  5. #15
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Finished DJ says. It's in the "radio class", so to access.. all that is required is:

    PHP Code:
    $radio $core->factory("radio");
    $says $radio->get_says();

    echo 
    "{$says->username} says {$says->message} - {$core->relative_time($says->time)}"

  6. #16
    Join Date
    Jun 2009
    Location
    UK
    Posts
    112
    Tokens
    0

    Default

    Looks amazing, can't wait for the release.
    Habbo Name: Dye

  7. #17
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Thank you

  8. #18
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    Well the design is going to be the same, because I can't design.. at all That's why everything I make looks so crap.
    Caleb, is that BLUE? Let me just wipe my eyes. HOLY **************************************************

    Lookin' good.
    Hi, names James. I am a web developer.

  9. #19
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    How did you do the permissions? Did you have a usergroup table and add a field for each perm ? OR what?

  10. #20
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Protege View Post
    Caleb, is that BLUE? Let me just wipe my eyes. HOLY **************************************************

    Lookin' good.
    TIS BLUE.

    Quote Originally Posted by BoyBetterKnow View Post
    How did you do the permissions? Did you have a usergroup table and add a field for each perm ? OR what?
    I have a perm_set table. In that table, is: id, features, pages, title.

    So it would be setup:

    id - 1
    features: login_while_offline;manage_users;some_other_featur es;
    pages:
    title: Administrator

    Pages is the field for CMS pages.. so if you had a DJ you could have..

    id - 2
    features: cat_radio;dj_says;requests;
    pages: radio_rules;dj_guide;other_stuff;
    title: DJ

    id - 3
    features: edit_server_info;manage_other_stuff;login_while_of fline;
    pages: radio_rules;dj_guide;head_dj_guide;
    title: Senior DJ

Page 2 of 5 FirstFirst 12345 LastLast

Posting Permissions

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