MyBB Tutorials

Add Boxes to MyBB postbit User Details

Submitted by Yondu, , Thread ID: 197770

Thread Closed
Yondu
Marry Poppins Y'all
Administrators
Level:
36
Reputation:
190
Posts:
1.55K
Likes:
336
Credits:
3.49K
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

Th3
Newbie
Level:
1
Reputation:
0
Posts:
17
Likes:
0
Credits:
1
04-03-2021, 02:12 PM
#2
i tried but it looks weird tho

Users browsing this thread: 1 Guest(s)