بسم الله الرحمن الرحيم
درس اليوم بسيط جدا و لكن يبغاله تركيز شوى
بأذن الله سأشرح طريقة تعديل على الـ FORUMHOME
لكى تصبح مثل استايل الجيل الرابع VBULLETIN V.4
هذا الموضوع حصرى لـ نادى دعم الفى بى
مثال قبل العمل
بسم الله نبدأ بالشرح
ملحوظه هامه جدا : يجب اخذ نسخه من كل قالب سيتم التعديل عليه للاحتياط
القوالب التى سيتم التعديل عليها
FORUMHOME
forumhome_forumbit_level2_post
forumhome_lastpostby
forumhome_forumbit_level1_post
FORUMDISPLAY
USERCP
افتح قالب forumhome
ابحث عن :
استبدله بـ :
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<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>
$forumbits
ثم حفظ
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
$forumbits
افتح قالب forumhome_forumbit_level2_post
و استبدل جميع محتوياته بـ :
ثم حفظ
<tr align="center">
<td class="alt1"><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>
<span class="smallerfont"> $vbphrase[threads]: $forum[threadcount] $vbphrase[posts]: $forum[replycount]
<if condition="$show['browsers']"> (<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</if></span>
</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>
<if condition="$vboptions['showmoderatorcolumn'] AND $forum[moderators]">
<div class="smallfont" style="margin-top:$stylevar[cellpadding]px">$vbphrase[moderators]: $forum[moderators]</div>
</if>
</td>
</tr>
<tr align="right">
<td class="alt2" colspan="2" style="padding: 5px 24px 5px 0px"><div class="smallerfont"><strong>$vbphrase[last_post]</strong>: $forum[lastpostinfo]</div>
</td>
</tr>
<tr>
<td style="padding: 0px 0px 0px 0px" colspan="<if condition="$show['inlinemod']">3<else />2</if>"><div class="hr"><hr /></div></td>
</tr>
$childforumbits
افتح قالب forumhome_lastpostby
استبدل جميع محتوياته بـ :
ثم حفظ
<if condition="$show['lastpostinfo']">
<span style="white-space:nowrap">
<if condition="$lastpostinfo['prefix']">
$lastpostinfo[prefix]
<if condition="is_browser('safari')"><!--bug#24775--> </if>
</if>
<a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a> <phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a></span>
<else />
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</if>
افتح قالب FORUMDISPLAY
ابحث و احذف :
ثم حفظ
<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_post
استبدل جميع محتوياته بــ :
ثم حفظ
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<span class="smallerfont"> $vbphrase[threads]: $forum[threadcount] $vbphrase[posts]: $forum[replycount]
<if condition="$show['browsers']"> (<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</if></span>
</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>
<if condition="$vboptions['showmoderatorcolumn'] AND $forum[moderators]">
<div class="smallfont" style="margin-top:$stylevar[cellpadding]px">$vbphrase[moderators]: $forum[moderators]</div>
</if>
</td>
</tr>
</table>
</td>
</tr>
<tr align="right">
<td class="alt2" colspan="2" style="padding: 5px 24px 5px 0px"><div class="smallerfont"><strong>$vbphrase[last_post]</strong>: $forum[lastpostinfo]</div>
</td>
</tr>
<tr>
<td style="padding: 0px 0px 0px 0px" colspan="<if condition="$show['inlinemod']">3<else />2</if>"><div class="hr"><hr /></div></td>
</tr>
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
افتح قالب USERCP
ابحث عن :
استبدله بـ :
<!-- ############## SUBSCRIBED FORUMS ############## -->
<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>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"><img id="collapseimg_usercp_forums" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_forums].gif" alt="" border="0" /></a>
$vbphrase[subscribed_forums]
</td>
</tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
<tr align="center" valign="bottom">
<td class="thead" width="2%"> </td>
<td class="thead" align="$stylevar[left]" width="80%">$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" width="20%">$vbphrase[moderator]</td>
</if>
</tr>
$forumbits
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED FORUMS ############## -->
ثم حفظ
<!-- ############## SUBSCRIBED FORUMS ############## -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"><img id="collapseimg_usercp_forums" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_forums].gif" alt="" border="0" /></a>
$vbphrase[subscribed_forums]
</td>
</tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
$forumbits
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED FORUMS ############## -->
و فى اعدادات الـ CSS الاضافيه
اضف هذا الكود :
ثم حفظ
.smallerfont, .theadalt {
font: 10px verdana, helvetica, arial, geneva, lucida, 'lucida grande', sans-serif;
}
div.hr {
height: 1px;
background: #C8CAFD url(clear.gif) repeat-x;;
width: 100%;
}
div.hr hr {
display: none;
}
انتهينا من الشرح
يسمح بنقل الموضوع مع ذكر المصدر
الموضوع الأصلي : http://www.d3m-vb.net/vb/15906-شرح-ج...رابع.html




رد مع اقتباس


مواقع النشر (المفضلة)