
المشاركة الأصلية كتبت بواسطة ابو راشد
اذا لم تعرض الأزرار في المحرر العادي لإضافة موضوع أو رد فاستبدل محتويات القالب Editor_toolbar_on بما يلي :
كود:
$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"> </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"> </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%"> </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');
//-->
</script>
تحياتي .
مواقع النشر (المفضلة)