vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Change the default height of the quick reply, quick edit, and normal editors (https://vborg.vbsupport.ru/showthread.php?t=158988)

Analogpoint 09-27-2007 10:00 PM

Change the default height of the quick reply, quick edit, and normal editors
 
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) 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

Quote:

Originally Posted by Terminatoronly (Post 1349179)
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

Quote:

Originally Posted by FreshFroot (Post 1349275)
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

Quote:

Originally Posted by Analogpoint (Post 1349204)
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

Quote:

Originally Posted by itsblack (Post 1349438)
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?

Quote:

Originally Posted by howiulf (Post 1349542)
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

Quote:

Originally Posted by Analogpoint (Post 1349589)
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

Quote:

Originally Posted by itsblack (Post 1349597)
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

Quote:

Originally Posted by Analogpoint (Post 1349611)
Can you post the content of your showthread_quickreply template?

Yes, of course.
PHP Code:

<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%">&nbsp;</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

Quote:

Originally Posted by itsblack (Post 1349748)
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
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

Quote:

Originally Posted by itsblack (Post 1351010)
Well, I think I found the problem. This mod has conflict with this one: Smilies in QR and QE
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:

Code:

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

Quote:

Originally Posted by Analogpoint (Post 1351125)
You certainly did find the problem. Specifically:

Code:

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..


All times are GMT. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01884 seconds
  • Memory Usage 1,884KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete