خب میریم سر انتقال thead به زیر tcat
یکی از کار هایی که به یه قالب وی بی جلوه خاصی میده همین کاری هست که ما الان می خوایم انجام بدیم،سایتی که معرفی کردم یه نمونه از این جور قالب روشه...
برای شروع کار به تنظیمات استایل برید و به بخش ویرایش قالب استایل دیفالت برید و روی <<>> کلیک کنید تا لیست کامل قالب ها باز بشه...
بعد از باز شدن لیست به بخش قالب های صفحه اصلی برید و froumhome رو با دوبار کلیک باز کنید تا به بخش ویرایش قالب منتقل بشید:
برای اینکه ما thead رو به زیر tcat منتقل کنیم مرحله اول اینه که ما thead رو از بالای tcat برداریم،برای این کار کد زیر رو پیدا کنید و حذف کنید...
کد:
<thead>
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead> بعد کارو ذخیره کنید و به forumhome_forumbit_level1_nopost بیاید و کد زیر رو بجای تمام کد های درون قالب بزارید:
کد:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
</if>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead" width="35"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="300">$vbphrase[last_post]</td>
<td class="thead" width="40">$vbphrase[thread]</td>
<td class="thead" width="40">$vbphrase[post]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div> همونطور که میشه به خوبی مشاهده کرد من کد هایی که از قالب forumhome حذف کردمو اینجا جاگذاری کردم،و همونطور که گفتم شما باید حتما با کد های مربوط به تیبل آشنایی داشته باشید تا بتونید این کارو انجام بدید.
کد:
<div style="padding:0px 0px 16px 0px;"></div>
این کد برای اینه که وقتی یه انجمن تموم شد انجمن بعدی به اندازه 16 پیکسل از پایین فاصله دار بشه که می تونید خودتون به دلخوام تغییرش بدید.
خب میرسیم به مرحله آخر ویرایش قالب:forumhome_forumbit_level2_post
شما باید این قسمت رو:
کد:
<td class="alt2">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td> به این صورت ویرایش کنید:
کد:
<td class="alt2" nowrap="nowrap" width="300">$forum[lastpostinfo]</td>
<td class="alt1" width="40">$forum[threadcount]</td>
<td class="alt2" width="40">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1" width="120"><div class="smallfont">$forum[moderators] </div></td> و کد نهایی به این صورن میشه:
کد:
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap" width="300">$forum[lastpostinfo]</td>
<td class="alt1" width="40">$forum[threadcount]</td>
<td class="alt2" width="40">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1" width="120"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits خب حالا با کمترین تغییر تو قالب انجمن ما thead زیر tcat قرار گرفت و 16 پیکسل فاصله بین هر انجمن تعیین شد...
امیدوارم مفید بوده باشه...
علاقه مندی ها (Bookmarks)