Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Classic Postbit with Awards Space
Author Message
LeeFish
SimFish


Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #1
Classic Postbit with Awards Space
I just installed the awards plugin and made a couple of changes to the classic postbit. It looks nice without awards too as it get the signature in a space of its own
Code:
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>
        <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>
    <td class="{$altbg}" valign="top">
        <table width="100%">
            <tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']}{$post['subject_extra']} </strong></span>
                <br />
                <div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
                {$post['message']}
                </div>      {$post['attachments']}                          
            </td></tr>
        </table>
    </td>
</tr>
<tr>
    <td class="{$altbg}" align="center" valign="top"><strong>My Awards</strong><br /><br />
    <span class="{$altbg}" align="center">{$post['awards']}</span></td>
    <td class="{$altbg}" valign="bottom">
                            {$post['signature']}    
                        
                <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                </div>                              
    </td>
</tr>
<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
    <td class="{$altbg}" style="vertical-align: middle;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">    
            <td class="trow1 post_buttons {$unapproved_shade}">
                <div class="author_buttons float_left"><div class="author">
{$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></div>
                <div class="post_management_buttons float_right"><div class="postbutton">{$post['button_edit']}{$post['button_quickdelete']}
                </div></div>
            </td>        
            </tr>
    </table>
    </td>
</tr>
</table>

Tried to add a pic but attachment failed....

[Image: postbit.jpg]

[Image: leelink.gif]
MyBB 1.6 & XThreads
(This post was last modified: 11-21-2010, 10:06 PM by LeeFish)
11-21-2010, 10:03 PM
delaghetto1
Junior Member


Posts: 6
Joined: Nov 2010
Reputation: 0
Post: #2
RE: Classic Postbit with Awards Space
Whewre do you find these codes at?
11-22-2010, 09:28 PM
Serial Thrilla
Junior Member


Posts: 5
Joined: Nov 2010
Reputation: 0
Post: #3
RE: Classic Postbit with Awards Space
Howdy LeeFish,

could you do the same for the new postbit?
11-23-2010, 03:48 AM
LeeFish
SimFish


Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #4
RE: Classic Postbit with Awards Space
Well, there is not a lot of point with a "special"layout for horizontal postbit, it already is layed out ok. But here is the postbit:

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">
                <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['awards']}
                        </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>

                <div class="post_body" id="pid_{$post['pid']}">
                    {$post['message']}
                </div>
                {$post['attachments']}                
                                {$post['signature']}
                <div class="post_meta" id="post_meta_{$post['pid']}">
                {$post['iplogged']}
                </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']}
                </div>
                <div class="post_management_buttons float_right">{$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>
    </tbody>
</table>

[Image: leelink.gif]
MyBB 1.6 & XThreads
(This post was last modified: 11-23-2010, 05:45 AM by LeeFish)
11-23-2010, 05:44 AM
lastlayon
Junior Member


Posts: 3
Joined: Nov 2010
Reputation: 0
Post: #5
RE: Classic Postbit with Awards Space
this will be quite useful for others users ;P!
11-24-2010, 04:54 AM
Moxxxie
Junior Member


Posts: 3
Joined: Nov 2010
Reputation: 0
Post: #6
RE: Classic Postbit with Awards Space
thanks for this! Saved me a bit of time!
11-26-2010, 04:14 PM
1master1
Junior Member


Posts: 23
Joined: Aug 2010
Reputation: 0
Post: #7
RE: Classic Postbit with Awards Space
thanks lee
11-26-2010, 11:53 PM
Irion
Junior Member


Posts: 12
Joined: Nov 2010
Reputation: 0
Post: #8
RE: Classic Postbit with Awards Space
Oh, thanks for this. I was looking for something similar ! Cheers mate !
57 minutes ago
 




User(s) browsing this thread: 1 Guest(s)