View Full Version : Administrative and Maintenance Tools - Change the default height of the quick reply, quick edit, and normal editors
Analogpoint
09-27-2007, 10:00 PM
This mod adds an admin control panel settings group to allow you to change the default height of the editors. It will be overridden by users' cookies, if they have manually changed the height of the editor (regular editor only). There is a hard-coded minimum height of 50 px for all editors.
The editors' default heights are currently hard-coded at:
Quick reply 100px.
Quick edit 200px.
Regular editor 250px.
This mod allows you to change that.
Installation: Import the XML product file and visit the settings group.
Due to a bug (reported here (http://www.vbulletin.com/forum/project.php?issueid=23312)) in the default postbit_quickedit template, this mod won't change the default height of the quick edit box. As a work around, you can edit your postbit_quickedit template. Find this: height:200px and change it to this: height:{$editor_height}px
Terminatoronly
09-28-2007, 07:51 PM
Good Mod ;)
Clicked install
and i want to change the width of the quick reply box how can i do that?
Analogpoint
09-28-2007, 08:29 PM
Good Mod ;)
Clicked install
and i want to change the width of the quick reply box how can i do that?
Change the Message Area Width in your style's StyleVars.
Terminatoronly
09-28-2007, 08:33 PM
hello mate,
thanks alot but that didn't change the quick reply message area width it changed the width of new thread message area
Analogpoint
09-28-2007, 08:47 PM
It looks like the Form Width setting in the StyleVars does it, although I'm not quite sure how that interacts with the other setting. You might want to play around with it.
FreshFroot
09-28-2007, 11:39 PM
interesting.. however, could this modify the "width". One of my skins is a fixed skin, however the editor is kinda small.. anyway to adjust the width? I've tried, but maybe I'm editing the wrong area.
Analogpoint
09-29-2007, 05:24 AM
interesting.. however, could this modify the "width". One of my skins is a fixed skin, however the editor is kinda small.. anyway to adjust the width? I've tried, but maybe I'm editing the wrong area.
The width is controlled by the Form Width and Message Area Width settings in your style's StyleVars.
itsblack
09-29-2007, 08:31 AM
Wonderful.
Clicked installed.
But I got problem with the quick reply size: it uses the size of full Editor Default Height, although I have assigned a smaller size for qr.
howiulf
09-29-2007, 12:51 PM
It looks like the Form Width setting in the StyleVars does it, although I'm not quite sure how that interacts with the other setting. You might want to play around with it.
Probably it's no bad idea to set the width in %. So its also adapting to screen settings.
Analogpoint
09-29-2007, 02:26 PM
Wonderful.
Clicked installed.
But I got problem with the quick reply size: it uses the size of full Editor Default Height, although I have assigned a smaller size for qr.
It's working correctly for me. What version of vB are you running it on?
Probably it's no bad idea to set the width in %. So its also adapting to screen settings.
You should be able to plug a percent value in there ie: 90%
itsblack
09-29-2007, 02:44 PM
It's working correctly for me. What version of vB are you running it on?
vb 3.6.7 PL1, use style "Element" from vbstyles.com.
Analogpoint
09-29-2007, 03:04 PM
vb 3.6.7 PL1, use style "Element" from vbstyles.com.
Can you post the content of your showthread_quickreply template?
itsblack
09-29-2007, 05:55 PM
Can you post the content of your showthread_quickreply template?
Yes, of course.
<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[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<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['color_bbcode']">
<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" alt="" width="11" height="16" /></td>
</tr>
</table>
</div></td>
</if>
<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>
</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>
<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 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>
<td width="100%"> </td>
<if condition="is_browser('ie')">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<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_99"><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_99"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
</td>
<if condition="$show['wysiwyg_compatible']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<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>
</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>
Analogpoint
10-01-2007, 07:56 PM
Yes, of course.
Hmm, there's a few minor changes to the default template, but it should work. Try running the suspect file versions tool in Maintenance -> Diagnostics, and post the results. I want to know if the showthread.php file is the original vB version or if it's been modified.
Are you planning to upgrade to vB 3.6.8? There might possibly be changes from 3.6.7 to the current version that affect this.
itsblack
10-01-2007, 09:50 PM
Well, I think I found the problem. This mod has conflict with this one: Smilies in QR and QE (https://vborg.vbsupport.ru/showthread.php?t=132443)
Your mod works fine When I diabled Smilies in QR and QE.
Can you help me to make them work together?
Analogpoint
10-01-2007, 10:32 PM
I'll take a look at the other mod and get back to you here.
Analogpoint
10-02-2007, 03:03 AM
Well, I think I found the problem. This mod has conflict with this one: Smilies in QR and QE (https://vborg.vbsupport.ru/showthread.php?t=132443)
Your mod works fine When I diabled Smilies in QR and QE.
Can you help me to make them work together?
You certainly did find the problem. Specifically:
if (THIS_SCRIPT == 'showthread' AND ($editor_type == 'qr' OR $editor_type == 'qe'))
{ // workaround the disabling of smilies for quick reply and quick edit... this should be safe since $editor_type isn't used anywhere after this hook.
$editor_type = 'fe';
}
That mod changes the editor type.
Here's your workaround.
Change the Editor Size plugin to use the editor_toolbar_start hook location, and give it an execution order of 4. That should do the trick.
itsblack
10-02-2007, 01:10 PM
You certainly did find the problem. Specifically:
if (THIS_SCRIPT == 'showthread' AND ($editor_type == 'qr' OR $editor_type == 'qe'))
{ // workaround the disabling of smilies for quick reply and quick edit... this should be safe since $editor_type isn't used anywhere after this hook.
$editor_type = 'fe';
}
That mod changes the editor type.
Here's your workaround.
Change the Editor Size plugin to use the editor_toolbar_start hook location, and give it an execution order of 4. That should do the trick.
It works great! Thank you very much!
KanmaiseR
06-13-2008, 05:56 AM
Thanks Analogpoint, installed..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.