MyBB Community Forums

Full Version: Postbit editing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello, my question regarding postbit. because i want to edit there like other sections (posts,threads,joined) that grey area. so i want to make that country and thanks area like that in grey area, screenshot :

http://prntscr.com/dk3e8l

"Thanks: 0
Given 21 thank(s) in 19 post(s)




Country: [Image: palestine.png]"
Can we have your forum url?
(12-16-2016, 12:01 PM)chack1172 Wrote: [ -> ]Can we have your forum url?

Sure;

www.csomod.com
Can you post templates postbit_classic and postbit_author_user?
postbit_classic 

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
	<div class="postbit-post-panel clearfix">
		<div class="postbit-post-username">
			<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}">{$post['username']}</a>
		</div>
		<div class="postbit-post-head">
			{$post['posturl']}
			{$post['icon']}
			<span class="postdate">{$post['postdate']}</span>
		</div>
	</div>
	<div class="postbit-post-author scaleimages">
		<div class="postbit-post-usertitle"><span class="smalltext">{$post['usertitle']}</span></div>
		<div class="postbit-post-userstars">{$post['threadstarter']}
{$post['userstars']}</div>
		{$post['useravatar']}
		<div class="postbit-author-information">
			<span class="smalltext">
				<!-- Disabled: {$post['threadstarter']}
{$post['userstars']} -->
				{$post['groupimage']}{$post['ougc_agi']}
			</span>
		</div>
		<div class="postbit-author-statistics">
			{$post['user_details']}<br /><br />{$post['usercountry']}{$post['newpoints_postbit']}
		</div>
	</div>
	<div class="postbit-post-content">
		<div class="post_body postbit-post-body scaleimages" id="pid_{$post['pid']}">
			{$post['subject_extra']}
			<div id="thxpid_{$post['pid']}">{$post['message']}</div>
		</div>
		{$post['attachments']}
		{$post['editedmsg']}
		{$post['signature']}
		<div class="postbit-post-meta" id="post_meta_{$post['pid']}">
			{$post['quick_quote']}{$post['iplogged']}
		</div>
	</div>
	<div class="postbit-post-controls">
		<div class="postbit-buttons postbit-author-buttons float_left">
			{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
		</div>
		<div class="postbit-buttons postbit-post-management-buttons float_right">
			{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['returntotop']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
		</div>{$post['thxdsp_outline']}
	</div>
</div>

postbit_author_user 

<ul class="clearfix">
	<li class="clearfix">
		<div class="key">{$lang->postbit_posts}</div>
		<div class="value">{$post['postnum']}</div>
	</li>
	<li class="clearfix">
		<div class="key">{$lang->postbit_threads}</div>
		<div class="value">{$post['threadnum']}</div>
	</li>
	<li class="clearfix">
		<div class="key">{$lang->postbit_joined}</div>
		<div class="value">{$post['userregdate']}</div>
	</li>

	{$post['replink']}
	{$post['warninglevel']}{socialsites}
</ul>
{$post['profilefield']}
I need also template thanks_postbit_count
(12-17-2016, 03:58 PM)chack1172 Wrote: [ -> ]I need also template thanks_postbit_count

<div><span class="smalltext">{$lang->thx_thank} {$post['thank_count']}<br />
	{$post['thanked_count']}<br /></span></div>
Sorry for the late reply.
Change templates with those below.

postbit_classic
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
    <div class="postbit-post-panel clearfix">
        <div class="postbit-post-username">
            <a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}">{$post['username']}</a>
        </div>
        <div class="postbit-post-head">
            {$post['posturl']}
            {$post['icon']}
            <span class="postdate">{$post['postdate']}</span>
        </div>
    </div>
    <div class="postbit-post-author scaleimages">
        <div class="postbit-post-usertitle"><span class="smalltext">{$post['usertitle']}</span></div>
        <div class="postbit-post-userstars">{$post['threadstarter']}
{$post['userstars']}</div>
        {$post['useravatar']}
        <div class="postbit-author-information">
            <span class="smalltext">
                <!-- Disabled: {$post['threadstarter']}
{$post['userstars']} -->
                {$post['groupimage']}{$post['ougc_agi']}
            </span>
        </div>
        <div class="postbit-author-statistics">
            {$post['user_details']}<br /><br />{$post['usercountry']}
        </div>
    </div>
    <div class="postbit-post-content">
        <div class="post_body postbit-post-body scaleimages" id="pid_{$post['pid']}">
            {$post['subject_extra']}
            <div id="thxpid_{$post['pid']}">{$post['message']}</div>
        </div>
        {$post['attachments']}
        {$post['editedmsg']}
        {$post['signature']}
        <div class="postbit-post-meta" id="post_meta_{$post['pid']}">
            {$post['quick_quote']}{$post['iplogged']}
        </div>
    </div>
    <div class="postbit-post-controls">
        <div class="postbit-buttons postbit-author-buttons float_left">
            {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
        </div>
        <div class="postbit-buttons postbit-post-management-buttons float_right">
            {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['returntotop']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
        </div>{$post['thxdsp_outline']}
    </div>
</div>

postbit_author_user
<ul class="clearfix">
    <li class="clearfix">
        <div class="key">{$lang->postbit_posts}</div>
        <div class="value">{$post['postnum']}</div>
    </li>
    <li class="clearfix">
        <div class="key">{$lang->postbit_threads}</div>
        <div class="value">{$post['threadnum']}</div>
    </li>
    <li class="clearfix">
        <div class="key">{$lang->postbit_joined}</div>
        <div class="value">{$post['userregdate']}</div>
    </li>
    {$post['replink']}
    {$post['warninglevel']}
	{$post['newpoints_postbit']}{socialsites}
</ul>
{$post['profilefield']}

thanks_postbit_count
<li class="clearfix">
	<div class="key">{$lang->thx_thank}</div>
	<div class="value">{$post['thank_count']}</div>
</li>
<li class="clearfix" style="text-align: center">{$post['thanked_count']}</li>