المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : تعديل بعض القوالب في الاستايلات


ابن الصحراء
04-10-2019, 11:24 AM
الحمدلله والصلاة والسلام على رسول الله وعلى آله وصحبه أجمعين

اخواني اخواتي اعضاء منتديات طموح ديزاين

السلام عليكم ورحمة الله وبركاته

بعد تجوالي في المنتديات العامة حصلت ان بعض الاستايلات ينقصها بعض التحسينات ليظهر الاستايل باشكل المطلوب سواء من من اصحاب المواقع وكذلك رواد المنتديات من الاعضاء او الزوار.
من ملاحظاتي كالاتي:
1- من الاستايلات لايوجد كود المواضيع التي لم يرد عليها وهذا مهم جداَ لدعم صاحب الموضوع المطروح.
2- من الاستايلات لايوجد بها اضافة موضوع ورد على موضوع في صفحة واحدة بمعنى ان يكون اضافة موضوع والرد على الموضوع في صفحة واحدةالرد على الموضوع.
3- من الاستايلات استخدامى ادوات الادارة مثل المودة تطوير ابو راشد(منتديات المودة) وهذا الشائع بين المنتديات العامة
والصندوق الماسي تطوير ابو عمر(مدرسة المشاغبين) وهذا الشائع في تصميم الاستايلات.
تكون ادوات غير مكتملة وخاصة في اضافة المواضيع الجديدة ونراها مكتملة في الرد على المواضيع.
4- طريقة ترتيب واخفاء الاقسام الفرعية كثير من الاقسام الرئسية بها اقسام فرعية وتاخذ حيزاَ كبيراَ من الصفحة الرئيسية للمنتدى وهذا خياري حسب مايراه صاحب المنتدى.
لكن من وجهة نظري انها تساهم في تقليص مساحة الصفحة وتعطي شكل جميل للمنتدى.

انا لست مبرمج ولا عندي خلفية للدعم الفني ولكن هذا قليل مما تعلمت من ممارستي للمنتديا ت والبحث فيها عن المفيد لاخواني اصحاب المواقع وكذلك لتعم الفايدة للجميع نفعنا الله واياكم في الدنيا والاخرة:

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


1- المواضيع التي لم يرد عليها

كود المواضيع التي لم يرد عليها
طريقة التركيب:
التركيب
1_- الأستايلات والقوالب
2- البحث في القوالب
3- تختار قالب الهيدر او النافبار , للأستايل المراد وضع الكود فيه
4- تضع الكود في آخر القالب
5- حفظ

كود PHP:
<!-- مواضيع لم يرد عليها -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 2</title>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<body>
<p class="style1">
<img src="images/call.gif" /><a target="_blank" href="https://www.******.com/vb/search.php?do=process&amp;replyless=1">&lt;&lt;&lt; مواضيع لم يرد عليها &gt;&gt;&gt;</a><img src="images/call.gif" /></p>
</body>
</html>
<!-- مواضيع لم يرد عليها -->

مع ملاحظة تغيير اسم المنتدى

2- لاضافه زر موضوع جديد بجوار اضافه رد
التعديل كالاتي
افتح قالب SHOWTHREAD و ابحث عن

كود PHP:
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />


و استبدله بالتالي
كود PHP:
<if condition="$show['largereplybutton']">
<td class="smallfont">
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;
<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />


ملاحظة:
يجب اخذ نسخه من القالب قبل التعديل

3- ادوات الادارة كاملة في اضافة موضوع جديد والرد على الموضوع :
اتبع هذه الطريقة و نفذ الاتى:
من لوحة التحكم
الاستيلات والقوالب
ثم البحث فى القوالب
ثم ابحث عن
editor_toolbar_on
ثم استبدل القالب بهذا الكود
المرفق:

كود PHP:

كود PHP:
$vBeditTemplate[clientscript]
<!-- هاك عام توسيط أزرار المحرر -->
<!-- لحذف الهاك نحذف السطر التالي -->
<center>
<!-- هاك عام ـ زيادة عرض المحرر لعرض الصفحة -->
<!-- لحذف الهاك يتم حذف ما يلي من السطر التالي width="100%" -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td id="$editorid" class="vBulletin_editor" width="100%">
<div id="{$editorid}_controls" class="controlbar">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
<if condition="$show['font_bbcode'] OR $show['size_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['font_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['size_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['color_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="{$editorid}_color_out"><img src="$stylevar[imgdir_editor]/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['wysiwygsmilies']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['attach']">
<td><div class="imagebutton" id="{$editorid}_popup_attach" title="$vbphrase[attachments]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_editor]/attach.gif" alt="" width="21" height="20" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>

<!--
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_cut"><img src="$stylevar[imgdir_editor]/cut.gif" width="21" height="20" alt="$vbphrase[cut]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" width="21" height="20" alt="$vbphrase[copy]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" width="21" height="20" alt="$vbphrase[paste]" /></div></td>
-->

<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_undo"><img src="$stylevar[imgdir_editor]/undo.gif" width="21" height="20" alt="$vbphrase[undo]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td>
<!-- هاك عام توسيط أزرار المحرر -->
<!-- تم حذف السطر التالي ويعاد لحذف الهاك -->
<!-- <td width="100%">&nbsp;</td> -->
<if condition="is_browser('ie') AND !is_browser('mac')">
<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
</if>
<td>
<div class="imagebutton" id="{$editorid}_cmd_resize_0_100"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
<div class="imagebutton" id="{$editorid}_cmd_resize_1_100"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
</td>
<if condition="$show['wysiwyg_compatible']">
<td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
</if>
</tr>
</table>
<if condition="!$show['basicbbcodeonly']">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<if condition="$show['basic_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>
</if>
<if condition="$show['align_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<else />
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
</if>
</if>
<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['list_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist"><img src="$stylevar[imgdir_editor]/insertorderedlist.gif" width="21" height="20" alt="$vbphrase[ordered_list]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_insertunorderedlist"><img src="$stylevar[imgdir_editor]/insertunorderedlist.gif" width="21" height="20" alt="$vbphrase[unordered_list]" /></div></td>
</if>
<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="$stylevar[imgdir_editor]/outdent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="$stylevar[imgdir_editor]/indent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
<else />
<td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="$stylevar[imgdir_editor]/indent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="$stylevar[imgdir_editor]/outdent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
</if>
</if>
<if condition="$show['url_bbcode'] OR $show['img_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<if condition="$show['url_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="$stylevar[imgdir_editor]/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_unlink"><img src="$stylevar[imgdir_editor]/unlink.gif" width="21" height="20" alt="$vbphrase[remove_link]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_email"><img src="$stylevar[imgdir_editor]/email.gif" width="21" height="20" alt="$vbphrase[insert_email_link]" /></div></td>
</if>
<if condition="$show['img_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
</if>
</if>
<if condition="$show['quote_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
</if>
<if condition="$show['code_bbcode'] OR $show['html_bbcode'] OR $show['php_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<if condition="$show['code_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
</if>
<if condition="$show['html_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif" width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
</if>
<if condition="$show['php_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
</if>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
$vBeditTemplate[extrabuttons]
</tr>
</table>
</if>
</div>
<!-- هاك عام توسيط أزرار المحرر -->
<!-- لحذف الهاك نحذف السطر التالي -->
</center>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td class="controlbar">
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>
</td>
<if condition="$smiliebox">
<!-- هاك عام ـ الإبتسامات اسفل المحرر -->
</tr><tr>
<!-- هاك عام ـ الإبتسامات اسفل المحرر -->
<td class="controlbar">
$smiliebox
</td>
</if>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />
<script type="text/javascript">
<!--
vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie', undefined, '$ajax_extra');
//-->


4- اخفاء الاقسام الفرعية
طريقة عرض المنتديات الفرعية بقائمه منسدله مميز
اتبع هذا الشرح المختصر
في القوالب التالية

forumhome_forumbit_level2_nopost
استبدل ما بداخل هذا القالب بالكود التالي:

كود PHP:

<tr>
<td class="tcat"><span class="smallfont">&nbsp;</span></td>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">5<else />4</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>
$childforumbits


forumhome_forumbit_level2_post
استبدل ما بداخل هذا القالب بالكود التالي:

كود PHP:
<tr align="center">
<td class="alt2">
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<fieldset class="fieldset">
<legend><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">
<span style="text-decoration: none">$forum[title]</span></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if></legend>

<div>
<table id="sub_$forum[forumid]" border="0" width="100%" dir="ltr" style="border-collapse: collapse">
<tr>
<td width="15"><if condition="$show['subforums']">

<a href="#sub">
<img src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" border="0" alt="الأقسام الفرعية"></a> <script type="text/javascript"> vbmenu_register("sub_$forum[forumid]", true); </script>
</if></td>
<td><if condition="$show['forumdescription']"><div id="sub_$forum[forumid]" class="smallfont">
<p dir="rtl">$forum[description]
</if></td>
</tr>
</table>
</div>
</fieldset>
</div>
<!-- sub navigation menu -->
<div class="vbmenu_popup" id="sub_$forum[forumid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0" width="300">
<tr><td class="thead" dir="rtl">

<strong style="font-weight: 400">$vbphrase[subforums]</strong>:</td></tr>
<tr><td class="alt2" dir="rtl">
<p style="margin-top: 0; margin-bottom: 0">$forum[subforums]</td></tr>
</table>
</div>
<!-- / sub navigation menu -->
<!-- moderators navigation menu -->
<div class="vbmenu_popup" id="moderators_$forum[forumid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0" width="300">
<tr><td class="thead" dir="rtl">

<strong style="font-weight: 400">المشرفين على $forum[title] </strong>:</td></tr>
<tr><td class="alt2" dir="rtl">
<p style="margin-top: 0; margin-bottom: 0">$forum[moderators]</td></tr>
</table>
</div>
<!-- / moderators navigation menu -->
</div>


</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td id="moderators_$forum[forumid]" class="alt1"><a href="#moderators">
<img src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" border="0" alt="المشرفين"></a> <script type="text/javascript"> vbmenu_register("moderators_$forum[forumid]", true); </script></td>
</if>
</tr>
$childforumbits

الجنوبيه
04-10-2019, 01:44 PM
يعطيك العافية يارب

جاري التجربه ان شاء الله

روح السراب
04-14-2019, 03:59 AM
شكرا يعطيك الف عافية

أحب أن اضيف قبل أن تعدل اي قالب أعمل نسخة من القالب نفسه
وأحفظه في المفكرة حتى اذا ماضبط معك ترجع القديم

تحياتي ،،

ابن الصحراء
04-18-2019, 05:36 AM
اشكركـم على حضوركمـ الكريم
وتعطير متصفحي بردكمـ الجميييييل
الله يعطيكـم العافيه
ولا يحرمـني منكـم و من طـلـتـكـم
لكـم
تحيـــ ومحبتي ــــااااتي

شموخ
04-20-2019, 11:27 AM
مشكور والله يعطيك العافيه

ابن الصحراء
04-29-2019, 01:28 PM
عبارات غمرتني برفاهية الحس
وذوق المشاعر
مرور سطر خلفه الأبداع والروعة كلها
تواجدكِ
بين طياتي

صمت
02-25-2026, 04:48 AM
سلمت الايادي جداا موضوع روعه