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 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default How To Make Custom Pages Like MyBOBBA

    Now you may be wondering how to do this. Well it is actually easier than you think it is. This MOD requires no plugins however the only way in which you can edit it is by file. The reason for this is I find it is easier to use than the admin panel as it means that you can include PHP, Javascript or whatever else you want.

    The code is as follows:
    PHP Code:
    <?php
    $curdir 
    getcwd ();
    chdir('/LINK TO/public_html/forum');
    require_once(
    '/LINK TO/public_html/forum/global.php');
    chdir ($curdir);

    echo 
    $headinclude;
    echo 
    $header;
    echo 
    $navbar;

    ?>

    Your Content
     
    <?php

    echo $footer;

    ?>
    On this page you can use lots of different codes which can show things like the persons user names or even limit it to certain usergroups - This is located here.

    Also, you can use any css which is included in your forum skin for instance .tcat etc.

    Please note that this content will be designed inside your forum design and can have anything included on the page as the coding inside the page is not related to the forum installation.

    » Snex - Either PM me or add my MSN [email protected] for support.
    Last edited by Snex; 19-11-2007 at 09:11 PM.
    Email: [email protected] | Don't Have Skype or anything else.

  2. #2
    Join Date
    Nov 2007
    Posts
    36
    Tokens
    0

    Default

    Im guessing u rename

    chdir('/blah/public_html/);
    require_once('/blah/public_html/global.php');

    to the place it actually is?

    so to something like

    chdir('/wolf/public_html/);
    require_once('/wolf/public_html/global.php');

    ??

    i do that and its:


    Parse error: syntax error, unexpected T_GLOBAL in /home/wolf/public_html/box.php on line 4

    also: http://www.habforum.com/codes.php not working.
    Last edited by Postage; 19-11-2007 at 09:41 PM.

  3. #3
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    Oh, wow. Thanks.

    The only thing is that the link doesn't work.


    Selling DJ/Habbo layout, more info here.


  4. #4
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default

    Quote Originally Posted by Postage View Post
    Im guessing u rename

    chdir('/blah/public_html/);
    require_once('/blah/public_html/global.php');

    to the place it actually is?

    so to something like

    chdir('/wolf/public_html/);
    require_once('/wolf/public_html/global.php');

    ??

    i do that and its:


    Parse error: syntax error, unexpected T_GLOBAL in /home/wolf/public_html/box.php on line 4

    also: http://www.habforum.com/codes.php not working.
    I really don't know what that error is but to find out what to put where the YOUR LINK is add:

    PHP Code:
    <?php 
    echo getcwd(); 
    ?>
    and save it as anything. Remember to delete the /public_html on the above link first though.

    Oh, wow. Thanks.

    The only thing is that the link doesn't work.
    I'm aware of this I just put it there for the future. I havn't done it yet.
    Email: [email protected] | Don't Have Skype or anything else.

  5. #5
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    Any chance it will be done soon?


    Selling DJ/Habbo layout, more info here.


  6. #6
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default

    Quote Originally Posted by adamFTW View Post
    Any chance it will be done soon?
    I'll do it tommorrow. But here are a few.

    To limit something to logged in users:
    PHP Code:
    <?php
    if ($vbulletin->userinfo['userid']!= "0")
        {   
    ?>
    Logged in code.
    <?php 
    }
    else

    ?>
    Non-logged in code.
    <?php
    }
    ?>
    To limit to a usergroup:
    PHP Code:
    <?php
    if ($vbulletin->userinfo['userid'] == "USERGROUP ID")
        {   
    ?>
    Shown Code
    <?php 
    }
    else

    ?>
    Error
    <?php
    }
    ?>
    To show a users username:
    PHP Code:
    $vbulletin->userinfo['username']; 
    In colour:
    PHP Code:
    $vbulletin->userinfo['musername']; 
    A users profile field:
    PHP Code:
    $vbulletin->userinfo['USER FIELD ie. email, fieldX']; 
    Show the name defined on the footer:
    PHP Code:
    $vbulletin->options['hometitle']; 
    Email: [email protected] | Don't Have Skype or anything else.

  7. #7
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    nice one snex!

  8. #8
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    Very good, I can't wait for the rest of the codes.


    Selling DJ/Habbo layout, more info here.


  9. #9
    Join Date
    Nov 2007
    Posts
    36
    Tokens
    0

    Default

    This don't work.

    im having the same problem in and out.

    I add the first code, and make it like this:

    <?php
    $curdir
    = getcwd
    ();
    chdir('/wolf/public_html/forum'
    );
    require_once(
    '/wolf/public_html/forum/global.php'
    );
    chdir ($curdir
    );

    echo
    $headinclude
    ;
    echo
    $header
    ;
    echo
    $navbar
    ;

    ?>

    Your Content

    <?php

    echo $footer
    ;

    ?>
    u told me to remove the public_html tags, and add:

    <?php
    echo getcwd
    ();
    ?>
    why wont it work?

  10. #10
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default

    Quote Originally Posted by Postage View Post
    This don't work.

    im having the same problem in and out.

    I add the first code, and make it like this:



    u told me to remove the public_html tags, and add:



    why wont it work?
    I told you to use that code on a different link and then place that where the /LINKTO/public_html is in the link above and it should work.
    Email: [email protected] | Don't Have Skype or anything else.

Page 1 of 2 12 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
  •