السلام عليكم
تعديل تمبلت يتيح لك اظهار او اخفاء المواضيع المثبته وفي المثال يتضح كل شىء.
صاحب التعديل: tmhall
طريقة التركيب:
افتح تمبلت FORUMDISPLAY
ابحث عن:
كود PHP:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$announcebits
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2"> </td>
<else />
<td class="thead"> </td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</span></td>
</tr>
<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky
<!-- <tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>"> </td></tr>-->
</if>
$threadbits
<!-- end show threads -->
استبدله بالتالي:
كود PHP:
<!-- Start Collapsible Sticky Table -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$show['stickies']">
<thead width="100%">
$announcebits
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2"> </td>
<else />
<td class="thead"> </td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']">
<span style="float:$stylevar[right]">
<a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]
</span>
</if>
<a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap">
<span style="white-space:nowrap">
<a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]
</span>
</td>
<td class="thead" align="center" nowrap="nowrap">
<span style="white-space:nowrap">
<a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]
</span>
</td>
<td class="thead" align="center" nowrap="nowrap">
<span style="white-space:nowrap">
<a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]
</span>
</td>
</tr>
<tr>
<td class="tcat" colspan="6">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumdisplay_stickies')"><img id="collapseimg_forumdisplay_stickies" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumdisplay_stickies].gif" alt="" border="0"/></a>
</td>
</tr>
</thead>
<tbody id="collapseobj_forumdisplay_stickies" style="$vbcollapse[collapseobj_forumdisplay_stickies]">
<tr>$threadbits_sticky</tr>
<tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>"> </td></tr>
</tbody>
<!-- End Collapsible Sticky Table -->
<else />
$announcebits
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2"> </td>
<else />
<td class="thead"> </td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</span></td>
</tr>
</if>
<if condition="$show['threads']">
<!-- show threads -->
$threadbits
<!-- end show threads -->
منقول من بلاد الفى بى