طريقة فصل الأقسام في الرئيسية

Soubhi Ajam

:: مشرف عام ::
طاقم الإدارة
10 أبريل 2010
2,693
24
0
الدعم العربي
www.syria-share.com
السلام عليكم ورحمة الله وبركاته

التعديل على ثلاث قوالب

أولا - نفتح قالب FORUMHOME ونستبدل ما بين الكودين التاليين:

كود:
<!-- main -->
<!-- /main -->
بالكود التالي:

كود:
<!-- /main -->
<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]"  cellspacing="$stylevar[cellspacing]" border="0" width="100%"  align="center">
<thead>
<tr>
<td class="tcat" colspan="<if  condition="$vboptions['showmoderatorcolumn']">6<else  />5</if>"><phrase  1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php?$session[sessionurl]"  2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</thead>
</table>
</if>
<!-- / guest welcome message -->
<!-- main -->
$forumbits
<!-- /main -->
في نفس القالب نبحث عن:

كود:
</table>
<br />
<!-- end what's going on box -->
ونستبدله بالكود التالي:

كود:
<tbody>
<tr>
<td class="thead" align="center" colspan="<if  condition="$vboptions['showmoderatorcolumn']">6<else  />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
   
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div></td>
</tr>
</tbody>
</table>
<br />
<!-- end what's going on box -->
نحفظ القالب

ثانيا نفتح قالب 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>">
<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>
<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="200">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr><td class="thead" style="line-height: 0; padding: 0;  margin: 0;" colspan="<if  condition="$vboptions[showmoderatorcolumn]">6<else  />5</if>"><img src="$vboptions[cleargifurl]" alt=""  width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>
نحفظ القالب

ثالثا نبحث عن قالب forumhome_forumbit_level2_post
ونستبدل جميع محتواه بالكود التالي:

كود:
<tr align="center">
<td class="alt2" width="35"><img  src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt=""  border="0" /></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]">$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" width="200" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1" width="65">$forum[threadcount]</td>
<td class="alt2" width="65">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1" width="120"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
نحفظ القالب

وبالتوفيق للجميع