vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Quick Reply - "Close this thread" active area? (https://vborg.vbsupport.ru/showthread.php?t=253996)

spillage 11-20-2010 12:58 PM

Quick Reply - "Close this thread" active area?
 
I'm having an issue with Mods accidentally closing threads when they quick reply to them.

The Close this thread checkbox selection area is active across the entire page, and is being accidently clicked in the process of trying to click the Post Quick Reply or Go Advanced buttons.
The Show your signature checkbox active area only extends a little way beyond its text.
Where do I look for, and how do I change the active area for the Close this thread checkbox?

TIA

Lynne 11-20-2010 10:09 PM

You could try adding a min-width there. (You may need to be more specific in the class/id so it only affects this one thing.) Something like:
HTML Code:

.formcontrols .blockrow * label {
max-width:150px; }


spillage 11-21-2010 12:31 PM

Lynne, in the SHOWTHREAD template I found the following code that I believe is where I need to be.

Code:

<vb:if condition="$bbuserinfo['signature']">
                <div class="blockrow">
                        <ul class="checkradio group">
                                <li><label for="cb_signature">
                                        <input type="checkbox" name="signature" id="cb_signature" value="1" checked="checked" tabindex="1" />
                                        {vb:rawphrase show_your_signature}
                                </label></li>
                        </ul>
                </div>
                </vb:if>

Code:

<vb:if condition="$show['openclose']">
                <div class="blockrow openclose">
                        <ul class="checkradio">
                                <li><label for="cb_openclose">
                                        <input type="checkbox" name="openclose" id="cb_openclose" value="1" tabindex="1" />
                                        <vb:if condition="$show['closethread']">{vb:rawphrase close_this_thread}<vb:else />{vb:rawphrase reopen_this_thread}</vb:if>
                                </label></li>
                        </ul>
                </div>
                </vb:if>

But I see nothing different between the Show your signature and Close this thread code blocks that would make the active areas for these two different (which they are).

Where would you suggest adding the formcontrol code?

Lynne 11-21-2010 08:25 PM

The CSS is different for each. Use firebug and you'll see the width set for each is different. This is different:
HTML Code:

<ul class="checkradio group">

spillage 11-21-2010 10:33 PM

Arh... now I have it... THANKS.

Code:

.formcontrols .blockrow * label {
        /* undoes the above two rules */
        display:block;
        margin-bottom:auto;
        width:auto;
        float:none;

I changed the width from auto to 200px, and got the desired result.

Thanks again for your input Lynne.


All times are GMT. The time now is 02:39 AM.

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.01053 seconds
  • Memory Usage 1,722KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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