Anybody has any ideas how I can add postbit user stats in columns?
For example..
Posts:
Threads:
Joined:
^^ Left
Reputation:
Warning:
^^ Right
I've tried everything can't seem to figure out, so If anybody could help me out I'd appreciate it.
Thanks!
I can't promise that this will work, but it's what I use on my own theme.
Try something like this in your
postbit_author_user template:
{$lang->postbit_posts} <span class="float_right">{$post['postnum']}</span><br />
{$lang->postbit_threads} <span class="float_right">{$post['threadnum']}</span><br />
{$lang->postbit_joined} <span class="float_right">{$post['userregdate']}</span>
Then in your
global.css file:
.float_right {
float: right;
}
(2017-11-27, 10:07 PM)kawaii Wrote: [ -> ]I can't promise that this will work, but it's what I use on my own theme.
Try something like this in your postbit_author_user template:
{$lang->postbit_posts} <span class="float_right">{$post['postnum']}</span><br />
{$lang->postbit_threads} <span class="float_right">{$post['threadnum']}</span><br />
{$lang->postbit_joined} <span class="float_right">{$post['userregdate']}</span>
Then in your global.css file:
.float_right {
float: right;
}
That's exactly not what I'm looking for..
I'm looking to do something example like this..
Hi.
Try this:
Replace your
postbit_author_user template with this:
<table style="border: 0px solid white;">
<tr>
<td colspan="2">{$lang->postbit_posts} {$post['postnum']}</td>
<td style="padding-left: 10px;">{$lang->postbit_threads} {$post['threadnum']}</td>
</tr>
<tr>
<td>{$lang->postbit_joined} {$post['userregdate']}<td>
<td style="padding-left: 10px;">{$post['replink']}{$post['profilefield']}</td>
</tr>
<tr>
<td colspan="3">{$post['warninglevel']}</td>
</tr>
</table>
Than delete br tag in
postbit_reputation template so it looks like this:
{$lang->postbit_reputation} {$post['userreputation']}
And delete br tag in
postbit_warninglevel template so it looks like this:
{$lang->postbit_warning_level} <a href="{$warning_link}">{$warning_level}</a>
If you need more space between posts and threads and joned and reputation, just put
20px instead of
10px in first code, or more, or less, as you wish...
Hope this helps
EDIT:
If you have modified
postbit_author_user template and things like Prestige on image please post whole
postbit_author_user template so I will edit it
Oh, sorry, now i saw that I wrote it wrong... I will gix code in a few minutes, but does it work for you?
So there if fix...
Replace your
postbit_author_user template with this:
<table style="border: 0px solid white;">
<tr>
<td colspan="2">{$lang->postbit_posts} {$post['postnum']}</td>
<td style="padding-left: 10px;">{$post['replink']}{$post['profilefield']}</td>
</tr>
<tr>
<td>{$lang->postbit_threads} {$post['threadnum']}<td>
<td style="padding-left: 10px;">{$post['warninglevel']}</td>
</tr>
<tr>
<td colspan="3">{$lang->postbit_joined} {$post['userregdate']}</td>
</tr>
</table>
Than delete br tag in
postbit_reputation template so it looks like this:
{$lang->postbit_reputation} {$post['userreputation']}
And delete br tag in
postbit_warninglevel template so it looks like this:
{$lang->postbit_warning_level} <a href="{$warning_link}">{$warning_level}</a>
_______________________
If you need more space between "posts" and "reputation" or "threads" and "warnings" fields, just put
20px instead of
10px in first code, or more, or less, as you wish...
_______________________
This will make "joined" filed go from one to another side, like here:
[
attachment=39548]
If you want it to be separated, this is your
postbit_author_user template:
<table style="border: 0px solid white;">
<tr>
<td colspan="2">{$lang->postbit_posts} {$post['postnum']}</td>
<td style="padding-left: 10px;">{$post['replink']}{$post['profilefield']}</td>
</tr>
<tr>
<td>{$lang->postbit_threads} {$post['threadnum']}<td>
<td style="padding-left: 10px;">{$post['warninglevel']}</td>
</tr>
<tr>
<td colspan="2">{$lang->postbit_joined} {$post['userregdate']}</td>
<td></td>
</tr>
</table>
So the result will be this:
[
attachment=39549]
(2017-11-28, 06:35 AM)Ikerepc Wrote: [ -> ]Oh, sorry, now i saw that I wrote it wrong... I will gix code in a few minutes, but does it work for you?
So there if fix...
Replace your postbit_author_user template with this:
<table style="border: 0px solid white;">
<tr>
<td colspan="2">{$lang->postbit_posts} {$post['postnum']}</td>
<td style="padding-left: 10px;">{$post['replink']}{$post['profilefield']}</td>
</tr>
<tr>
<td>{$lang->postbit_threads} {$post['threadnum']}<td>
<td style="padding-left: 10px;">{$post['warninglevel']}</td>
</tr>
<tr>
<td colspan="3">{$lang->postbit_joined} {$post['userregdate']}</td>
</tr>
</table>
Than delete br tag in postbit_reputation template so it looks like this:
{$lang->postbit_reputation} {$post['userreputation']}
And delete br tag in postbit_warninglevel template so it looks like this:
{$lang->postbit_warning_level} <a href="{$warning_link}">{$warning_level}</a>
_______________________
If you need more space between "posts" and "reputation" or "threads" and "warnings" fields, just put 20px instead of 10px in first code, or more, or less, as you wish...
_______________________
This will make "joined" filed go from one to another side, like here:
If you want it to be separated, this is your postbit_author_user template:
<table style="border: 0px solid white;">
<tr>
<td colspan="2">{$lang->postbit_posts} {$post['postnum']}</td>
<td style="padding-left: 10px;">{$post['replink']}{$post['profilefield']}</td>
</tr>
<tr>
<td>{$lang->postbit_threads} {$post['threadnum']}<td>
<td style="padding-left: 10px;">{$post['warninglevel']}</td>
</tr>
<tr>
<td colspan="2">{$lang->postbit_joined} {$post['userregdate']}</td>
<td></td>
</tr>
</table>
So the result will be this:
I need Joined & Warning & Threads to show on the right.. and reputation left.
I'm I at least at good track? It is now just simple changing of variables...
(2017-11-27, 10:02 PM)Livewire Wrote: [ -> ]Posts:
Threads:
Joined:
^^ Left
Reputation:
Warning:
^^ Right
I tryed by this. That is exactly how I did that this last time:
post__________reputation
thread________warning
joined
left____________ right
or I did it wrong? Can you explain a bit by what order it should be? I would be glad to make it for you
Posts, Reputation < Left
Threads, Joined, Warning < Right
So, here is code for
postbit_author_user template:
<table style="border: 0px solid white;">
<tr>
<td colspan="2">{$lang->postbit_posts} {$post['postnum']}</td>
<td style="padding-left: 10px;">{$lang->postbit_threads} {$post['threadnum']}</td>
</tr>
<tr>
<td>{$post['replink']}{$post['profilefield']}<td>
<td style="padding-left: 10px;">{$lang->postbit_joined} {$post['userregdate']}</td>
</tr>
<tr>
<td colspan="2"></td>
<td style="padding-left: 10px;">{$post['warninglevel']}</td>
</tr>
</table>
Also, don't forget to delete br tags as stated above... And that should work