مرجع پارسی MyBB
تغییر استایل برای پست بیت - نسخه‌ی قابل چاپ

+- مرجع پارسی MyBB (https://community.mybbiran.com)
+-- انجمن: آرشیو (https://community.mybbiran.com/forum-128.html)
+--- انجمن: آرشیو انجمن های قدیمی (https://community.mybbiran.com/forum-129.html)
+---- انجمن: مای بی بی نسخه 1.6 (https://community.mybbiran.com/forum-83.html)
+----- انجمن: خدمات پشتیبانی MyBB 1.6 (https://community.mybbiran.com/forum-89.html)
+------ انجمن: مشکلات پوسته (https://community.mybbiran.com/forum-91.html)
+------ موضوع: تغییر استایل برای پست بیت (/thread-17882.html)



تغییر استایل برای پست بیت - MohamadReza - ۱۳۹۴/۲/۲

سلام
میخواستم کلاس این قسمتو عوض کنم ولی تو postbit classic هرچی گشتم نتونستم به نتیجه ای برسم ممنون میشم راهنمایی کنید. میخوام کلا از استایل trow 1 trow 2  خارج کنمشون
[تصویر:  h4coe42bhsag3vz6uex1.png]


RE: تغییر استایل برای پست بیت - firstboy000 - ۱۳۹۴/۲/۲

دقیقا کدوما رو؟
کدهای قالب پست بیت کلاسیک رو هم بذارید

آدرس انجمنتون هم اصلاح کنید.


RE: تغییر استایل برای پست بیت - MohamadReza - ۱۳۹۴/۲/۲

دقیقا کل این قسمت. میخوام با کلاس جدید طراحیش کنیم
کد:
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tb" 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>
<div class="post_field"><strong><span class="largetext">{$post['profilelink']}</span></strong> </div>
        <span class="smalltext">
<div class="post_field">{$post['usertitle']}</div>
<div class="post_field">{$post['userstars']}</div>
<div class="post_field">{$post['groupimage']}</div>            
<div class="post_field">{$post['useravatar']}</div>        
            {$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']}" class="post_body">
                {$post['message']}
            </div>
            {$post['attachments']}
            {$post['signature']}
            <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                {$post['iplogged']}
            </div>
        </td></tr>
    </table>
</td>
</tr>
<tr>
    <td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']} {$post['onlinestatus']}</span></td>
    <td class="{$altbg}" style="vertical-align: middle;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">
                <td align="right" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
                <td align="left">{$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']}</td>
            </tr>
        </table>
    </td>
</tr>
</table>



RE: تغییر استایل برای پست بیت - firstboy000 - ۱۳۹۴/۲/۳

خب هر جا از کداتون که class دیدید تغییرش بدید.[تصویر:  photos.png] نمونه:
کد:
       <td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>

که شما باید بجای متغیر {$altbg}
کلاس خودتون رو قرار بدید