MyBB Community Forums

Full Version: Another Postbit Help Needed !
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
First of all here is the image Smile
[Image: e737d6.png]

Now in that highlighted area I wanted to add the text "Awards" in small letters right on top of the blue award box.

Help is appreciated Smile


Don't consider the arrow I accidentally put it up there in the image Toungue
When there is <td><center>your award</center></td>

make it like this:-

<td>
     <tr>
        <td class="smalltext">Awards</td>
    </tr>
    <tr>
        <td><center>your all award</td>
    </tr>
</td>
I know I've seen that thead somewhere...
Not seems to be working
[Image: 564347.png]

I edited like this

<td>
                                                    <tr>
                                                        <td class="smalltext">Awards</td>
                                                    </tr>
                                                <tr> 
                                                <td width="158">                                                   
                                                <div class="postbit_award">                                    
                                                <center><span style="white-space:normal; width: 100%;">{$post['awards']} </span></center>
                                                </div>
                                                </tr>
                                                </td>
                                                        
					</tr>
use this if this works, i have changed my code
<td>
   <div class="smalltext">Awards</div>
            <div width="158" class="postbit_award">                                                   
	                              <center>
	 			<span style="white-space:normal; width: 100%;">{$post['awards']} </span>
				      </center>
             </div>
</td>
Still isn't working mate
It gets below the user avatar

here is the orig code 
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td class="tcat tcat_right tcat_left tcat_top">
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>

		<tr>
			<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>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}<br />
                                                        {$post['newpoints_postbit']}<br />
                                                </td>
                                                <td width="158">
                                                <div class="postbit_award">                                    
                                                <center><span style="white-space:normal; width: 100%;">{$post['awards']} </span></center>
                                                </div>
                                                </td>
                                                        
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
<hr />
				<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				<div class="float_right">{$post['iplogged']}</div>
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
				</div>
				<div class="post_management_buttons float_right">{$post['button_spam']}{$post['button_bday']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
		<tr style="{$post['imb_display']};" id="imb_{$post['pid']}">
			{$post['itsmybirthday_wishes_data']}
		</tr>
	</tbody>
</table>

Can you make the necessary edits it it ?
I'll copy the whole of it and replace it with the existing one Smile
here is code, this should fix it, reply back with confirmation:-
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tbody>
        <tr>
            <td class="tcat tcat_right tcat_left tcat_top">
                <div class="float_left smalltext">
                    {$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>
                {$post['posturl']}
            </td>
        </tr>

        <tr>
            <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>
                        <td class="smalltext post_author_info" width="165">
                            {$post['user_details']}<br />
                            {$post['newpoints_postbit']}
                       </td>
                            <td width="158">
                                  <div class="postbit_award">                                    
		<span style="white-space:normal; width: 100%;text-align:center;">
			Awards<br />
			{$post['awards']} 
		</span>
	        	          </div>
                            </td>
</tr>
                </table>
            </td>
        </tr>

        <tr>
            <td class="trow2 post_content {$unapproved_shade}">
                <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
<hr />
                <div class="post_body" id="pid_{$post['pid']}">
                    {$post['message']}
                </div>
                {$post['attachments']}
                {$post['signature']}

                <div class="post_meta" id="post_meta_{$post['pid']}">
                <div class="float_right">{$post['iplogged']}</div>
                </div>
            </td>
        </tr>

        <tr>
            <td class="trow1 post_buttons {$unapproved_shade}">
                <div class="author_buttons float_left">
                    {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
                </div>
                <div class="post_management_buttons float_right">{$post['button_spam']}{$post['button_bday']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
                </div>
            </td>
        </tr>
        <tr style="{$post['imb_display']};" id="imb_{$post['pid']}">
            {$post['itsmybirthday_wishes_data']}
        </tr>
    </tbody>
</table>

I have just edited from line 34-38

Removed <center> tag used <span style="text-align:center;"> in place of it and within span just added <br /> tag to get the look you looking for, try it and post your result.
[Image: 38d3dc.png]


Well the "Award" text is now inside the box but it looks there too Big Grin

Can we change its color and shift it to the center of the box ?

EDIT : The awards have now shifted to the left side with the text too..
See the image.
(2011-07-18, 11:52 AM)sumicool Wrote: [ -> ]EDIT : The awards have now shifted to the left side with the text too..
See the image.

Do you want them to align center, ?
Yeah, the awards and the "Awards" text should be in center of the blue box Smile
Pages: 1 2