Staff's postbit different from that of users
#1
Star 
Original topic: http://mybbarena.it/showthread.php?tid=51&pid=94#pid94

The effect get will be:

[Image: guida1.png]

[Image: guida3.png]

[Image: guida_2.png]

We download the image at the bottom of the topic and we upload in "/images" folder

Go to Theme/template/your Theme/global.css and add:

.classic4, .classic3, .classic6 {
background-repeat: repeat-x !important;
background-image: url('images/staff_postbit.png') !important;
}

.normal4, .normal3, .normal6 {
background-repeat: repeat-x;
background-position: top;
background-image: url('images/staff_postbit.png');
}


Go to Theme/template/your template/postbit template/postbit

to look for this:
<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>

and we add at the attribute "class" of the first line this:
normal{$post['usergroup']}

so as to get:
<td class="normal{$post['usergroup']} trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>


Go to Theme/template/your template/postbit template/postbit_classic

to look for this:
		<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
		<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
		<span class="smalltext">
			{$post['usertitle']}<br />
			{$post['userstars']}
			{$post['groupimage']}
			{$post['useravatar']}<br />
			{$post['user_details']}
		</span>
	</td>

and we add at the attribute "class" of the first line this:
normal{$post['usergroup']}

so as to get:
		<td class="classic{$post['usergroup']} {$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
		<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
		<span class="smalltext">
			{$post['usertitle']}<br />
			{$post['userstars']}
			{$post['groupimage']}
			{$post['useravatar']}<br />
			{$post['user_details']}
		</span>
	</td>


Attached Files Image(s)
   
Reply
#2
A good idea, just need to come up with a more suitable image for my theme.
Join this Gaming Forum
Reply
#3
You can also to apply a background-color different or you can to find a beautiful image Smile
Reply
#4
I was searching a long time for this!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)