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)

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 03:02 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.01213 seconds
  • Memory Usage 1,843KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete