walid
10-31-2013, بتوقيت غرينيتش 02:23 AM
http://www.dzbatna.com/images/icons/icon30.gif ط*ط±ظƒط© ط¹ط±ط¶ ط§ظ„ط§ظ‚ط³ط§ظ… ط§ظ„ط±ط¦ظٹط³ظٹط© ظ…ط«ظ„ ط§ظ„ظ†ط³ط®ظ‡ 4.0 ط*طµط±ظٹط§ (http://www.dzbatna.com/t1384803/)
السلام عليكم ...
كلنا سمعنا بالنسخة 4.0 و شفنا نبذة من ستايل style النسخة الجديدة ...
اليوم و انا قاعد الف باحد المنتديات الاجنبية المختصة في الفي بي لفتني حركة عرض الاقسام الرئيسية للنسخة 4.0
و حبيت انقلها لكم لتكون بين يديكم، مع بعض التعديلات البسيطة التي قمت بها ...
طيب ركزوا معي، العمل لي رح نقوم به هو على الستايل style الافتراضي،و هو مجرد حذف و اضافة و تعديل يعني لي
عنده تاطير و مزين موقعه انصحه انه يجرب على الافتراضي قبل ...
طريقة التركيب install:
عندنا حالتين، حالة الاقسام المنفصلة و حالة الاقسام الافتراضية، انا اود ان يكون الشرح طريقة على الافتراضي احسن http://www.dzbatna.com/images/smilies/nosweat.gif
من قالب template FORUMHOME نبحث عن الكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <!-- 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
<tbody>
</code> </code>
و نستبدله بالكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 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[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
</table>
</code> </code>
و نستبدله بالكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$forumbits
</table>
</code> </code>
نستبدل القوالب التالية جميعها
نستبدل كافة محتوى القالب template forumhome_lastpostby بالكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> [PHP]<if condition="$show['lastpostinfo']">
<div class="smallfont" style="float:left;">
<div style="float:left;">
<span style="white-space:nowrap"><strong>اخر مشاركة</strong>
<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
<if condition="$lastpostinfo['prefix']">
$lastpostinfo[prefix]
</span><if condition="is_browser('safari')"><!--bug#24775--> </if>
<span style="white-space:nowrap">
</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></span>
</div>
<div style="float:left;"<if condition="is_browser('ie', 6)">; float:$stylevar[left]</if>">
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$ lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
</div>
<div style="float:left;">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
</div>
</div>
<else />
<div class="smallfont" style="float:right;">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
</div>
</if>
</code> </code>
[/PHP]
نستبدل كامل محتوى قالب 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[threadcount] المشاركات : $forum[replycount] <br /><if condition="$vboptions['showmoderatorcolumn']">المراقبين : $forum[moderators]</if></span>
<div style="float: right;"></div>
<span style="float: right;"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </span>
<div style="float:right;">
<div align="right">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[foru mid]"><strong>$forum[title]</strong></a></div>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
<if condition="$show['forumdescription']"><div class="smallfont">
<div align="right">$forum[description]</div></div></if>
<if condition="$show['forumsubscription']"><div class="smallfont" style="margin-top: 6px;">
<div align="right"><strong><a href="subscription.php?$session[sessionurl]do=removesubs cription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><div align="right"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
</div>
</td>
</tr>
<tr><td class="alt2"><div align="right">$forum[lastpostinfo]</div></td></tr>
$childforumbits
</code> </code>
و اخيرا قالب template forumhome_forumbit_level1_post بالقالب template التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <if condition="!$show['collapsable_forums']">
<tbody>
</if>
<tr align="center">
<td class="alt1Active" width="100%">
<span style="float: left;">المواضيع: $forum[threadcount] المشاركات: $forum[replycount]
</span>
<div style="float: right;"></div>
<span style="float: right;"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </span>
<div align="right" id="f$forum[forumid]">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[foru mid]"><strong>$forum[title]</strong></a></div>
<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">
<div align="right">$forum[description]</div></div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><div align="right">
<strong><a href="subscription.php?$session[sessionurl]do=removesubs cription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"> <div align="right"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
</tr>
<tr>
<td class="alt2" colspan="2"><div align="right">$forum[lastpostinfo]</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>
</code> </code>
و النتيجة:
http://www.rawabetvb.com/vb/attachment.php?attachmentid=26031&d=1248730180
اخوكم مصطفىhttp://www.dzbatna.com/images/smilies/nosweat.gif
دمتم بخيرhttp://www.dzbatna.com/images/smilies/icon30.gif
التعديل الأخير كان بواسطة B.MuStaPha; 13 - 11 - 2014 الساعة 23:11
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
السلام عليكم ...
كلنا سمعنا بالنسخة 4.0 و شفنا نبذة من ستايل style النسخة الجديدة ...
اليوم و انا قاعد الف باحد المنتديات الاجنبية المختصة في الفي بي لفتني حركة عرض الاقسام الرئيسية للنسخة 4.0
و حبيت انقلها لكم لتكون بين يديكم، مع بعض التعديلات البسيطة التي قمت بها ...
طيب ركزوا معي، العمل لي رح نقوم به هو على الستايل style الافتراضي،و هو مجرد حذف و اضافة و تعديل يعني لي
عنده تاطير و مزين موقعه انصحه انه يجرب على الافتراضي قبل ...
طريقة التركيب install:
عندنا حالتين، حالة الاقسام المنفصلة و حالة الاقسام الافتراضية، انا اود ان يكون الشرح طريقة على الافتراضي احسن http://www.dzbatna.com/images/smilies/nosweat.gif
من قالب template FORUMHOME نبحث عن الكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <!-- 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
<tbody>
</code> </code>
و نستبدله بالكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 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[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
</table>
</code> </code>
و نستبدله بالكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$forumbits
</table>
</code> </code>
نستبدل القوالب التالية جميعها
نستبدل كافة محتوى القالب template forumhome_lastpostby بالكود code التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> [PHP]<if condition="$show['lastpostinfo']">
<div class="smallfont" style="float:left;">
<div style="float:left;">
<span style="white-space:nowrap"><strong>اخر مشاركة</strong>
<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
<if condition="$lastpostinfo['prefix']">
$lastpostinfo[prefix]
</span><if condition="is_browser('safari')"><!--bug#24775--> </if>
<span style="white-space:nowrap">
</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></span>
</div>
<div style="float:left;"<if condition="is_browser('ie', 6)">; float:$stylevar[left]</if>">
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$ lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
</div>
<div style="float:left;">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
</div>
</div>
<else />
<div class="smallfont" style="float:right;">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
</div>
</if>
</code> </code>
[/PHP]
نستبدل كامل محتوى قالب 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[threadcount] المشاركات : $forum[replycount] <br /><if condition="$vboptions['showmoderatorcolumn']">المراقبين : $forum[moderators]</if></span>
<div style="float: right;"></div>
<span style="float: right;"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </span>
<div style="float:right;">
<div align="right">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[foru mid]"><strong>$forum[title]</strong></a></div>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
<if condition="$show['forumdescription']"><div class="smallfont">
<div align="right">$forum[description]</div></div></if>
<if condition="$show['forumsubscription']"><div class="smallfont" style="margin-top: 6px;">
<div align="right"><strong><a href="subscription.php?$session[sessionurl]do=removesubs cription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><div align="right"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
</div>
</td>
</tr>
<tr><td class="alt2"><div align="right">$forum[lastpostinfo]</div></td></tr>
$childforumbits
</code> </code>
و اخيرا قالب template forumhome_forumbit_level1_post بالقالب template التالي:
كود code:
رمز PHP:
<code style="white-space:nowrap"> <code> <if condition="!$show['collapsable_forums']">
<tbody>
</if>
<tr align="center">
<td class="alt1Active" width="100%">
<span style="float: left;">المواضيع: $forum[threadcount] المشاركات: $forum[replycount]
</span>
<div style="float: right;"></div>
<span style="float: right;"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </span>
<div align="right" id="f$forum[forumid]">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[foru mid]"><strong>$forum[title]</strong></a></div>
<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">
<div align="right">$forum[description]</div></div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><div align="right">
<strong><a href="subscription.php?$session[sessionurl]do=removesubs cription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"> <div align="right"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
</tr>
<tr>
<td class="alt2" colspan="2"><div align="right">$forum[lastpostinfo]</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>
</code> </code>
و النتيجة:
http://www.rawabetvb.com/vb/attachment.php?attachmentid=26031&d=1248730180
اخوكم مصطفىhttp://www.dzbatna.com/images/smilies/nosweat.gif
دمتم بخيرhttp://www.dzbatna.com/images/smilies/icon30.gif
التعديل الأخير كان بواسطة B.MuStaPha; 13 - 11 - 2014 الساعة 23:11
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©