MyBB Community Forums

Full Version: Adding a custom div under group image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys.

I want to add a custom division under the group image that reaches into our database to pull certain information on that uid. (In our case, their Steam ID for those familiar with Steam).

How would I go about doing that?

Example;

[Image: 2Gt93.png]
Under the "OWNER" image, I want to add a custom div.
Always remember to give as much info as possible - you didn't tell how the steam id is saved in databse. Profile field? Plugin?
Yea, as Destroy said, you'd need to get the PHP function for that so you can call it in the proper template with the correct CSS Class and styling/layout.

You'd place it in Templates > {Your Theme} > Postbit > Postbit

It'd go under {$post['groupimage']}

<span class="smalltext">
   {$post['usertitle']}<br />
   {$post['userstars']}
   {$post['groupimage']}
   {$lang->steamprofile} //Example
</span>
Sorry for my lack of detail. Didn't really need help with the PHP, just couldn't figure out what file to edit to add the division.
You should add it to postbit and/or postbit_classic template as described above, not to any file.
http://docs.mybb.com/Admin_CP_Templates.html