MyBB Tutorials

Add Boxes to MyBB postbit User Details

Submitted by Yondu, , Thread ID: 197770

Thread Closed
12-02-2021, 10:29 PM
#1
So it is very simple, and requires only few edits in the templates.

Here goes the first step :

1.CSS Styling :



First you need to work with css :

Copy the below code and paste it in your theme global.css at the bottom.
Code:
.pbit {
    background: #fff;
    border-radius: 3px;
    border: 1px double #dadada;
    font-size: 11px;
    font-weight: normal;
    margin-bottom: 3px;
    padding: 6px 5px 5px;
    text-align: left;
}


2.Template Edits :

Then navigate to your theme templates > Open Postbit Templates > Postbit_ Author _ User templates

Copy this code and replace it in your templates :


Code:
<div class="pbit">{$lang->postbit_posts} {$post['postnum']}</div>
  <div class="pbit">{$lang->{$lang->postbit_joined} {$post['userregdate']}</div>
  <div class="pbit">{$lang->{$post['replink']}</div>
    <div class="pbit">{$lang->{$post['warninglevel']}</div>


Save the templates and the thing should work for you. You would have boxed statistics / user details in postbit.
[Image: wsUuw16j6oyxLLRnnK.gif]

RE: Add Boxes to MyBB postbit User Details

#2
i tried but it looks weird tho

Users browsing this thread: 2 Guest(s)