السلام عليكم
اليوم جايب لكم شكل جديد في عالم المنتديات
للشكل الخارجي للمنتدى
متعودين على الجداول العاديه
اللي هي اول عمود يكون ايقونه والعمود اللي بعده يكون اسم القسم وبعده معلومات اخر موضوع وهكذا
اليوم فيه شكل جديد يحتاج الى تعديل بعض القوالب
قبل لانبدأ راح اعرض الشكل مع الشرح طريقة .. يمكن مايعجبك ولا تكمل الموضوع
الشكل الخارجي الجديد + الشرح طريقة العام له
مثال حي: http://www.aoubh.com/vb
واختر من الاسفل استايل style
default 3.8.3
أكيد عجبك صح ..
طيب خلنا نبدأ الشغل
أول شي تنبيه للجميع .. احفظ نسخه من القالب template قبل التعديل عليه ..
والتعديلات صالحه فقط للاستايل style المتمدد .. ولم اجربها على الاستايل style الغير متمدد
القوالب اللتي سوف يتم التعديل عليها هي:
Forumhome
Forumdisplay
forumhome_forumbit_level2_post
forumhome_forumbit_level1_post
forumhome_forumbit_level1_nopost
forumhome_lastpostby
بسم الله نبدأ
نفتح قالب template
Forumhome
ابحث عن
رمز 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>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">
<a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->
</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">
$forumbits
<tbody>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">
<a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->
</code> </code>
واحفظ
بعد ذلك افتح قالب template
Forumdisplay
وابحث عن التالي
رمز 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>
واستبدله بالتالي
رمز 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_forumbit_level2_post
وساتبدل مابداخله بالتالي
رمز PHP:
<code style="white-space:nowrap"> <code> <tr align="center">
<td class="alt1Active" width="100%">
<span style="float: left;"><font face="Tahoma"><span style="font-size: 8pt">المواضيع:</span></font>
<span style="font-size: 8pt">$forum[threadcount]</span>
<font face="Tahoma"><span style="font-size: 8pt">الردود:</span></font>
<span style="font-size: 8pt">$forum[replycount]</span> <br /><if condition="$vboptions['showmoderatorcolumn']">
<font face="Tahoma"><span style="font-size: 8pt">المراقبين:</span></font>
<font face="Tahoma"><span style="font-size: 8pt">$forum[moderators]</span></font></if></span>
<div style="float: right;"></div>
<span style="float: left;"><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[forumid]"><strong>$forum[title]</strong></a></div>
<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=removesubscription&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
واستبدل مابداخله بالتالي
رمز 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;"><font face="Tahoma" style="font-size: 8pt">المواضيع:</font>
<span style="font-size: 8pt">$forum[threadcount]</span> <font face="Tahoma">
<span style="font-size: 8pt">الردود: </span></font><span style="font-size: 8pt">$forum[replycount]</span>
</span>
<div style="float: right;"></div>
<span style="float: left;"><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[forumid]"><strong>$forum[title]</strong></a></div>
</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=removesubscription&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>
واحفظ
والآن نفتح قالب template
forumhome_forumbit_level1_nopost
ونستبدل مابداخله بالتالي
رمز PHP:
<code style="white-space:nowrap"> <code> <if condition="!$show['collapsable_forums']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
</if>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">2<else />1</if>">
<if condition="$childforumbits">
<a style="float:$stylevar[left]" 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>
</if>
<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>
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
</if>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if></table>
<div style="padding: 0 0 15px 0;"></div>
</code> </code>
واحفظ
آخر تعديل .. نفتح قالب template
forumhome_lastpostby
ونستبدل مابداخله بالتالي
رمز PHP:
<code style="white-space:nowrap"> <code> <if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div>
<span style="white-space:nowrap">
<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>
<table border="0" width="46%" id="table1">
<tr>
<td width="83"><div style="white-space:nowrap<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>
</td>
<td><div align="$stylevar[right]" style="white-space:nowrap">
<p align="right">$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>
</td>
</tr>
</table>
</div>
</div>
</div>
<else />
<div class="smallfont" align="$stylevar[right]">
<p align="center">$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>
</div>
</code> </code>
واحفظ
وبكذا نكون انتهينا وحصلت على الشكل الجديد
ان شاء الله اكون وفقت بالشرح طريقة
وأي استفسار أو تعديل حسب طلبك .. انا حاضر
جميع محتوى الموضوع قابل للنشر ..
ولكن اتمنى حفظ حقوق الملكيه لي .. ولمنتديات ديزاد باتنة
++++++++++
+ والسلام ختام
+
++++++++++