Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 690

Staff's postbit different from that of users

$
0
0
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:

Code:
.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:
Code:
<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:
Code:
normal{$post['usergroup']}

so as to get:
Code:
<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:
Code:
        <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:
Code:
normal{$post['usergroup']}

so as to get:
Code:
        <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>


.png  staff_postbit.png (Size: 6.69 KB / Downloads: 62)

Viewing all articles
Browse latest Browse all 690

Trending Articles