MyBB Community Forums

Full Version: Add three personal icons in the post author
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Original Post: http://mybbarena.it/showthread.php?tid=102

In this tutorial we will see how to set up three icons (chosen by the user) in the post Author.
The effect will be as follows:
[Image: result.jpg]

Start!

  1. Go pca (Admin Control Panel)->Configuration->Custom Profile Fields.
  2. Click Add custom user field and set the following page like this:
    [Image: personal.png]
    In the event that you should not see well:
    Title: Post Image 1
    Short Description: Add a image in your message
    Field Type: Textbox
    Maximum Length: 0
    Field Length: 0
    Selectable Options? Empty
    Display Order: 4
    Required? No
    Editable by user? Yes
    Hide on profile? Yes
    Minimum post count? If you want to put a minimum post for use the field
  3. Repeat the same thing two more times by changing 'Display order: 4' 5 and 6.
  4. Now go in Theme/Template-->Template-->Your Template-->Post Bit templates-->postbit_classic
  5. Add between {$post['useravatar']}<br> and {$post['user_details']}
    <img src="{$post['fid4']}" style="max-height: 40px; max-width: 40px;margin-left: 5px;">
    <img src="{$post['fid5']}" style="max-height: 40px; max-width: 40px;margin-left: 5px;">
    <img src="{$post['fid6']}" style="max-height: 40px; max-width: 40px;margin-left: 5px;"></br>
  6. Now users will have to navigate in their Control Panel-->Edit Profileand add their image link at fields Post Image, like this:
    [Image: icone.png]