کلیدستان

نسخه‌ی کامل: قرار دادن عنوان ((دسته بندی ها)) در سمت راست صفحات انجمن
شما در حال مشاهده نسخه آرشیو هستید. برای مشاهده نسخه کامل کلیک کنید.
سلام .
ممکن است عنوان ((دسته بندی ها)) ، همانند شکل زیر ، به جای سمت راست در سمت چپ صفحات انجمن نمایش داده شود :


دقت کنید که ممکنه در یک مرورگر در سمت راست و در مرورگری دیگر در سمت چپ نمایش داده شود . مثلا برای من با مرورگر opera در سمت راست است ، اما برای مرورگر firefox در سمت چپ نمایش داده می شود که بنابراین مجبورم کدهای قالب رو تغییر بدم تا در هر دو مرورگر در سمت راست نمایش داده شود .

برای قرار دادن این عنوان ها در سمت راست صفحه ، باید به آدرس زیر برویم :

پنل مدیریت >> قالب ها و پوسته ها >> قالب ها

سپس قالبی که از آن استفاده می کنیم را باید انتخاب کنیم . در قسمت Forum Bit Templates ، بخش forumbit_depth1_cat را انتخاب می کنیم تا بتوانیم کدهای آن را ویرایش کنیم . مثلا کدهای این بخش در قالب من به صورت زیر می باشد :

کد:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />

در کدها ، مشخصه align="right" را اضافه می کنیم تا به صورت زیر درآیند (البته برای قالب من) :

کد:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div align="right"><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />

تغییرات را ذخیره می کنیم .
از این به بعد ، عنوان ((دسته بندی ها)) در سمت راست صفحه نمایش داده خواهد شد .