MyBB Community Forums

Full Version: Left side postbit backgroundcolor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

MikeInToshx

Hai guys

How do I change the backgroundcolor of it?

[attachment=30848]
ACP → Styles & Templates → Templates → [your_name_theme] Templates → Post Bit Templates → postbit
Find a class that included a fragment of that part. Then in this class add
 background: # color; 

MikeInToshx

I don't get it.

Heres the code:

{$ignore_bit}


<div class="tborder" id="post_{$post['pid']}">


<div class="smalltext thead" id="pid{$post['pid']}">

{$post['postdate']} {$post['posttime']}
    
<span class="float_right">{$lang->postbit_post} <a href="{$post['postlink']}#pid{$post['pid']}">#{$postcounter}</a></span>

</div>

<div class="postbit_border {$altbg}">


<!--Postbit author info-->


<div class="postbit_author_horizontal">



<span class="inline-block vmiddle">{$post['useravatar']}</span>

<span class="inline-block vmiddle">

<a href="#" id="profile_{$post['pid']}">{$post['username_formatted']}</a>{$post['onlinestatus']}<br />

{$post['userstars']}

{$post['groupimage']}

</span>



<span class="float_right">{$post['user_details']}</span>


</div>

<!--Postbit author info-->

<!--Postbit post-->


<div class="postbit_body_horizontal">

<table>

<tr> <td class="posts" style="{$post_visibility}">


<div class="tcat smalltext">{$post['icon']}{$post['subject']} {$post['subject_extra']} {$post['posturl']}</div>


<div class="postbit_content_horizontal" id="pid_{$post['pid']}">

<div class="postbit_message">{$post['message']}</div>

{$post['attachments']}

{$post['editedmsg']}


{$post['signature']}


</div>

</td> </tr>

</table>


</div>

<!--Postbit post-->

<!--Postbit bottom-->

<div class="postbit_bottom">

<div class="inline-block float_left">
{$post['iplogged']}{$post['button_report']}{$post['button_warn']}{$post['button_rep']}
</div>

<div class="inline-block float_right">

{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}

</div>

   
</div>

<!--Postbit bottom-->

</div>

</div>


<!--Profile quick links-->

<div id="profile_{$post['pid']}_popup" class="popup_menu_thread" style="display: none;">

<ul class="popup_profile">

<li><img src="{$theme['imgdir']}/profile_icons/user.png" alt="" class="vmiddle" />&nbsp;<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}">View profile</a></li>
{$post['button_find']}
<li><img src="{$theme['imgdir']}/profile_icons/thread.png" alt="find threads" class="vmiddle" />&nbsp;<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$post['uid']}">Find all threads by this user</a></li>
{$post['button_pm']}
{$post['button_email']}
{$post['button_www']}
</ul>

</div>

<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		new PopupMenu("profile_{$post['pid']}");
	}
// -->
</script>


<!--Profile quick links-->

<br />
Try this:
<div class="postbit_border {$altbg}">
Replace this:
<div class="postbit_border" style="background: #yourcolor;">

MikeInToshx

Doesn't work
replies at earlier thread might help --> changing left side post background

MikeInToshx

Thats the first thing I did. But the code is different.. this theme is 85% made out of divs.
I tried what we did in that previous thread, adding leftcol after {$altbg} and adding the .leftcol to global.css but it doesn't work.

MikeInToshx

Still need help with this.
Post your postbit template here.
Please install firebug and give it a try!
Pages: 1 2