vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Is it safe to remove this line of code? (https://vborg.vbsupport.ru/showthread.php?t=287826)

chefy 09-14-2012 05:39 AM

Is it safe to remove this line of code?
 
Hi,

In vBulletin 3.8 within template SHOWTHREAD there is the following line of code:

Code:

<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
This line controls the "Quote message in reply?" checkbox below the quick reply box.

I'd like to remove that line of code that way I'll be able to get rid of that unused feature on my forum. However I can see that the code is passing a default value ("1") to the checkbox. The question is: if I remove that line of code, what default value the checkbox will have? I believe that if I remove that line, that checkbox isn't going to exist anymore but I think that the PHP files will be expecting a value for that checkbox so what value the PHP files will take? Maybe they will get a wrong default value of "0"? I don't know... please tell me if it's safe to remove that line of code.

Thank you.

kh99 09-14-2012 10:27 AM

If you want to make sure it keeps a certain value, you can change it to type="hidden", and remove the label, like:

Code:

<input type="hidden" name="quickreply" value="1" id="qr_quickreply" />


All times are GMT. The time now is 10:29 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.00994 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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