MyBB Community Forums

Full Version: Custom Fields In Posbits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have created custom fileds and I would like to show these in the post bit. What file do I need to edit?
MyBB uses Templates;

ACP - Templates - Modify/Delete - Select your Template Set [ Expand ] - Post Bit Templates - postbit

The only thing you need to know before adding a customfield to your postbit is the FID; you can see that in your Custom Profile Fields 'table' [ ACP - Users and Groups - Custom Profile Fields - ID# Column ].

Add where you want to display the info
{$post['fidX']}
Change X by the FID you've found in your Custom Profile Fields 'table' .
Thanks for your help but I'm not sure I mean postbit. If you look to the left of this post I want to add my custom field below status. How would I do this?
That's a piece of the "postbit" ;
Open the postbit template
Find
{$post['user_details']}

Add After
<br /> {$post['fidX']}
LeX- Wrote:That's a piece of the "postbit" ;
Open the postbit template
Find
{$post['user_details']}

Add After
<br /> {$post['fidX']}

OK thanks. One last question. What if I want a description before the custom field?

Thanks again for your help. Great support!
Thats just plain text you add before it =P
Ex.
If you want to display the Custom Field Location;

<span class="smalltext">Location: {$post['fid1']}</span>
LeX- Wrote:Thats just plain text you add before it =P
Ex.
If you want to display the Custom Field Location;

<span class="smalltext">Location: {$post['fid1']}</span>

What if I have more than 1 custom field to add?

Thanks again.
<span class="smalltext">
Location: {$post['fid1']}<br />
Gender: {$post['fid3']}
...
</span>
Thanks LeX that works great. Is there anyway to make the text even smaller?
Change class="smalltext" into style="font-size:8px" or change the CSS for smalltext in your ThemeManager;
Pages: 1 2