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 6 of 6
  1. #1
    Join Date
    Sep 2007
    Location
    England
    Posts
    3,602
    Tokens
    500

    Latest Awards:

    Default [VB] Users Habbo in Postbit

    This is how to get an image of a users Habbo to display in the postbit.

    Firsly create a profile field in Admincp by going to User Profile Field Manager > Add new. Then select single line text box. Then fill the form out like this:


    Once done, click save etc. Then on User Profile Field Manager it will say next to the field name (e.g 'Habbo Name') something like field20 or field1. You'll need the field number for this next bit.

    Go to Styles Manager and edit postbit_legacy (or postbit depending on what you've set your forum to use) and insert this code where you'd like it; I recommend above this;
    Code:
    <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
    add this above the code above:

    <if condition="$bbuserinfo[fieldXX]">
    <a href="http://www.habbo.co.uk/home/$bbuserinfo[fieldXX]" target="_blank"><img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?user=$bbuserinfo[fieldXX]&action=wav&direction=4&head_direction=3&gestur e=s ml&size=s&img_format=gif" alt="$bbuserinfo[fieldXX]" border="0" /></a>
    </if>
    You must replaced the XX with your field number .e.g 20
    This works by grabbing the Habbo's name from the profile field and sending the data from it to the habbo image url.

    Clicking the Habbo will also open up their Habbo Hime in a new window.

    NOTE: If the user hasn't filled in the profile field then there will just be a blank space as it uses <if condition> tags.
    It will look like this (example shows my Habbo):





    Later on I'll slip up a Habboey box, show you how to add it into the Additional CSS and edit the code so that the lovely little Habbo image is in a nice and smart box :}

    Written by Favourtism
    The other day I was in a toilet.
    A voice came from the cubicle next to me: "Hello mate, how are you doing?"
    I didn't want to be rude, so I said, "Not too bad, thanks."
    I heard the voice again. "So, what are you up to?"
    Again I answered, "Just having a quick ****... How about yourself?"
    Then I heard him say "Sorry, mate, I'll have to call you back. I've got some **** in the cubicle next to me answering everything I say."

  2. #2
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    nice tutorial.
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  3. #3
    Join Date
    Mar 2009
    Location
    Portugal
    Posts
    174
    Tokens
    100

    Default

    Good tutorial Tom. - well done!


  4. #4
    Join Date
    Aug 2006
    Posts
    6,572
    Tokens
    584

    Latest Awards:

    Default

    I have a profile field that I want displayed in my Forum, the field id is 5 but I have no idea what code to use. I am using VB 3.8.2.

    I'll rep+ if you could help me.

  5. #5
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Quote Originally Posted by Voiding View Post
    I have a profile field that I want displayed in my Forum, the field id is 5 but I have no idea what code to use. I am using VB 3.8.2.

    I'll rep+ if you could help me.
    <if condition="$bbuserinfo[field5]">
    Whateverbbuserinfo[field5]
    </if>

  6. #6
    Join Date
    Aug 2006
    Posts
    6,572
    Tokens
    584

    Latest Awards:

    Default

    Quote Originally Posted by wsg14 View Post
    <if condition="$bbuserinfo[field5]">
    Whateverbbuserinfo[field5]
    </if>
    But it seems to display my name on their posts information aswell, how can I make it to what they put on their profile?

    EDIT: Don't worry, changed it to $post. Thanks and rep+
    Last edited by efq; 18-04-2009 at 12:05 AM.

Posting Permissions

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