ط*ط±ظƒط© ط¹ط±ط¶ ط§ظ„ط§ظ‚ط³ط§ظ… ط§ظ„ط±ط¦ظٹط³ظٹط© ظ…ط«ظ„ ط§ظ„ظ†ط³ط®ظ‡ 4.0 ط*طµط±ظٹط§



السلام عليكم ...

كلنا سمعنا بالنسخة 4.0 و شفنا نبذة من ستايل style النسخة الجديدة ...

اليوم و انا قاعد الف باحد المنتديات الاجنبية المختصة في الفي بي لفتني حركة عرض الاقسام الرئيسية للنسخة 4.0

و حبيت انقلها لكم لتكون بين يديكم، مع بعض التعديلات البسيطة التي قمت بها ...


طيب ركزوا معي، العمل لي رح نقوم به هو على الستايل style الافتراضي،و هو مجرد حذف و اضافة و تعديل يعني لي

عنده تاطير و مزين موقعه انصحه انه يجرب على الافتراضي قبل ...

طريقة التركيب install:

عندنا حالتين، حالة الاقسام المنفصلة و حالة الاقسام الافتراضية، انا اود ان يكون الشرح طريقة على الافتراضي احسن

من قالب template FORUMHOME نبحث عن الكود code التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <!-- main -->
<
table class="tborder" cellpadding="$stylevar&#91;cellpadding&#93;" cellspacing="$stylevar&#91;cellspacing&#93;" border="0" width="100%" align="center">
<
thead>
<
tr align="center">
<
td class="thead">&nbsp;</td>
<
td class="thead" width="100%" align="$stylevar&#91;left&#93;">$vbphrase&#91;forum&#93;</td>
<
td class="thead">$vbphrase&#91;last_post&#93;</td>
<
td class="thead">$vbphrase&#91;threads&#93;</td>
<
td class="thead">$vbphrase&#91;posts&#93;</td>
<if
condition="$vboptions&#91;'showmoderatorcolumn'&#93;">
<
td class="thead">$vbphrase&#91;moderator&#93;</td>
</if>
</
tr>
</
thead>
$forumbits
<tbody>
</code> </code>

و نستبدله بالكود code التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar&#91;cellpadding&#93;" cellspacing="$stylevar&#91;cellspacing&#93;" border="0" width="100%" align="center">

$forumbits
<tbody>
</code> </code>

في قالب template FORUMDISPLAY نبحث عن الكود code التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar&#91;cellpadding&#93;" cellspacing="$stylevar&#91;cellspacing&#93;" border="0" width="100%" align="center">
<
thead>



<
tr align="center">
<
td class="thead">&nbsp;</td>
<
td class="thead" width="100%" align="$stylevar&#91;left&#93;">$vbphrase&#91;forum&#93;</td>
<
td class="thead">$vbphrase&#91;last_post&#93;</td>
<
td class="thead">$vbphrase&#91;threads&#93;</td>
<
td class="thead">$vbphrase&#91;posts&#93;</td>
<if
condition="$vboptions&#91;showmoderatorcolumn&#93;">
<
td class="thead">$vbphrase&#91;moderator&#93;</td>
</if>
</
tr>
</
thead>
$forumbits
</table>
</code> </code>

و نستبدله بالكود code التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar&#91;cellpadding&#93;" cellspacing="$stylevar&#91;cellspacing&#93;" border="0" width="100%" align="center">
$forumbits
</table>
</code> </code>

نستبدل القوالب التالية جميعها

نستبدل كافة محتوى القالب template forumhome_lastpostby بالكود code التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> &#91;PHP&#93;<if condition="$show&#91;'lastpostinfo'&#93;">
<
div class="smallfont" style="float:left;">
<
div style="float:left;">
<
span style="white-space:nowrap"><strong>اخر مشاركة</strong>&nbsp;
<if
condition="$show&#91;'icon'&#93;"><img class="inlineimg" src="$icon&#91;iconpath&#93;" alt="$icon&#91;title&#93;" border="0" /></if>
<if
condition="$lastpostinfo&#91;'prefix'&#93;">
$lastpostinfo&#91;prefix&#93;
</
span><if condition="is_browser('safari')"><!--bug#24775-->&nbsp;</if>
<span style="white-space:nowrap">
</if>
<
a href="showthread.php?$session&#91;sessionurl&#93;goto=newpost&amp;t=$lastpostinfo&#91;lastthreadid&#93;" style="white-space:nowrap" title="<phrase 1="$lastpostinfo&#91;lastthread&#93;">$vbphrase&#91;go_first_unread_in_thread_x&#93;</phrase>"><strong>$lastpostinfo&#91;trimthread&#93;</strong></a></span>
&
nbsp;</div>
<
div style="float:left;"<if condition="is_browser('ie', 6)">; float:$stylevar&#91;left&#93;</if>">
<phrase 1="
member.php?$session&#91;sessionurl&#93;find=lastposter&amp;f=$lastpostinfo&#91;forumid&#93;" 2="$lastpostinfo&#91;lastposter&#93;">$vbphrase&#91;by_x&#93;</phrase>
</div>
<div style="
float:left;">&nbsp;
$lastpostinfo&#91;lastpostdate&#93; <if condition="!$show&#91;'detailedtime'&#93;"><span class="time">$lastpostinfo&#91;lastposttime&#93;</span></if>
</div>
</div>
<else />
<div class="
smallfont" style="float:right;">
$lastpostinfo&#91;lastpostdate&#93; <if condition="!$show&#91;'detailedtime'&#93;"><span class="time">$lastpostinfo&#91;lastposttime&#93;</span></if>
</div>
</if>
</code> </code>

&#91;/PHP&#93;
نستبدل كامل محتوى قالب template forumhome_forumbit_level2_post بالقالب template التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <tr align="center">
<
td class="alt1Active" width="100%">
<
span style="float: left;">المواضيع : $forum&#91;threadcount&#93; &nbsp; المشاركات : $forum&#91;replycount&#93; &nbsp; <br /><if condition="$vboptions&#91;'showmoderatorcolumn'&#93;">المراقبين : $forum&#91;moderators&#93;</if></span>

<
div style="float: right;"></div>
<
span style="float: right;"><img src="$stylevar&#91;imgdir_statusicon&#93;/$forum&#91;imageprefix&#93;forum_$forum&#91;statusicon&#93;.gif" alt="" border="0" id="forum_statusicon_$forum&#91;forumid&#93;" />&nbsp; &nbsp; </span>
<
div style="float:right;">

<
div align="right">
<
a href="forumdisplay.php?$session&#91;sessionurl&#93;f=$forum&#91;forumid&#93;"><strong>$forum&#91;title&#93;</strong></a></div>
<if
condition="$show&#91;'browsers'&#93;"><span class="smallfont">(<phrase 1="$forum&#91;browsers&#93;">$vbphrase&#91;x_viewing&#93;</phrase>)</span></if>

<if
condition="$show&#91;'forumdescription'&#93;"><div class="smallfont">
<
div align="right">$forum&#91;description&#93;</div></div></if>

<if
condition="$show&#91;'forumsubscription'&#93;"><div class="smallfont" style="margin-top: 6px;">
<
div align="right"><strong><a href="subscription.php?$session&#91;sessionurl&#93;do=removesubscription&amp;f=$forum&#91;forumid&#93;" rel="nofollow">$vbphrase&#91;unsubscribe_from_this_forum&#93;</a></strong></div></div></if>
<if
condition="$show&#91;'subforums'&#93;"><div class="smallfont" style="margin-top:$stylevar&#91;cellpadding&#93;px"><div align="right"><strong>$vbphrase&#91;subforums&#93;</strong>: $forum&#91;subforums&#93;</div></div></if>

</
div>
</
td>
</
tr>
<
tr><td class="alt2"><div align="right">$forum&#91;lastpostinfo&#93;</div></td></tr>
$childforumbits
</code> </code>

و اخيرا قالب template forumhome_forumbit_level1_post بالقالب template التالي:

كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <if condition="!$show&#91;'collapsable_forums'&#93;">
<
tbody>
</if>
<
tr align="center">
<
td class="alt1Active" width="100%">
<
span style="float: left;">المواضيع: $forum&#91;threadcount&#93; المشاركات: $forum&#91;replycount&#93;
</
span>
<
div style="float: right;"></div>
<
span style="float: right;"><img src="$stylevar&#91;imgdir_statusicon&#93;/$forum&#91;imageprefix&#93;forum_$forum&#91;statusicon&#93;.gif" alt="" border="0" id="forum_statusicon_$forum&#91;forumid&#93;" />&nbsp;&nbsp; </span>

<
div align="right" id="f$forum&#91;forumid&#93;">
<
a href="forumdisplay.php?$session&#91;sessionurl&#93;f=$forum&#91;forumid&#93;"><strong>$forum&#91;title&#93;</strong></a></div>
<if
condition="$show&#91;'browsers'&#93;"><span class="smallfont">(<phrase 1="$forum&#91;browsers&#93;">$vbphrase&#91;x_viewing&#93;</phrase>)</span></if>
</
div>
<if
condition="$show&#91;'forumdescription'&#93;"><div class="smallfont">
<
div align="right">$forum&#91;description&#93;</div></div></if>
<if
condition="$show&#91;'forumsubscription'&#93;"><div class="smallfont"><div align="right">
<
strong><a href="subscription.php?$session&#91;sessionurl&#93;do=removesubscription&amp;f=$forum&#91;forumid&#93;" rel="nofollow">$vbphrase&#91;unsubscribe_from_this_forum&#93;</a></strong></div></div></if>
<if
condition="$show&#91;'subforums'&#93;"><div class="smallfont" style="margin-top:$stylevar&#91;cellpadding&#93;px"> <div align="right"><strong>$vbphrase&#91;subforums&#93;</strong>: $forum&#91;subforums&#93;</div></div></if>
</
tr>
<
tr>
<
td class="alt2" colspan="2"><div align="right">$forum&#91;lastpostinfo&#93;</div></td></tr>
<if
condition="!$show&#91;'collapsable_forums'&#93;">
</
tbody>
</if>
<if
condition="$childforumbits">
<if
condition="!$show&#91;'collapsable_forums'&#93;">
<
tbody>
</if>
$childforumbits
<if condition="!$show&#91;'collapsable_forums'&#93;">
</
tbody>
</if>
</if>
</code> </code>


و النتيجة:






اخوكم مصطفى


دمتم بخير




التعديل الأخير كان بواسطة B.MuStaPha; 13 - 11 - 2014 الساعة 23:11




©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©