MyBB Support

PostBit Editing

Submitted by Kenroytk, , Thread ID: 115131

Thread Closed

RE: PostBit Editing

Kenroytk
Novice
Level:
0
Reputation:
0
Posts:
38
Likes:
1
Credits:
84
OP
05-01-2019, 04:02 PM
#13
04-01-2019, 07:01 PM
Nasyr Wrote:
you can do <span style="float:left">variable</span> as the one in the globalk css might be different.

04-01-2019, 11:42 PM
Nasyr Wrote:
Kenroytk here is an entire tutorial on doing this. So I loaded up a MyBB copy on my localhost and grabbed a screenshot of the postbit(in classic view).

[spoiler=click to see classic view default][Image: 1ANiii3.png][/spoiler]


Now what you want to do is edit the themes templates > postbit then choose postbit_author_user to edit the Posts, Threads and Join Date.
now you need to align the content name to the left which should start with {$lang->postbit_name} (name being reputation etc). You'll want to have the statistic aligned to the right which should look like {$post['name']} (name replaced with like postnum which is posts).

[Image: YYWlEVl.png]

Here is the code for Posts, Threads and Join Date as shown in the screenshot above and live on the screenshot below.
Code:
<span style="float:left">{$lang->postbit_posts}</span> <span style="float:right">{$post['postnum']}</span><br />
<span style="float:left">{$lang->postbit_threads}</span> <span style="float:right">{$post['threadnum']}</span><br />
<span style="float:left">{$lang->postbit_joined}</span> <span style="float:right">{$post['userregdate']}</span>

[spoiler=click to see how it looks][Image: HMjvpo7.png][/spoiler]


Now all you'll need to do is edit the Warning Level and Reputation. In order to do that you need to open postbit_warninglevel and postbit_reputation then repeat those steps.

[spoiler=view the final outcome][Image: zkl4Kzz.png][/spoiler]


Obviously mines looks really far away from each other that is down to me using the default theme. Your theme will most likely be different based on the sidebar.
We used the style tag meaning that the code is only active to these templates - compared to the float code in your global.css. Make sure you use the code exactly how I showed you here. It'll work in all of the templates fine.

Thank You worked and i realized something else the theme i was using fucked up had !important so it was overpowering the inline style

Users browsing this thread: 1 Guest(s)