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

مشاهدة النسخة كاملة : How to Change Quickreply to Advanced Editor



bahattab
08-08-2009, 05:07 PM
Advanced Editor in Quickreply




Log into your admincp -----> Styles & Templates -> Search in Templates -----> Choose your style and Find showthread_quickreply in template and Replace with





<if condition="$show['editor_toolbar']">
<div id="{$editorid}_controls" class="controlbar">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar/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>
<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>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['align_bbcode']">
<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>
<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>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<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 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>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<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>
</tr>
</table>
</div>
</if>
<div class="controlbar">
<if condition="$show['qr_require_click']">
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
<else />
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
</if>
</div>
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />
<input type="hidden" name="styleid" value="$session[styleid]" />
<script type="text/javascript">
<!--
vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie');
var QR_EditorID = '$editorid';
//-->
</script>

now see result




[IMG]http://www.atyafonline.com/vb/imgcache/3094.png










http://www.vbulletin.org/forum/showthread.php?t=164199
(http://www.vbulletin.org/forum/showthread.php?t=164199)

bahattab
08-08-2009, 05:13 PM
Version: 3.8.x Rating: http://www.atyafonline.com/vb/imgcache/3095.png (73 votes - 4.86 average) Released: 17 Jan 2009 Last Update: 03 Feb 2009 Installs: 412 http://www.atyafonline.com/vb/imgcache/3096.pngSupported http://www.atyafonline.com/vb/imgcache/3096.pngDB Changes http://www.atyafonline.com/vb/imgcache/3096.pngUses Plugins http://www.atyafonline.com/vb/imgcache/3096.pngAuto-Template http://www.atyafonline.com/vb/imgcache/3096.pngTranslations
http://www.atyafonline.com/vb/imgcache/3097.png
Quick Editor Improver 3.0
Customize Quick Editor and Quick Reply [Support Attachment]

With this hack you may improve the buttons on quick editors include Quick Reply, Quick Edit Post, Visitor Message Editor, Private Message Quick Reply, Social Group Discussion Quick Edit, vB Blog Quick Comments, vB Project Tools Issue Quick Reply and etc...

Now you may easily and fast quick attachment without need to refresh the page even for post quick edit!

Hereinafter you may easily turn on or off buttons on quick editors only via vBulletin Options. For example you may add a smiley box to Quick Reply or Visitor Message Editor and so on.

I hope this hack will useful for you.

Features


Turn on/off buttons on Quick Editors via vBulletin Options -> Quick Editor Improver
Easily add custom BB Codes to Quick Editors without need to make any changes on templates
Display buttons on Quick Editor based on BB Codes permissions which defined for particular section
Support Thread Quick Reply, Quick Edit Post, Visitor Message Editor, Quick Edit VM, Private Message Quick Reply, Social Group Discussion Quick Edit, vB Blog Quick Comments, vB Project Tools Issue Quick Reply and etc.
Enable/Disable improvement of Quick Editor for particular section by whom you wish
Display BB Code posting rules below Quick Editor
Add Thread Close/Open option to Quick Reply box on Thread Display
Display Post Icons on Quick Reply box
Customize Quick Editor/Quick Reply via User Control Panel
Works based on usergroup permissions
Conform any Quick Editor everywhere
Compatibility with 'Advanced BBCode Permissions (http://www.vbulletin.org/forum/showthread.php?t=122942)' hack
Enable Quick Attachment
Excludes of improvement for certain Usergroups and Styles

New Installation Guide
Import the 'quickeditor_improver_3.0.xml' via Product Manager system.
Congratulation, you are successfully installed Quick Editor Improver on your board.

Upgrade from 1.0 to 3.0
Import the 'quickeditor_improver_3.0.xml' via Product Manager system with check 'Allow Overwrite'.
- It is highly recommended to delete /includes/xml/bitfield_quickeditor_improver.xml

Upgrade from 2.x to 3.0
Import the 'quickeditor_improver_3.0.xml' via Product Manager system with check 'Allow Overwrite'.

If you are use Icons for UserCP Navbar (http://www.vbulletin.org/forum/showthread.php?t=202000) hack, you may upload contents of extra folder to /images/misc/ directory on root.

Change Log
Version 1.0 released on 18 January, 2009
It was first release of this product.
This version works with vBulletin 3.6.x, 3.7.x and 3.8.x
Version 2.0 released on 23 January, 2009
Fixed up the function declare problem of 'button_visibility' function and cache templates
Fixed up the on the fly configuration
Optimized sever load time of improved quick editor
Obviated of upload new files
Added variety options to more customizing
Support vBulletin Blog and vBulletin Project Tools
New Options:
- Usergroups to be excluded: Allows you to disable Quick Editor Improver functions for some usergroups
- Show BB Code Rules on Quick Editor Box: Display BB Code rules on quick editor box instead of on 'Posting Rules' area
- Apply To: Allows you to set improvement only for particular sections
- Quick Reply - Form Width: If buttons over quick reply are outside of the box, you may use this option to specify fit form width
- vBulletin Blog - Set Automatic Form Width:Automatically adjustment of quick comment box on vBulletin Blog
- Thread Display - Show Close/Open Thread on Quick Reply: This option allows you to display quick close/open thread on quick reply box
- Thread Display - Show Post Icons on Quick Reply: This option allows you to show post icons on quick reply box
Version 2.0.1 released on 23 January, 2009
Fixed up the uncached templates problem
More optimized server load time
Version 2.5.0 released on 25 January, 2009
Fixed up trivial bugs
Compatibility with Advanced BBCode Permissions Hack
Apply configuration based on usergroup that group by 'Quick Editor Permissions'
Customize quick editor by users from their User Control Panel's
New Option:
- User CP Quick Editor Settings: When enabled, Quick Editor Settings item will shown on User Control Panel which allow to users to customize quick editor/reply settings as their wish.
Version 3.0 released on 3 February, 2009
Works fine with vBulletin 3.8.1
Fixed up small bug that was for options
Fixed up uncached problem for User CP state
Fixed up empty smilies menu problem when quick reply was off
Quick Attachment possibility (Quick Reply / Post Quick Edit)
Support 'Icons for UserCP Navbar' hack for User CP
Optimized server load time
New Options
- Style ids to be excluded: Allows you to disable Quick Editor Improver functions for certain styles
- Enable Attachment: This setting contains options to be channeling of attachment on quick editor

*** It's highly recommended to upgrade from old versions to 3.0 ***

Important: Please don't forget if you have installed this modification, click Mark as Installed (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=202160) to aid me for more support this modification in the next releases.

If you installed this hack, please give your rate to it. http://www.atyafonline.com/vb/imgcache/3098.png

Please tell me your thoughts or suggestions about this hack.


Do you love this modification, so you may Norminate for MOTM (http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominate&threadid=202160&type=1) it.


Thank You,
Hamed Haddadian

http://www.atyafonline.com/vb/imgcache/3099.png quickeditor_improver_3.0.zip (http://www.vbulletin.org/forum/attachment.php?attachmentid=93970&d=1233638373) (54.3 KB, 1201 downloads)


Screenshots


http://www.vbulletin.org/forum/attachment.php?attachmentid=93290&d=1232660535



http://www.vbulletin.org/forum/attachment.php?attachmentid=93292&d=1232661622






http://www.vbulletin.org/forum/attachment.php?attachmentid=93293&d=1232661776








http://www.vbulletin.org/forum/attachment.php?attachmentid=93459&d=1232890017






http://www.vbulletin.org/forum/attachment.php?attachmentid=93968&d=1233638253








http://www.vbulletin.org/forum/attachment.php?attachmentid=93969&d=1233638253






http://www.vbulletin.org/forum/attachment.php?attachmentid=93967&d=1233638253






http://www.vbulletin.org/forum/attachment.php?attachmentid=93971&d=1233638633






http://www.vbulletin.org/forum/attachment.php?attachmentid=93972&d=1233638713








http://www.vbulletin.org/forum/showthread.php?t=202160